I do have an updatepanel in my webform which contains a combobox, a textbox and a submit button.
the submission way varies based on the situation of the combobox and the texbox but it is to be validated before allowing the user to submit the form.
The form also includes a repeater containing a user control and a checkbox as item template (the checkbox is the only input component in there)
I want the updatepanel to perform validation jon asynchronously and to hold the submit button disabled while validation fails but I want the submit button to completely post the webform to the server so I can get the checkboxes inside the repeater.
use postbacktrigger of the Updatepanel for submit button
<asp:UpdatePanel>
<ContentTemplate>
//ur all contents
</ContentTemplate>
<Triggers>
//for complete postback
<asp:PostBackTriggerControlID="SubmitButton"/>
</Triggers>
</asp:UpdatePanel>
http://www.interviewghost.com
IT placement papers, IT interview question answers, Dot.net question answer,interviewghost is a portal where you can find all information about the interview. you can find there HR interview quesion answer, Call center interview question answer, IAS interview question answer, IAS Pervious year question papers, TOP IT companies Placement papers, TECHNICAL interview question answer, IT COMPUTER interview question answer,
This product will help to crack the anytype of interview.http://www.interviewghost.com This portal provide you a whole information about the interview process, interview types and interview tips.
visit:http://www.interviewghost.com
Thank you sir but I'm afraid you misunderstood the problem.
It it is a soloution for just the reverse problem. In this case since the button is located inside the update panel, its click event is actually triggered by the updatepanel with no effort.
What I'm trying to do here is toprevent the updatepanel from triggering the button's click event while it does have full control over anything else related to the button.
No comments:
Post a Comment