Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating web forms with frames
Message
From
08/01/2003 18:50:18
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
08/01/2003 12:25:30
Larry Long
ProgRes (Programming Resources)
Georgia, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00738642
Message ID:
00739630
Views:
5
Larry,

If you use a hyperlink instead of a commandbutton, loading a different page in a specific frame is easy: Set the hyperlink.NavigateURL to the HTML page you want to load and set the hyperlink.Target to the name of the frame.

If you use a command button, you will have to write code in the button.click event that passes the name of the URL to a method in the form that is currently in the main frame. In this method you can Response.Redirect(TargetURL).

You would have to include this method in each form that you intend on displaying in the main frame - or you could create a class with this method and include it in each form. But this is messy IMO.

>Keith,
>I found it last night, thanks. Now, I've got buttons in the left frame and would like to bring up a specfic form in the main frame when the user clicks one of the buttons. Any suggestions as how to proceed. If you want to take a look at what I'm doing pls go to www.mortgage-toolbox.com
>
>Thanks,
>Larry
>
>>Larry,
>>
>>You can create a Frameset from the Add Item... dialog. Then you assign a web form for each frame within the frameset.
>>
>>The Frameset itself has no events or controls. The Frameset merely defines the layout, size, padding and border of the frames. If you are concerned about sharing properties or data between the web forms in the Frameset, you can use session variables or create a custom class and add a reference to that class in each web form.
>>
>>>Using VS.NET, is there a way to visually create a frame on a web form? (with a frame on the left right for links, for example)
>>>
>>>TIA,
>>>Larry Long
Previous
Reply
Map
View

Click here to load this message in the networking platform