E
et
How do I get the screen to repaint?
I have a normal login process where the user clicks on the logon button, and
the logon is authenticated. An error is returned if the logon is not
validated, and the error is displayed via a div (div id=ErrorMessage, then
in code (ErrorMessage.InnerHtml = "Logon incorrect"). The user can then
retype the logon, and click the logon button again, and I'm trying to get
rid of the "Logon incorrect" message at that point and display another.
I've tried ErrorMessage.InnerHtml = "" in postback, under the button click
event, in the page prerender and unload and although during debug the code
is stepped through, the error never goes away. How do I repaint so the
error will go away so I can display another? Thank you.
I have a normal login process where the user clicks on the logon button, and
the logon is authenticated. An error is returned if the logon is not
validated, and the error is displayed via a div (div id=ErrorMessage, then
in code (ErrorMessage.InnerHtml = "Logon incorrect"). The user can then
retype the logon, and click the logon button again, and I'm trying to get
rid of the "Logon incorrect" message at that point and display another.
I've tried ErrorMessage.InnerHtml = "" in postback, under the button click
event, in the page prerender and unload and although during debug the code
is stepped through, the error never goes away. How do I repaint so the
error will go away so I can display another? Thank you.