Welcome to WebmasterWorld Guest from 3.80.60.248

Forum Moderators: ocean10000

Message Too Old, No Replies

ASP.NET and client side scripts

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

New User

10+ Year Member

joined:Nov 27, 2004
posts:9
votes: 0


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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 24, 2005
posts:965
votes: 0


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.

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

Junior Member from IN 

10+ Year Member

joined:July 19, 2004
posts:136
votes: 0


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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members