Value in a Textbox not retrieving as a result of refresh in asp.net 2.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • silpa
    New Member
    • May 2007
    • 20

    Value in a Textbox not retrieving as a result of refresh in asp.net 2.0

    I have a form named dataentry1.aspx

    It has Name,Age,centim etres,metres textboxes.
    we will enter name in name textbox,age in age textbox.
    when we enter height in centimetres textbox, and after focusout from it,height in metres will be automatically displayed in metres textbox.



    The dataentry1.aspx also has a placeholder.The placeholder gets reference of usercontrol(.as cx) when the page is loaded.
    The user control has some linkbuttons.

    When we click on a linkbutton,the page is refreshed and
    I am able to see the values of name,age and centimetres that I have entered.
    But the value in metres textbox is becoming empty as a result of refresh.
    I need the value in metres textbox also to be displayed after refresh.

    I need help regarding this and please send a sample code for the same.

    Thanks
    Silpa.
  • Nitinkcv
    New Member
    • Mar 2007
    • 65

    #2
    Originally posted by silpa
    I have a form named dataentry1.aspx

    It has Name,Age,centim etres,metres textboxes.
    we will enter name in name textbox,age in age textbox.
    when we enter height in centimetres textbox, and after focusout from it,height in metres will be automatically displayed in metres textbox.



    The dataentry1.aspx also has a placeholder.The placeholder gets reference of usercontrol(.as cx) when the page is loaded.
    The user control has some linkbuttons.

    When we click on a linkbutton,the page is refreshed and
    I am able to see the values of name,age and centimetres that I have entered.
    But the value in metres textbox is becoming empty as a result of refresh.
    I need the value in metres textbox also to be displayed after refresh.

    I need help regarding this and please send a sample code for the same.

    Thanks
    Silpa.
    Hi,
    why not try using javascript

    Comment

    Working...