Click here to Skip to main content
15,906,329 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear sir,

Inside panel control I have 3 fields,
1. Name
2. date and
3. age

and using modal popup extender ajax control
Above fields are validate using AJAX controls,
and then click SUBMIT Button.


Button not fired,
"Button not fired when I validate ajax control against TextBox Controls"

What is problem? Why Controls not fired(like. save,update,cancel)(this button have code in code behind).

give me solutions.

by mohan.
Posted
Updated 11-Dec-11 21:53pm
v2
Comments
Monjurul Habib 12-Dec-11 0:29am    
share your code
Code 89 12-Dec-11 0:32am    
post your code..

1 solution

Please add CausesValidation="false" for Button_Preview and check.

<asp:button id="Button_Preview" runat="server" causesvalidation="false" text="Preview" onclick="Button_Preview_Click" xmlns:asp="#unknown" />    


or else use this

 You are using validators,try this


<asp:requiredfieldvalidator id="valueReqValidator" runat="server" validationgroup="button" controltovalidate="btnValue" xmlns:asp="#unknown"></asp:requiredfieldvalidator>
 
Share this answer
 

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