T
tshad
I have a page I would like to use 2 different areas with Partial Rendering.
I have the top area as a bunch of drop downs that I need to fill as others
are selected. This part works fine if I have only one content area and the
closing UpdatePanel is just below the drop downs. Only the top half of the
screen is updated when a dropdown is selected.
The bottom half is a button that is used to fill the Gridview that is in the
bottom half (or more) of the screen. I have the code set up as:
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="mScriptManager" runat="server"
EnablePartialRendering="true" />
<div>
<!-- Progress Indicator -->
<asp:UpdatePanel ID="pnlContainer" runat="server" >
<ContentTemplate>
<!-- Filter Grid -->
<aspanel ID="mFilterPanel" runat="server">
All of my drop downs here
</aspanel>
</ContentTemplate>
</UpdatePanel>
this works fine and the GridView is below that.
I wanted to change this to also surround the GridView with a ContentTemplate
so that only the GridView is handled when the button is pushed.
So I tried to change the above code to look like this:
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="mScriptManager" runat="server"
EnablePartialRendering="true" />
<div>
<!-- Progress Indicator -->
<asp:UpdatePanel ID="pnlContainer" runat="server" >
<ContentTemplate>
<!-- Filter Grid -->
<aspanel ID="mFilterPanel" runat="server">
All of my drop downs here
</aspanel>
</ContentTemplate>
<ContentTemplate>
Some Table Code
<asp:ImageButton ID="btnRefresh"
ImageUrl="~/images/refresh_16.gif" runat="server"
ToolTip="Refresh Grid"
CssClass="GridActionButton" OnClick="btnRefresh_Click"
Style="width: 16px" />
More Table Code
<aspanel ID="mGridViewPanel" style="text-align:center"
runat="server">
<asp:Label ID="lblGridStatus" style="color:Red;
text-align:center" Visible="false" runat="server" />
<asp:GridView ID="GridView1"
.....
</aspanel>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</UpdatePanel>
Now nothing works.
The dropdowns don't fill fill other dropdowns and the GridView doesn't work.
All I did was move the </UpdatePanel> down and added another
ContentTemplate.
Is there something else I need to do to get this to work???
Thanks,
Tom
I have the top area as a bunch of drop downs that I need to fill as others
are selected. This part works fine if I have only one content area and the
closing UpdatePanel is just below the drop downs. Only the top half of the
screen is updated when a dropdown is selected.
The bottom half is a button that is used to fill the Gridview that is in the
bottom half (or more) of the screen. I have the code set up as:
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="mScriptManager" runat="server"
EnablePartialRendering="true" />
<div>
<!-- Progress Indicator -->
<asp:UpdatePanel ID="pnlContainer" runat="server" >
<ContentTemplate>
<!-- Filter Grid -->
<aspanel ID="mFilterPanel" runat="server">
All of my drop downs here
</aspanel>
</ContentTemplate>
</UpdatePanel>
this works fine and the GridView is below that.
I wanted to change this to also surround the GridView with a ContentTemplate
so that only the GridView is handled when the button is pushed.
So I tried to change the above code to look like this:
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="mScriptManager" runat="server"
EnablePartialRendering="true" />
<div>
<!-- Progress Indicator -->
<asp:UpdatePanel ID="pnlContainer" runat="server" >
<ContentTemplate>
<!-- Filter Grid -->
<aspanel ID="mFilterPanel" runat="server">
All of my drop downs here
</aspanel>
</ContentTemplate>
<ContentTemplate>
Some Table Code
<asp:ImageButton ID="btnRefresh"
ImageUrl="~/images/refresh_16.gif" runat="server"
ToolTip="Refresh Grid"
CssClass="GridActionButton" OnClick="btnRefresh_Click"
Style="width: 16px" />
More Table Code
<aspanel ID="mGridViewPanel" style="text-align:center"
runat="server">
<asp:Label ID="lblGridStatus" style="color:Red;
text-align:center" Visible="false" runat="server" />
<asp:GridView ID="GridView1"
.....
</aspanel>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</UpdatePanel>
Now nothing works.
The dropdowns don't fill fill other dropdowns and the GridView doesn't work.
All I did was move the </UpdatePanel> down and added another
ContentTemplate.
Is there something else I need to do to get this to work???
Thanks,
Tom