I was reading <a href="http://net.tutsplus.com/articles/general/7-exciting-web-development-trends-for-2011/">an article</a> over at net.tusplus.com about upcoming trends in web design and development in 2011.
It mentioned serverside JavaScript which I thought was an interesting idea.
I kind of forgot about the correct terminology about the language support for the .NET framework, but I know that if there is a compiler (I think that's what it's called) for the specific langauge, then it's possible to use it in .NET, say, for an MVC app.
Anyway, I just thought it would be interesting to use JavaScript as my language, instead of C# but I would imagine nothing exists for that at the moment, but I'm just wondering.
In the link u provided, they mentioned, what ever the language u r using, ultimately it will generate javascript.
For example, some asp.net server side controls like dropdownlist, checkbox or LinkButton use PostBack property. In order to work with the Postback, the control has to generate Javascript.
You can even call Server side code using Javascript function in ASP.NET
Serverside JavaScript is JavaScript that runs on the server and not the browser. Not sure what the last poster was talking about. JavaScript that calls the server with Ajax is not serverside and JavaScript that is genererated and returned to the client from
the erver is not serverside javascript.
in the asp world I used javascript for clientside and serverside. it was really nice to use one language, and serializing data back and forth was easy. I miss using javascript as the server language. When .net came out I had to switch serverside languages.
net had a serverside javascript.net, but it was really and new version of javascript (javascript.net), and had little MS support and ide support never came. MS now calls it jscript.net, and it exists in the docs, but still no ide support. you can use it as
you your language for webforms but no templates, or intellsense exists as far as I know. you can use jscript.net (@page language="jscript"), but as vs2010 has no support for compiling jscript.net (only asp.net does), it not bad in a webform (don't use codebehind
and stick to websites), but MVC projects are probably undoable. also none of the designers support jscript (even though jscript codedom support has existed since version 1.0). maybe MS will catch on, but this is version 4.0 of .net and I'm still waiting for
proper serverside javascript support (at least the client side support has improved)
I think it would be better for me personally to build upon my C# knowledge anyway, considering that Windows applications (Desktop, 360 and WP7) can be built off of C# code base.
Btw, I believe this should be moved back to the languages section of the forum, not in the client portion, as we are referring to server-side JavaScript.
Marked as answer by BU XI - MSFT on Jan 14, 2011 08:36 AM
qcom
Member
1 Points
12 Posts
Serverside JavaScript
Jan 07, 2011 11:41 PM|LINK
I was reading <a href="http://net.tutsplus.com/articles/general/7-exciting-web-development-trends-for-2011/">an article</a> over at net.tusplus.com about upcoming trends in web design and development in 2011.
It mentioned serverside JavaScript which I thought was an interesting idea.
I kind of forgot about the correct terminology about the language support for the .NET framework, but I know that if there is a compiler (I think that's what it's called) for the specific langauge, then it's possible to use it in .NET, say, for an MVC app.
Anyway, I just thought it would be interesting to use JavaScript as my language, instead of C# but I would imagine nothing exists for that at the moment, but I'm just wondering.
Thanks!
asp.net .net languages javascript
roopeshreddy
All-Star
20143 Points
3327 Posts
Re: Serverside JavaScript
Jan 08, 2011 03:10 AM|LINK
Hi,
In the link u provided, they mentioned, what ever the language u r using, ultimately it will generate javascript.
For example, some asp.net server side controls like dropdownlist, checkbox or LinkButton use PostBack property. In order to work with the Postback, the control has to generate Javascript.
You can even call Server side code using Javascript function in ASP.NET
For more information, check this link,
http://www.codeproject.com/KB/aspnet/ClientCallBackAspNet2.aspx
To avoid full page postback, now a days all r using ASP.NET AJAX, inturn using Javascript.
Finally, in the link what they r saying is, what every may the backend language, it finally generates Javascript, so why can't use Javascript itself.
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
A1ien51
All-Star
29935 Points
5821 Posts
Re: Serverside JavaScript
Jan 08, 2011 11:41 PM|LINK
Serverside JavaScript is JavaScript that runs on the server and not the browser. Not sure what the last poster was talking about. JavaScript that calls the server with Ajax is not serverside and JavaScript that is genererated and returned to the client from the erver is not serverside javascript.
This is a list of aErice serverside JavaScript solutions: http://en.wikipedia.org/wiki/Comparison_of_Server-side_JavaScript_solutions
Eric
qcom
Member
1 Points
12 Posts
Re: Serverside JavaScript
Jan 09, 2011 08:11 PM|LINK
<div style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); ">
<div style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); ">@Eric
Thanks, that's more of what I was looking to hear.
So, is it possible for me to use JavaScript as my ASP.NET and ASP.NET MVC language, instead of using Visual C# or VB.NET?
I've heard of JScript.net but I'm not sure if that's exactly what I'm looking for.
Thanks!
</div> </div>bruce (sqlwo...
All-Star
36676 Points
5438 Posts
Re: Serverside JavaScript
Jan 10, 2011 01:46 AM|LINK
qcom
Member
1 Points
12 Posts
Re: Serverside JavaScript
Jan 10, 2011 05:58 AM|LINK
Thanks bruce, that was quite helpful as well!
So, not too good for ASP.NET MVC, then?
I think it would be better for me personally to build upon my C# knowledge anyway, considering that Windows applications (Desktop, 360 and WP7) can be built off of C# code base.
Btw, I believe this should be moved back to the languages section of the forum, not in the client portion, as we are referring to server-side JavaScript.