Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
597
Cancel Hide based on ContentPane value
posted

Here is my scenario, I have a form that pops up with the webdialog.  The user enters data, I want to stop the form from closing if nothing was selected.  How do I cancel the submit action?

 

Button Code:

<igtxt:WebImageButton ID="lnkSubmit" runat="server" Text="Save Form" ClickOnEnterKey="false" ClickOnSpaceKey="False">

<ClientSideEvents Click="btnDialogWindow_onClick" />

</igtxt:WebImageButton>

 

Server Code:

Protected Sub lnkSubmit_Click1

....

End Sub

DIalog Page:

function btnDialogWindow_onClick(){

//closes dialogwindow

var dialog = $find("<%= dlgHarass.ClientID%>");

dialog.hide();

}