aparna km

aparna km

  • NA
  • 2
  • 0

Junk Values in Modalpopupextender

Mar 13 2012 3:12 AM
 

I have a form where i have 6 tabcontainers. Each tabcontainer has textbox and gridview. Everything is working fine. But in 4th tabcontainer i am using modalpopup extender. I have 6 linkbuttons in tabcontainer 4, which pop

up's 6 modalextenders. The problem is whenever i enter some values in textboxes of tabcontainers other than tabcontainer 4(which has modalpopup) junk values(commas[,]) are inserted in textboxes of tabcontainer 4.And popup fires suddendly on some events of other tabcontainers. I wonder modalpopup is in tabcontainer 4 and how it is fired from other tabcontainers. Everything is inside update panel. I doubt desing of modalpopup is overlapping other tabcontainers, could  not make out beacause its invisible. Please solve my problem..Below is the code.

 

 

<cc1:TabPanel ID="TabPanel1">

....have some textobxes gridview

</cc1:TabPanel>

 

<cc1:TabPanel ID="TabPanel2">

....have some textobxes gridview

</cc1:TabPanel>

 

<cc1:TabPanel ID="TabPanel3">

....have some textobxes gridview

</cc1:TabPanel>

 

.....

 

<cc1:TabPanel ID="TabPanel5" runat="server" BackColor="#93AEFF"  TabIndex="4">

   <HeaderTemplate>Water</HeaderTemplate>

     <ContentTemplate>

       <asp:UpdatePanel ID="UpdatePanel6" runat="server">

         <ContentTemplate>

           <table width="890px">

             <tr><td colspan="6" style="background-color:#E8F6F9; font-style:italic; color:Blue; font-size:small;" align="center">

     <asp:LinkButton ID="lnkwatersource" runat="server" Text="Source of Water"     ForeColor="Blue"                                                                onclick="lnkwatersource_Click"></asp:LinkButton>                               </td></tr>

<tr><td> ......some more link buttons..... </td></tr>

                   </table>

 

<div class="popUpIndustryStyle" id="div1" style="display:none;"  >

      <asp:Panel runat="Server" ID="Panel1" CssClass="drag1" ScrollBars="Both" Width="800px"  height="300px" >

    <table border="0" cellpadding="0" cellspacing="1" width="800px" >

     <tr style="height:30px;" ><td style="background-color:#E8F6F9; font-style:italic; font-weight:bold; color:Blue; font-size:15px;" align="center">Source of Water:</td></tr>

      <tr style="background-color:#F4F7FB;font-size:12px">

           <td >

.....some textboxes and gridview....

</td></tr>

</table>

     </asp:Panel>

     </div>

 

<cc1:ModalPopupExtender ID="modalPopUpExtender2" runat="server" TargetControlID="lnkwatersource"

     PopupControlID="div1"  BackgroundCssClass="popUpIndustryStyle" cancelcontrolid="CancelButton" x="250" Y="50" ></cc1:ModalPopupExtender>

 

.....have modalpopup foreach linkbutton

......