Make simple HTML control keep state with every postback.

Last post 07-07-2009 9:40 AM by papabear. 1 replies.

Sort Posts:

  • Make simple HTML control keep state with every postback.

    07-07-2009, 9:16 AM
    • Member
      3 point Member
    • steppinthrax
    • Member since 03-16-2009, 2:26 PM
    • Posts 45

     This is probably a very simple question.

    I have an HTML control that loses it's value anytime the page postback.  I obtain the control value using Request.Form["name"].ToString();

    I need to either set the value in the cs or I need it to be included within the ViewState.

  • Re: Make simple HTML control keep state with every postback.

    07-07-2009, 9:40 AM
    Answer
    • Contributor
      5,138 point Contributor
    • papabear
    • Member since 08-08-2005, 11:49 AM
    • Posts 851

    Take a looksee here -> http://blog.monstuff.com/archives/000013.html. They have a nice discussion re LoadViewState and SaveViewState which is what you are probably refering to ...

    :)

    give me suggestions for what to blog... http://www.myfriedmind.com/techblog -> thx

    Mark as "Answered" if this solves that wee old problem...
Page 1 of 1 (2 items)