Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing Mehod on a different Page in a Frameset
Message
 
To
01/12/2002 12:02:57
Dan Greenberg
Freedom of Information, Inc.
Parker, Colorado, United States
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00728181
Message ID:
00728522
Views:
20
Thank you for clarifying what you were refering to. There is no easy way to refresh frames in ASP.NET. You need to use javascript like you have already found out. What you need to do is use dynamic javascript in the SelectedIndexChanged to be sent to the ASP.NET page to then update the frame page. Look at the Decemeber issue of the Universal Thread Magazine in the "Cathi Gero's .NET Tips" for the tip called "Create Javascript Dynamically" at http://www.levelextreme.com/Magazine/ . Use the same javascript code that is working but dynamically add it to your page to update the other frame page.

>Hi Cathi,
>
>Thanks for your answer, but Iam not sure what creating an instance of the page means in this situation. Aren't there already instances of the page there? What would the C# code be to do what you suggested and where should it be placed? It might help you to know that I am calling the SelectedIndexChanged event which places the values for the selection in Session Variables in the dropdown which is an asp dropdown list control. It is set to AutoPostback = True. After it posts I need the other page in the frameset to repost - which causes it to see the new session variables and react accordingly.
>
>Right now if I make a choice from the dropdown it does the server side code and updates the Session Variables. If I push an html button right afterwords its onclick excutes the following javascript that is located in the same page:
>function RefreshMain()
> {
> top.main.location.href='CustMain.aspx';
> }
>
>This makes the other page refresh - but I don't want the user having to select the choice and then push the button. It would be nice if the choice from the dropdown would do both.
>
>I am not very advanced at the specifics yet. Thanks again in advance for all your help. Your presentations at Whilfest were very helpful.
>
>Dan
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform