Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
3.00/5 (4 votes)
hi ,

I always had this question in mind. will there be a performance or response time difference if I use c# as scripting language on my webpage besides javascript ?
What is the difference between using c# vs Javascript ?


Thanks
praveen gali
Posted

You can't use C# as a scripting language. C# runs server side and JavaScript is what executes on the client side.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 12-Jun-14 16:37pm    
5ed.
—SA
[no name] 12-Jun-14 23:10pm    
5+.
 
Share this answer
 
Comments
PraveenGali 12-Jun-14 15:02pm    
Thanks for the link !!
You are comparing apple and orange, and that does not make sense. JavaScript is client-side scripting that adds programming capability to the otherwise static HTML page and is executed by browsers and is visible in the html page. On the other hand, C# is a server-side language that preforms application logic on the server and is hidden from the users.
 
Share this answer
 
Comments
PraveenGali 12-Jun-14 15:01pm    
I know the difference. But in few cases, I noticed c# language under the script tag attributed to run at "Server". I wanted to know if this is a good practice . Is it not going to effect the performance of the site..?
Thanks7872 12-Jun-14 15:11pm    
http://www.csharpkey.com/aspnet/topics/scripts.htm

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