Hi all,
I have a javascript function in my page which basically should disable the label with message.
eg:
Javascript:
<SCRIPT type="text/javascript">
function clrlabel()
{
document.all("lblmessage".visible="false"
}
</SCRIPT>
am calling this in my .aspx code when i click a button
btnLogin.Attributes.Add("Onclick", "clrlabel()"
This doesn't seem to work 'cos by default it puts onclick event (i think for validation) in the code.(i ran the appln and viewed the source from the browser it calls onclick event ). so it ignores the function which am calling.
is there any way to handle this?
pls help.
Rgds,
ami.
I have a javascript function in my page which basically should disable the label with message.
eg:
Javascript:
<SCRIPT type="text/javascript">
function clrlabel()
{
document.all("lblmessage".visible="false"
}
</SCRIPT>
am calling this in my .aspx code when i click a button
btnLogin.Attributes.Add("Onclick", "clrlabel()"
This doesn't seem to work 'cos by default it puts onclick event (i think for validation) in the code.(i ran the appln and viewed the source from the browser it calls onclick event ). so it ignores the function which am calling.
is there any way to handle this?
pls help.
Rgds,
ami.