I made a form that when submit button is clicked the validation summary is shown on DIALOG BOX but
AFTER A POSTBACK. i opened it on clicked event when page.isvalid is false.
now what i want is How i can show dialog box without postback showing summary, i tried to add validationgroup in button but then it wont allow to show dialog box (summary) showing to complete form for that validationgroup to postback
thanks
Mark My Post As An Answer If It Worked !
Please Visit : www.classifiedspak.com
now i tried to wrap up the button in update panel. but it becomes the worst.
summary is outside from update panel but there is no error messages shown in the validation summary when i wrap the button in update panel when i keep button outside update panel the summary works fine.
How i can use validation summary with update panel
Mark My Post As An Answer If It Worked !
Please Visit : www.classifiedspak.com
Based on your description above, as far as I know, if you are using validation control, you must postback data you want to be validated to the server side every time. Or you need validate the data on client side by using javascript. You also need to postback
the data even if you use the UpdatePanel controls. By using UpdatePanel controls, you can refresh selected parts of the page instead of refreshing the whole page with a postback. This is referred to as performing a
partial-page update. You just want to show summary without postback, but the inputs of people are different everytime. So the summary is always changed. If I misunderstand you, I hope you follow up and give me more details.
I made a form that when submit button is clicked the validation summary is shown on DIALOG BOX but
AFTER A POSTBACK. i opened it on clicked event when page.isvalid is false.
now what i want is How i can show dialog box without postback showing summary, i tried to add validationgroup in button but then it wont allow to show dialog box (summary) showing to complete form for that validationgroup to postback
shan000
Member
491 Points
446 Posts
validation summary not generating using update panel
May 03, 2012 02:50 PM|LINK
Hi ,
I made a form that when submit button is clicked the validation summary is shown on DIALOG BOX but AFTER A POSTBACK. i opened it on clicked event when page.isvalid is false.
now what i want is How i can show dialog box without postback showing summary, i tried to add validationgroup in button but then it wont allow to show dialog box (summary) showing to complete form for that validationgroup to postback
thanks
Please Visit : www.classifiedspak.com
shan000
Member
491 Points
446 Posts
Re: validation summary not generating using update panel
May 03, 2012 05:52 PM|LINK
now i tried to wrap up the button in update panel. but it becomes the worst.
summary is outside from update panel but there is no error messages shown in the validation summary when i wrap the button in update panel when i keep button outside update panel the summary works fine.
How i can use validation summary with update panel
Please Visit : www.classifiedspak.com
asp.netx.0lo...
Member
362 Points
71 Posts
Re: validation summary not generating using update panel
May 07, 2012 05:17 AM|LINK
Based on your description above, as far as I know, if you are using validation control, you must postback data you want to be validated to the server side every time. Or you need validate the data on client side by using javascript. You also need to postback the data even if you use the UpdatePanel controls. By using UpdatePanel controls, you can refresh selected parts of the page instead of refreshing the whole page with a postback. This is referred to as performing a partial-page update. You just want to show summary without postback, but the inputs of people are different everytime. So the summary is always changed. If I misunderstand you, I hope you follow up and give me more details.
2pac
Participant
1586 Points
269 Posts
Re: validation summary not generating using update panel
May 07, 2012 05:30 AM|LINK
Works fine from my end, here is what I tried:
<form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="form"/> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="TextBox cannot be empty" ValidationGroup="form" ></asp:RequiredFieldValidator> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger runat="server" ControlID="Button1"/> </Triggers> </asp:UpdatePanel> <asp:Button ID="Button1" runat="server" Text="Invoke Validation" ValidationGroup="form"/> </div> </form>Hope this helps
Regards,
Jayesh