0

I'm currently working on an ASP.Net web application. Just curious when I noticed that I have both javascript codes and C# codes. Is it possible to transfer all my javascript codes to c# codes to make it looks more consistent? Thanks!

1
  • 1
    You do realize that JavaScript and C# are two different things, the former being primarily client-side and the latter being server-side? Commented Apr 18, 2012 at 19:32

3 Answers 3

3

No. JavaScript code executes on the Client Side. C# executes on the Server Side. They perform two different functions and can't be treated interchangeably.

Sign up to request clarification or add additional context in comments.

Comments

0

C# is your server-side, back-end logic to support your web page. The JavaScript is client-side code running in the browser, often to improve the user experience and perform some logic or UI operations wihtout having to go to the server.

Comments

0

Javascript is a language that executes on the Browser, on the Client Side; C# code is executed on the web server.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.