I want to open a RadWindow when a button is clicked. I placed the code in the Button Click event on the server side. However, when the button is clicked the entire Click event is processed before the RadWIndow is displayed and the user input from that RadWIndow is captured. I want to use the User's input from the RadWindow within the Button Click event. Is this possible?
Currently, this button click procedure executes all the way to the End Sub before the RadWIndow is displayed.
Here is the ASPX code.
Thanks,
pat
Protected Sub RadButtonBudgetSettingsEdit_Command(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs)
Dim script As String = "function f(){$find(""" + RadWindowBudgetIDNo.ClientID + """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, True)
'
'Based on the User's input in the RadWindow displayed above, I want to execute some code before leaving this procedure
'The user's input is captured in a Session variable.
'
'e.g.
NewSubRoutineToBeExecutedBeforeLeavingThisClickEvent(Session("UserSelectedIDNo")
End Sub
Currently, this button click procedure executes all the way to the End Sub before the RadWIndow is displayed.
Here is the ASPX code.
<
telerik:RadWindow
runat
=
"server"
ID
=
"RadWindowBudgetIDNo"
NavigateUrl
=
"SelectBudget.aspx"
Modal
=
"true"
></
telerik:RadWindow
>
Thanks,
pat