Trying to get client side javasctipt to run

D

Davef

I put the following code on the Page_Load
Button1.Attributes.Add("onclick", "checkBal();")



It does hit the following javascript, but it will continue to post enen with the return false;

<script type="text/javascript">
function checkBal(){
alert("hi")
return false;
}
</script>
--

______________________
David Fetrow
HelixPoint LLC.
http://www.helixpoint.com
(e-mail address removed)

Interested in Affordable Email Marketing?
Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp
If you are interested in becoming a Reseller of HelixPoint products, contact (e-mail address removed)
______________________
 
S

Steve C. Orr, MCSD

Try this modification:
Button1.Attributes.Add("onclick", "return checkBal();")

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com



I put the following code on the Page_Load
Button1.Attributes.Add("onclick", "checkBal();")



It does hit the following javascript, but it will continue to post enen with the return false;

<script type="text/javascript">
function checkBal(){
alert("hi")
return false;
}
</script>
--

______________________
David Fetrow
HelixPoint LLC.
http://www.helixpoint.com
(e-mail address removed)

Interested in Affordable Email Marketing?
Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp
If you are interested in becoming a Reseller of HelixPoint products, contact (e-mail address removed)
______________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,786
Messages
2,569,626
Members
45,324
Latest member
ChristenCo

Latest Threads

Top