I am using two update panels in my aspx page. My page also contains other controls most of them are text boxes. some text boxes using ajaxwater mark extender. My problem is when the portion of the panels is updated the watermark textbox also updated. How can I preven this to happen?
My page is like
….some other controls and then
<asp:UpdatePanel runat="server" ID="upPanelTestRoll">
<ContentTemplate>
<fieldset style="height: 70px; float: left; width: 350px;">
<legend>Submission</legend>
<asp:CheckBox ID="chkSubmitted" runat="server" Height="25px" Width="25px" AutoPostBack="true" />
<label for="chkSubmitted">
Submitted</label>
<label for="txtSubmissionDate">
Submission Date</label>
<asp:TextBox ID="txtSubmissionDate" runat="server" Height="12px" Enabled="false"></asp:TextBox>
<cc1:CalendarExtender ID="txtSubmissionDate_CalendarExtender" runat="server" Enabled="True"
TargetControlID="txtSubmissionDate">
</cc1:CalendarExtender>
<%--<asp:CheckBox ID="chkTestToAppear" runat="server" Height="25px" Width="25px" />
<label for="">
Test To Appear</label>--%>
<br />
<label for="txtAdmissionTestRoll">
Admission Test Roll
</label>
<asp:TextBox ID="txtAdmissionTestRoll" runat="server" Enabled="false"></asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>
What to do to optimize the code?
Change the UpdatePanel.UpdateMode to Conditional.