Hi,
I put...
void Page_PreRender(Object Src, EventArgs E)
{
txtBxPassword.Attributes.Add("onload", "value='password';");
}
in an aspx page and it doesn't appear to do anything. Is there any reason why a code block like this wouldn't run?
Cheers,
WT.
istxtBxPassworda server control ? it might not be an object yet at prerender stage (guessing) and i don't think it would have a value attribute.
If it is a server control - couldn't you just do something like this in Page_Load() -txtBxPassword.text="Password"
HTH
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment