Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invoke a method on a different page?
Message
From
30/04/2002 19:21:23
Keith Payne
Technical Marketing Solutions
Florida, United States
 
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00650640
Message ID:
00651149
Views:
28
>>
>>The subs are in the code-behind file for the page. It is VB.
>>
>
>Keith,
>This is a little tricky because I don’t know if the sub routine you want to run is to update the frame you are in or to update the frame that contains the page who’s code you are executing.
>
>Would it suffice for one frame to press a button in another frame’s page and then let the page do its thing?
>
>Not knowing exactly you need the result to be, here is a suggestion that may help to, at least, get things going.
>
>Make the following call from your button
>target="MyOtherFrame" href="MyPage.aspx?sRunMethod=SomeMethod"
>
>Then in the load of the MyPage.vb call the method specified by the parameter.
>
>If you tell me some more about how everything should work I may be able to give a better answer.

Chris,

Thank you for your help so far!

The specific situation is that the current page has a button which inserts data into a table. When the user clicks that button, I want to call a sub in page2 that queries the new data and displays it in page2. Page2 contains the dataset and the display controls.

In the click event of the button, there is already code to update the table. I'm not sure how to integrate the existing code with the example that you gave.

To answer your first question, the sub only touches controls on it's own page.

As you can probably tell I am a newcomer to ASP (VFP Convert) and I am still grappling with some of the fundamental aspects of it.

One more question which you might know the answer to: Do you know how to get a browser's scrollbar to work in a frameset? The pages are displayed in a frameset but the only scrollbars that I seem to get are inside the frames. The browser does not display a scrollbar for the entire frameset page when it is taller than the browser window.

- Keith Payne
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform