Setting Texbox(Password mode) viewstate property true?????
-
i have a password textbox,a combobox (autopostback true) and a save button on my .aspx page. On combo SelectedIndexChanged, the page refreshes and the textbox doesn't saves the value in it.it becomes blank. So,how to save the text entered into it? its enable viewstate property is true.Even if i save its value in a viewstate variable (or session variable or global variable) and then re-assign the textbox that viewstate variable value on page refresh.it doesn't shows any text in it.it remains nothing.
-
i have a password textbox,a combobox (autopostback true) and a save button on my .aspx page. On combo SelectedIndexChanged, the page refreshes and the textbox doesn't saves the value in it.it becomes blank. So,how to save the text entered into it? its enable viewstate property is true.Even if i save its value in a viewstate variable (or session variable or global variable) and then re-assign the textbox that viewstate variable value on page refresh.it doesn't shows any text in it.it remains nothing.
-
i have a password textbox,a combobox (autopostback true) and a save button on my .aspx page. On combo SelectedIndexChanged, the page refreshes and the textbox doesn't saves the value in it.it becomes blank. So,how to save the text entered into it? its enable viewstate property is true.Even if i save its value in a viewstate variable (or session variable or global variable) and then re-assign the textbox that viewstate variable value on page refresh.it doesn't shows any text in it.it remains nothing.
Hi there, password text box is a bit different from normal one. To assign the value to the password textbox, you cannot do this by code-behind, you have to do this by js. Before the page get posted back, you save the password into an hidden field, then when the page reloaded, you wrote a js snipet code on
bodyload event
to read the password from the hidden field and assign to the password text box Hope u get the idea << >> -
i have a password textbox,a combobox (autopostback true) and a save button on my .aspx page. On combo SelectedIndexChanged, the page refreshes and the textbox doesn't saves the value in it.it becomes blank. So,how to save the text entered into it? its enable viewstate property is true.Even if i save its value in a viewstate variable (or session variable or global variable) and then re-assign the textbox that viewstate variable value on page refresh.it doesn't shows any text in it.it remains nothing.
this is how you can do it , i found out: txtPassword.Attributes.Add("value", "the text you want to show")