persistent label on postback

Results 1 to 2 of 2

Thread: persistent label on postback

  1. #1
    Join Date
    Dec 1969

    Default persistent label on postback

    I&#039;ve been working a page which has a rather complex form on it, and I have some labels which I want to change depending upon the states of some form elements. This is rather simple, and handled with javascript. However, the labels do not maintain their Text property on a page postback, since they aren&#039;t form elements. <BR><BR>One difficulty here is that the number of these labels (and many other things on the form) change since they are created dynamically. However, ones that reappear do keep their ids (all of my other form elements work perfectly). <BR><BR>Is there any way to create a label or new control type which has a text property that stays across postbacks?

  2. #2
    Join Date
    Dec 1969

    Default have you made sure

    that the &#060;asp:label&#062; is inside the &#060;form runat="server"&#062;&#060;/form&#062; tags?<BR><BR>hate to tell ya, Labels can hold ViewState just fine [:)]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts