[ASP.NET] Reserved Value of Password Box

xiaoxiao2021-03-06  120

When postback, if TextBox's TextMode is Password, it is passed without a value property, so the password box is empty.

Join the following code:

Private void page_load (object sender, system.eventargs e) {password.attributes .add ("value", request ["password"]); // password is the name} of TextBox

Video tutorial: http://www.allenkuo.com/forum/demo/20041011/keeppasswordValue.wmv

转载请注明原文地址:https://www.9cbs.com/read-98951.html

New Post(0)