Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi friends,


It’s hard to find a clear answer elsewhere- Is JavaScript needed for the client-side in asp.net websites or will C# work totally fine (even without the .net framework installed on the clients machine) ??

Is it better to still use some JavaScript in there?


(I'm a newbie, just learning C# right now)


Thanks for the help...


Nath :-)
Posted

C# can't be used on the client-side, you need to use JavaScript. Whether it is better to use JavaScript or not depends on what you are trying to accomplish. If you need an interactive site or need Ajax, then yes JavaScript is required.
 
Share this answer
 
Comments
Nath Maniedeo 4-Oct-10 11:14am    
Great, thanks very much for your help.
C# can't do everything on client side. Lets suppose you need to show a message box and want to perfrom an action (based on whether user pressed OK or Cancel) then C# won't work. You need Javascript here. I myself am newbie, so seasoned programmers can tell in more authentic way.
 
Share this answer
 
thank you for your help... :)
 
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