Re: HeadTemplate UserControl State

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Yeah, EnableViewState is default to true and i didn't change it.
This is in the column header where i try to have an arrow for the sorting.
I have a click event that toggles the text of the label that represents the
arrow, looping thru the states of ("","ASC","DESC")
However, when i rebind & postback, the label text is gone. I guess it got
reset to "".

Any ideas?

thanks

"Mona" <mona@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:uENwoSRZFHA.2520@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Anthony,
>
> To make the web pages remember or maintain the values on postback
> you need to set the Enable.ViewSate property to True.
>
> HTH
>
> Mona[Grapecity]
>
>
> "Crosscourt" <noreply@xxxxxxxxxx> wrote in message
> news:%238TyyIlYFHA.1344@xxxxxxxxxxxxxxxxxxxxxxx
>> If i have a template column with a template header whoch contains a Label
>> Control,
>> The datagrid seems to regenerate the labels on postback. How can i force
>> it to remeber the text property if it was changed dynamically?
>>
>> Anthony
>>
>
>


.



Relevant Pages

  • HeadTemplate UserControl State
    ... If i have a template column with a template header whoch contains a Label ... The datagrid seems to regenerate the labels on postback. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: HeadTemplate UserControl State
    ... To make the web pages remember or maintain the values on postback ... HTH ... > If i have a template column with a template header whoch contains a Label ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: BackColor binding does not work on postback
    ... BackColor binding does not work on postback ... the issue is with the Label control, not a textbox ... I have the following label markup: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Postback caused by pressing the "enter" key
    ... I can see the label change to what i expect ... Is pressing enter and causing a postback something anyone else has ... How can I prevent the form performing a postback when the enter key ...
    (microsoft.public.dotnet.framework.aspnet)
  • Cannot get Client Side VBscript variables to ASP.NET page
    ... I have the following code where there is some client side VBScript that ... When the page is updated through a postback, ... the variable for the Label text field is blank. ... sub FindDVD ...
    (microsoft.public.dotnet.framework.aspnet)