Using Javascript in ASP.NET 2.0
-
I am quite new to using asp.net 2.0 and am only really beginning to get the hang of it, therefore i want to improve my client-side responses and to do so I have decided to add some client-side javascript to help in a calculation. I have the javascript created in a seperate file. The difficult part that i have now is trying to call this function whenever a button is clicked. So if anyone can help with some useful links/ articles on the subject please let me know.
-
I am quite new to using asp.net 2.0 and am only really beginning to get the hang of it, therefore i want to improve my client-side responses and to do so I have decided to add some client-side javascript to help in a calculation. I have the javascript created in a seperate file. The difficult part that i have now is trying to call this function whenever a button is clicked. So if anyone can help with some useful links/ articles on the subject please let me know.
First you have to include that javascript file in web page and then you can call the function of that file by adding the onclick attribute to the button. Although what i have told here is the process do be done in asp.net 1.1 and i hope that it would be same in 2.0 also.
Best Regards, Apurva Kaushal
-
First you have to include that javascript file in web page and then you can call the function of that file by adding the onclick attribute to the button. Although what i have told here is the process do be done in asp.net 1.1 and i hope that it would be same in 2.0 also.
Best Regards, Apurva Kaushal
-
It's still the same browser that is used on the client side, where the Javascript is, so the process is still the same, regardless of the framework version used on the server. :)
--- b { font-weight: normal; }