hi, i am using UpdatePanel and ContentTemplate and asp panel which is visible false on page load and is visible is true when the condition is satisfied. my problem is,when i am using UpdatePanel, on coding side the panel is getting visible=true but it is not getting displayed.
when i am removing UpdatePanel,the panel is getting visible=true and is working fine. Is there any problem with UpdatePanel.or i have put my UpdatePanel at wrong place. My code is
<table class="border" align="center" cellpadding="0" cellspacing="0" width="60%">
<tr>
<td>
<table cellpadding="3" cellspacing="" align="center" width="95%">
<tr>
<td>
**<asp:UpdatePanel ID="up" runat="server">
<ContentTemplate>**
<asp:Panel ID="pnlAddProduct" runat="server">
<table cellpadding="3" cellspacing="" align="center" width="98%">
<tr>
<td class="logBox" align="left" style ="padding-left :20px" colspan ="3">
<font color="red">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Size="Small" />
</font>
<center><asp:Label ID="lblMsg" runat="server" Text="" ForeColor="Black" Font-Bold="true"></asp:Label></center>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</td>
</tr>
<tr>
<td class="logText" valign="top" width="35%">
Select Category <font color="red">*</font>: <asp:ImageButton ID ="imgCategory" runat ="server" ImageUrl ="../images/helpIcon.png" border ="0" CausesValidation ="false" OnClientClick ="return showHelp('ctl00_ContentPlaceHolder1_pnlCategory');" />
<cc1:modalpopupextender ID="mdlCategory" runat="server" TargetControlID="imgCategory"
PopupControlID="pnlCategory" DropShadow="false"
CancelControlID="lnkCategoryCancel"
X ="400" Y ="230" />
<asp:Panel ID="pnlCategory" runat="server" Height="70px"
Width="170px" Style="display: none;" >
<asp:Panel ID="pnlOuterCategory" runat="server" CssClass ="modalPopup2" Height="100px"
Width="180px" BorderColor ="Black" BorderStyle ="Solid" BorderWidth ="1px" BackColor ="#FFFCF9" >
<table cellpadding ="0" cellspacing ="0" width ="90%" >
<tr>
<td align="center" valign="middle" style="padding-top: 15px;padding-left :5px;">
<table cellpadding ="0" align ="center" cellspacing ="0" width ="100%" height ="40px" >
<tr>
<td class ="style8"> The Category of the product. </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding-left: 20px;">
<asp:LinkButton ID="lnkCategoryCancel" runat="server" Text="" CssClass="gridPagerlink" ForeColor ="Black">Close <b>X</b></asp:LinkButton>
</td>
</tr>
</table>
</asp:Panel>
</asp:Panel>
</td>
<td width="4px">
</td>
<td class="logBox" width ="85%" >
<asp:CheckBoxList ID="chkCategory" runat="server" AutoPostBack="true" RepeatColumns="3"
RepeatDirection="Vertical" OnSelectedIndexChanged="chkCategory_SelectedIndexChanged"
RepeatLayout="Table" width ="85%">
</asp:CheckBoxList>
</td>
</tr>
<tr>
<td colspan="3" align="left">
<asp:Panel ID="subcatPanel" runat="server">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="logText" valign="top" width="24%">
<font class="logText">Select SubCategory</font> <font color="red">*</font>: <asp:ImageButton ID ="imgSubCategory" runat ="server" ImageUrl ="../images/helpIcon.png" border ="0" CausesValidation ="false" OnClientClick ="return showHelp('ctl00_ContentPlaceHolder1_pnlSubCategory');" />
<cc1:modalpopupextender ID="mdlSubCategory" runat="server" TargetControlID="imgSubCategory"
PopupControlID="pnlSubCategory" DropShadow="false"
CancelControlID="lnkSubCategoryCancel"
X ="400" Y ="290" />
<asp:Panel ID="pnlSubCategory" runat="server" Height="70px"
Width="170px" Style="display: none;" >
<asp:Panel ID="pnlSubCategoryOuter" runat="server" CssClass ="modalPopup2" Height="100px"
Width="180px" BorderColor ="Black" BorderStyle ="Solid" BorderWidth ="1px" BackColor ="#FFFCF9" >
<table cellpadding ="0" cellspacing ="0" width ="90%" >
<tr>
<td align="center" valign="middle" style="padding-top: 15px;padding-left :5px;">
<table cellpadding ="0" align ="center" cellspacing ="0" width ="100%" height ="40px" >
<tr>
<td class ="style8"> The SubCategory of the product. </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding-left: 20px;">
<asp:LinkButton ID="lnkSubCategoryCancel" runat="server" Text="" CssClass="gridPagerlink" ForeColor ="Black">Close <b>X</b></asp:LinkButton>
</td>
</tr>
</table>
</asp:Panel>
</asp:Panel>
</td>
<td class="logBox" align="left" width="45%">
<asp:CheckBoxList ID="subcatchk" runat="server" RepeatColumns="5" RepeatDirection="Vertical"
Width="100%" TextAlign="Right" RepeatLayout="Table">
</asp:CheckBoxList>
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
<tr>
>
</td>
</tr>
<tr>
<td class="logText" valign="top">
Product Main Image <font color="red">*</font>: <asp:ImageButton ID ="imgProdimage" runat ="server" ImageUrl ="../images/helpIcon.png" border ="0" CausesValidation ="false" OnClientClick ="return showHelp('ctl00_ContentPlaceHolder1_pnlimgProdimage');" />
<cc1:modalpopupextender ID="mdlimgProdimage" runat="server" TargetControlID="imgProdimage"
PopupControlID="pnlimgProdimage" DropShadow="false"
CancelControlID="lnkimgProdimageCancel"
X ="400" Y ="740" />
<asp:Panel ID="pnlimgProdimage" runat="server" Height="70px"
Width="170px" Style="display: none;" >
<asp:Panel ID="pnlimgProdimageOuter" runat="server" CssClass ="modalPopup2" Height="100px"
Width="180px" BorderColor ="Black" BorderStyle ="Solid" BorderWidth ="1px" BackColor ="#FFFCF9" >
<table cellpadding ="0" cellspacing ="0" width ="90%" >
<tr>
<td align="center" valign="middle" style="padding-top: 15px;padding-left :5px;">
<table cellpadding ="0" align ="center" cellspacing ="0" width ="100%" height ="40px" >
<tr>
<td class ="style8"> The image of the product. </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding-left: 20px;">
<asp:LinkButton ID="lnkimgProdimageCancel" runat="server" Text="" CssClass="gridPagerlink" ForeColor ="Black">Close <b>X</b></asp:LinkButton>
</td>
</tr>
</table>
</asp:Panel>
</asp:Panel>
</td>
<td width="4px">
</td>
<td nowrap="nowrap" align="left">
<asp:FileUpload ID="prodMainImage" runat="server" />
</td>
</tr>
<tr>
<td class="logBox">
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click"
Text="Assign Filter Criteria" CssClass ="Login-btn"></asp:LinkButton>
</td>
</tr>
<tr>
<td class="logBox">
<asp:Button ID="Button4" runat="server" Style="font-weight: 700; text-align: right"
Text="Add" CssClass="Login-btn" OnClick="Button4_Click" Enabled ="false" />
</td>
</tr>
</table>
</asp:Panel>
**</ContentTemplate>
</asp:UpdatePanel>**
</td>
</tr>
<tr>
<td align ="center">
**<asp:UpdatePanel ID="down" runat="server">
<ContentTemplate>**
<table cellpadding="0" cellspacing="0" width="80%" align="center">
<tr>
<td>
<asp:Panel ID="pnlFilter" runat="server" Visible="false">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="3" class="style3" align="left">
Assign Filtering Criteria
</td>
</tr>
<tr>
<td class="logText" width="30%">
Filter: <asp:ImageButton ID ="imgFilter" runat ="server" ImageUrl ="../images/helpIcon.png" border ="0" CausesValidation ="false" OnClientClick ="return showHelp('ctl00_ContentPlaceHolder1_pnlFilterHelp');" />
<cc1:modalpopupextender ID="mdlFilter" runat="server" TargetControlID="imgFilter"
PopupControlID="pnlFilterHelp" DropShadow="false"
CancelControlID="lnkFilterCancel"
X ="410" Y ="200" />
<asp:Panel ID="pnlFilterHelp" runat="server" Height="70px"
Width="170px" Style="display: none;" >
<asp:Panel ID="pnlFilterOuter" runat="server" CssClass ="modalPopup2" Height="100px"
Width="180px" BorderColor ="Black" BorderStyle ="Solid" BorderWidth ="1px" BackColor ="#FFFCF9" >
<table cellpadding ="0" cellspacing ="0" width ="90%" >
<tr>
<td align="center" valign="middle" style="padding-top: 15px;padding-left :5px;">
<table cellpadding ="0" align ="center" cellspacing ="0" width ="100%" height ="40px" >
<tr>
<td class ="style8"> Set Filter Criteria so that customer can easily search product. </td>
</tr>
</table>
</td>
</tr>
<tr><td> </td></tr>
<tr>
<td style="padding-left: 20px;">
<asp:LinkButton ID="lnkFilterCancel" runat="server" Text="" CssClass="gridPagerlink" ForeColor ="Black">Close <b>X</b></asp:LinkButton>
</td>
</tr>
</table>
</asp:Panel>
</asp:Panel>
</td>
<td class="logBox">
<asp:DropDownList ID="drpFilter" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpFilter_SelectedIndexChanged"
Width="150px">
</asp:DropDownList>
</td>
</tr>
<tr><td colspan ="3"> </td></tr>
<tr>
<td class="logText">
Filter Option: <asp:ImageButton ID ="imgFilterOption" runat ="server" ImageUrl ="../images/helpIcon.png" border ="0" CausesValidation ="false" OnClientClick ="return showHelp('ctl00_ContentPlaceHolder1_pnlFilterOption');" />
<cc1:modalpopupextender ID="mdlFilterOption" runat="server" TargetControlID="imgFilterOption"
PopupControlID="pnlFilterOption" DropShadow="false"
CancelControlID="lnkFilterOptionCancel"
X ="410" Y ="220" />
<asp:Panel ID="pnlFilterOption" runat="server" Height="70px"
Width="170px" Style="display: none;" >
<asp:Panel ID="pnlFilterOptionOuter" runat="server" CssClass ="modalPopup2" Height="100px"
Width="180px" BorderColor ="Black" BorderStyle ="Solid" BorderWidth ="1px" BackColor ="#FFFCF9" >
<table cellpadding ="0" cellspacing ="0" width ="90%" >
<tr>
<td align="center" valign="middle" style="padding-top: 15px;padding-left :5px;">
<table cellpadding ="0" align ="center" cellspacing ="0" width ="100%" height ="40px" >
<tr>
<td class ="style8"> Set Filter Criteria Option so that customer can easily search product. </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding-left: 20px;">
<asp:LinkButton ID="lnkFilterOptionCancel" runat="server" Text="" CssClass="gridPagerlink" ForeColor ="Black">Close <b>X</b></asp:LinkButton>
</td>
</tr>
</table>
</asp:Panel>
</asp:Panel>
</td>
<td width="4px">
</td>
<td class="logBox">
<asp:DropDownList ID="drpFilterOption" runat="server" Width="150px"
Enabled ="false" >
</asp:DropDownList>
</td>
</tr>
<tr><td colspan ="3"> </td></tr>
<tr>
<td class="logText">
</td>
<td width="4px">
</td>
<td class="logBox">
<asp:Button ID="btnAdd" runat="server" Style="font-weight: 700; text-align: right"
Text="Add" CssClass="Login-btn" OnClick="btnAdd_Click" />
<asp:Button ID="btnCancel" runat="server" Style="font-weight: 700; text-align: right"
Text="Back" CssClass="Login-btn" onclick="btnCancel_Click" />
</td>
</tr>
<tr>
<td align="center" colspan="3">
<asp:Panel ID="pnlAddFilter" runat="server" Visible="false">
<table id="list">
</table>
<div id="pager" style="text-align: center;">
</div>
</asp:Panel>
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
</table>
***</ContentTemplate>
</asp:UpdatePanel>***
</td>
</tr>
</table>
</td>
</tr>
</table>