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
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