Rob,
If you want the event to run on the main page only when that button is
clicked you may find out when a button is clicked by overriding the
OnBubbleEvent on the main page like this:
1.. Protected Overrides Function OnBubbleEvent(ByVal source As Object,
ByVal args As System.EventArgs) As Boolean
2.. Try
3.. Select Case (source.GetType.ToString)
4.. Case "System.Web.UI.WebControls.Button"
5.. Dim Button As Button
6..
7.. Button = CType(source, System.Web.UI.WebControls.Button)
8..
9.. Select Case Button.ID
10.. Case "SubmitButton"
11.. '---Call any code you want here: with access to the control's
viewstate.
12..
13.. Case "CancelButton"
14.. End Select
15.. Case "System.Web.UI.WebControls.LinkButton"
16.. Dim LinkButton As LinkButton
17..
18.. LinkButton = CType(source, System.Web.UI.WebControls.LinkButton)
19..
20.. Select Case LinkButton.ID
21.. Case "HomeLinkButton", "SortLinkButton"
22.. End Select
23.. End Select
24.. Catch ex As Exception
25.. '---Process Exception
26.. End Try
27.. End Function
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Rob Morgan" <ro********@ode.state.oh.us> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
I have a grid and a user control on the same page. The user control has a
save button that triggers a click event server side. Once the click event
happens the page renders, but I need to update the grid information before
it renders. Once a conrol's event finishes is there a way to run a method
on the parent page so I can update the gid? Any thoughs on how I might
accomplish this?