Forum Moderators: open

Message Too Old, No Replies

ASP.NET and client side scripts

         

ofnimira

1:27 pm on Nov 29, 2008 (gmt 0)

10+ Year Member



I've just started programming for ASP.NET and am trying to familiarise myself with how it works. As a server-side technology, the page that reaches your browser isn't the page you wrote, rather it's a page generated by your ASP.NET program. But unlike php say, where you are responsible for specifying the details of what is in the served page, the ASP.NET server is more sophisticated, and will generate javascript to deal with client side processing of the page.

I haven't been able to find much information about this side of ASP.NET, and I would appreciate any pointers as to where such information might be found. I would have thought it was important if you were putting your own javascript on a page to know what javascript the ASP.NET would be likely to produce

mrMister

1:05 pm on Dec 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ASP.Net only inserts Javascript in certain situations. It does so withc lient side validation for example. the best way to see if any Javascript is generated is to "view source" in your browser.

AJAX.Net inserts a lot of Javascript.

ashish21cool

10:33 am on Dec 26, 2008 (gmt 0)

10+ Year Member



There are 2 ways in which we can include javascript on asp.net page
1) In the .aspx page itself, using <script></script> tag
2) By writing all the code in external .js file and then just including the reference of that file in the .aspx page.

Hope this gives you some clearity.