Question
How do I initialize the contents of a password textfield in ASP.NET 2.0?
Simple anwser
You can't! This doesn't work (apparently this is for security reasons, although the exact motivation escapes me):
Better answer
Create an event handler for the TextBox's PreRender event:
Voilá! Now you can assign to the Text property as in the first example.
(Credits for this tip to David Silverlight.)
[powered by WordPress.]
jour·nal n. A personal record of occurrences, experiences, and reflections kept on a regular basis; a diary.
36 queries. 0.476 seconds