R
Ryan Liu
Hi,
I have a HtmlTexTArea inside update panel
<SR:UpdatePanel runat="server" ID="upnDetail" ChildrenAsTriggers="false"
UpdateMode="Conditional" EnableViewState="false">
<ContentTemplate>
<SRlaceHolder ID="phNetwork" runat="server"
Visible="false" EnableViewState="false">
<asp:Label runat="server"
ID="lblNetworkName"></asp:Label>
<textarea runat="server" readonly="readonly"
id="tarNetworkOverview" cols="60" rows="10"
enableviewstate="false"></textarea>
............
Codebehind I do call
if( ...)
{
lblNetworkName = "llll";
tarNetworkOverview.Value = "text";
}
//otherwise do not set their values
//update the updatepanel
this.upDetail.Update();
-------
But I am surprised to see after post back, I still see text in the text area
which was set previously when if (true).
But The asp:Label works as expected, it will be clean up or set.
Seems the server side textarea's view state is always enabled ?!
Thanks!
Ryan
I have a HtmlTexTArea inside update panel
<SR:UpdatePanel runat="server" ID="upnDetail" ChildrenAsTriggers="false"
UpdateMode="Conditional" EnableViewState="false">
<ContentTemplate>
<SRlaceHolder ID="phNetwork" runat="server"
Visible="false" EnableViewState="false">
<asp:Label runat="server"
ID="lblNetworkName"></asp:Label>
<textarea runat="server" readonly="readonly"
id="tarNetworkOverview" cols="60" rows="10"
enableviewstate="false"></textarea>
............
Codebehind I do call
if( ...)
{
lblNetworkName = "llll";
tarNetworkOverview.Value = "text";
}
//otherwise do not set their values
//update the updatepanel
this.upDetail.Update();
-------
But I am surprised to see after post back, I still see text in the text area
which was set previously when if (true).
But The asp:Label works as expected, it will be clean up or set.
Seems the server side textarea's view state is always enabled ?!
Thanks!
Ryan