Dave Burke : Freelance .NET Web Developer specializing in Online Communities

Populating a password textbox

Learned today that ASP.NET textboxes with textmode=password cannot be populated as in .ASP.  (I almost said “as in classic .ASP.”  There was nothing classic about .ASP.  It's not friggen' Coke or anything.)  So no

txtPassword.text = cookie.Values[”password”];

I appreciate the security implications of pre-populating and sending a password as clear text, but in this particular app, “it ain't a problem.”

Found a fun client-side workaround.

txtPassword.Attributes.Add(”value”, cookie.Values[”password”])

Comments (0) | Post RSS RSS comment feed

Posted on 3/14/2004 2:09:00 PM by Dave Burke
Categories:
Tags:

Related posts


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke