Click here to Skip to main content
15,894,106 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Can anybody give me an answer why javascript is used in asp.net and what the importance of javascript in asp.net is?

I have tried, but couldn't find a proper link to know more about Javascript. I want to learn javascript and want to use it in a web application.

Thanks!
Posted
Updated 15-Dec-10 22:29pm
v2
Comments
Manfred Rudolf Bihy 16-Dec-10 4:30am    
Edit for spelling and grammar, removed text speak.
call to .net 16-Dec-10 5:51am    
thanks

ASP.net is a server side language, and for each event it jumps to server to perform the task which is known as postback. Now, there may be many tasks like as page validation or adding,opening, closing of controls, divs etc for which server side scripting may be a very costly approach. To perform such small tasks for which no database interaction or server interaction is required, we normally use javascript.

For more information,

1. See This[^], or

2. See This[^]
 
Share this answer
 
Comments
E.F. Nijboer 16-Dec-10 4:38am    
Nice answer.
@nuraGGupta@ 16-Dec-10 4:54am    
Thanks E.F. Nijboer.
thatraja 16-Dec-10 5:03am    
Good answer
@nuraGGupta@ 16-Dec-10 5:21am    
Thanks Thatraja.
The answer of @nuraGGupt is correct. ASP.NET using the language C# or VB.NET is used server side. Javascript is used for client side, so that is code executed by the browser of the user. You could also use non cross platform VBScript for that but hardly anyone uses that because it is internet explorer only.

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900