Click here to Skip to main content
15,903,856 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Everyone I have used pop up window when clicked on submit button. It works, but because of that
the validation controls on page are not working.The pop up is called using myFunction.


C#
<asp:Button ID="btn_submit" runat="server" Text="Submit" OnClick="btn_submit_Click" OnClientClick="myFunction" />
Posted

1 solution

ASP.NET
<asp:button id="btn_submit" runat="server" text="Submit" onclick="btn_submit_Click" onclientclick="javascript:return myFunction()"/>
 
Share this answer
 
v2
Comments
rgboss 22-Jan-14 6:51am    
Hello Kedar. I have done this it works fine, but my problem is that, validation controls are not working, because of that.
kedar001 22-Jan-14 6:56am    
where you are doing your validation, on Popup window ?
rgboss 22-Jan-14 6:58am    
no, on page.
kedar001 22-Jan-14 7:38am    
what you need
Do validation On Main Page
if No Error in validation open popup
if Error in validation Show error ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900