Can someone ExplainRun at server and Client javascripts

R

Ric Pullen

Hi

i'm still getting my head around developing in a web environement.

I have a server button. on the load Page_Load event i use the following code
to register a client script.
btnReturn.Attributes.Add("onclick", "javascript:NewPatient()")

one thing i've noticed is that although the code fires it still seems to
come back to the server. (i had assumed that if their was only javascript
event it would only run at the client. But if there was both then it would
run first at the client and then the server)

I used a html button and in its onlick event it fired the same function but
did no do a postback to the server.

Can someone tell me a site that explains in numpty language what is going on
and how to create client side scripts/ assign them correctly.



Cheers
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top