RE: enable viewstate for only one control on the page
- From: "Pablo Galiano" <PabloGaliano@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Jul 2005 19:10:02 -0700
Tom,
You have to put the enableviewstate property of the page to false:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" EnableViewState="false"
AutoEventWireup="false" Inherits="WebApplication1.WebForm1" %>
And then you have to put the enableviewstate property of the dropdown
control to true:
<asp:DropDownList EnableViewState=True id="DropDownList1" style="Z-INDEX:
102; LEFT: 424px; POSITION: absolute; TOP:
88px"runat="server"></asp:DropDownList>
Pablo
"thomasamillergoogle@xxxxxxxxx" wrote:
> I have a page that has hundreds of textboxes added dynamically by
> writing out "<input type = text name=ctl_99>". In other words, these
> are NOT asp.net web controls.
>
> I want to enable viewstate for only ONE control, it is a dropdown
> called drpOrg. This dropdown IS an asp.net web control.
>
> Please help.
>
> Tom
>
>
.
- Follow-Ups:
- Re: enable viewstate for only one control on the page
- From: Robert Smith
- Re: enable viewstate for only one control on the page
- References:
- enable viewstate for only one control on the page
- From: thomasamillergoogle
- enable viewstate for only one control on the page
- Prev by Date: Re: Id change of elements placed on a control loaded dynamically.
- Next by Date: RE: Windows integrated authentication
- Previous by thread: enable viewstate for only one control on the page
- Next by thread: Re: enable viewstate for only one control on the page
- Index(es):
Relevant Pages
|