But in javascript there is an option to run the script on the server side (runat="Server")
The reason I'm asking it is because I saw this question in a formal Javascript exam and didn't know the answer myself...
Putting runat="server" on your script will not magically make it run on the server - think of the potential security implications that would arise if people could do this!
Server-side code runs on the server, and client-side code runs on the client. It's that simple.
AFAIK, all the runat="server" attribute does, is tell a web server (a .Net one, AFAIK) that form elements should be available for server-side processing.
Perhaps asking this question in a .Net forum might give you a more complrehensive answer.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.