Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i had a interview where they asked how browser understands a code written in c# or vb.net language.

What I have tried:

as for as i have known the browser sends a request to server and the server processes it and sends a response. but how do i answer this question???????????????
Posted
Updated 19-Mar-16 11:23am
v2
Comments
[no name] 19-Mar-16 17:45pm    
better not to join this Company....
Browsers have enough Problems to solve an html correctly ;)

Browsers don't understand c# or vb.net, that code runs on the server and generates html which is sent to the browser and it's the html the browser understands (as well as javascript).
 
Share this answer
 
That's easy. They don't.

Code that is written in C# or VB.NET, or any of the other managed languages, doesn't run in the browser.

In an ASP.NET application, all that code runs on the server, not the browser.

In a Silverlight application that runs in a browser, the browser is just a host. The code is run by the Silverlight .NET CLR in a container in the browser.


The question was a setup to see if you knew what you were talking about.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 19-Mar-16 20:42pm    
Sure, a 5.
—SA

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