Hello all,
I have a little problem: I have a modal popup that opens whenever the user click radbutton..I'm trying to open the modal popup from the code behind if the user click on the button how can I check if the user click on the button from the code behind?
(I don't want to use JS front code to open the modal popup)
*************code behind***********
Protected Sub GenerateLinks()
If Not String.IsNullOrEmpty(btnAddNewPerson.?????) Then
' ''Open RadWindow
Dim script As String = "function f(){$find(""" + modalPopup.ClientID + """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, True)
Exit Sub
End If
End Sub
***********aspx code***********
<telerik:RadButton ID="btnAddNewPerson" runat="server" Visible="false" ClientIDMode="Static" Text="Add Person" AutoPostBack="false" OnClientClicking="OnClientClicking"/>
<Icon PrimaryIconCssClass="rbAdd" PrimaryIconLeft="4" PrimaryIconTop="4" />
</telerik:RadButton>
******JS function*********
function OnClientClicking(button, args) {
window.location = button.get_navigateUrl();
args.set_cancel(true);
}