when i refresh the webpage i want to keep the value i inputed
-
hi..i when i refresh the webpage i want to keep the value i inputed in the textbox,when the page reload the value i have inputed before can display automatically I try my best!
-
hi..i when i refresh the webpage i want to keep the value i inputed in the textbox,when the page reload the value i have inputed before can display automatically I try my best!
Hello: I will assume the refresh you are talking about is not that one you make on the explorer pressing F5 or pressing the toolbar refresh button , but is a postback instead caused by clicking in some control you previously put in the page (as a button for example) If it is that "F5 refresh" then forget it... the value will get lost as the page is re-initialized again it is like restore it´s "last known state" for saying it in some way Now if we are talking about a postback then can be happening 3 things 1. You are using a Text Field from the HTML palette...Solution, rightclick it and select "Run at Server" 2. You are using a TextBox from the WebForms palette but the EnableViewState is set to false (which is strange ´cause it is true by default). Set it to true. 3. Case 2 with EnableViewState=true but the Page is who has the EnableViewState=false. In the Property browser select DOCUMENT and set EnableViewState= true If it´s not one of these i have no idea ... put the html code here to take a look at it
-
Hello: I will assume the refresh you are talking about is not that one you make on the explorer pressing F5 or pressing the toolbar refresh button , but is a postback instead caused by clicking in some control you previously put in the page (as a button for example) If it is that "F5 refresh" then forget it... the value will get lost as the page is re-initialized again it is like restore it´s "last known state" for saying it in some way Now if we are talking about a postback then can be happening 3 things 1. You are using a Text Field from the HTML palette...Solution, rightclick it and select "Run at Server" 2. You are using a TextBox from the WebForms palette but the EnableViewState is set to false (which is strange ´cause it is true by default). Set it to true. 3. Case 2 with EnableViewState=true but the Page is who has the EnableViewState=false. In the Property browser select DOCUMENT and set EnableViewState= true If it´s not one of these i have no idea ... put the html code here to take a look at it
Thanks i want to use "F5 refresh" ,so i have forgotten it :) I try my best!