Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Client Side Validation

Status
Not open for further replies.

ami7

Programmer
Oct 3, 2002
48
GB
Hi all,

I have a javascript function in my page which basically should disable the label with message.
eg:
Javascript:
<SCRIPT type=&quot;text/javascript&quot;>
function clrlabel()
{
document.all(&quot;lblmessage&quot;).visible=&quot;false&quot;
}
</SCRIPT>

am calling this in my .aspx code when i click a button
btnLogin.Attributes.Add(&quot;Onclick&quot;, &quot;clrlabel()&quot;)

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top