Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I create a JQuery server control for ASP.net to best use it in my apps?

I have been rather successful in promoting JQuery within my organization. No small feat on it's own. However, one of the ideas being kicked around here to make it part of our app is to create an ASP.net server side control. (We are going to be sticking with WebForms for the foreseeable future.)

I'm not too wild about this approach as it seems like overkill when a couple of script tags will do the job. We found an article on the web, and the amount of code involved really doesn't seem to justify itself. However, I do hear that there is some benefit in the script caching or generating that happens with the server controls.

My questions:

  • Has anyone else written an ASP.net server control to serve up the JQuery js code?
  • Does anyone else think that this is a crazy idea to just avoid writing JQuery or Javascript code?
like image 589
casademora Avatar asked Oct 06 '08 15:10

casademora


People also ask

Does ASP NET need JavaScript?

ASP.NET requires the use of the client-side Javascript, as that's how ASP.NET handles its Events via PostBacks.


1 Answers

I know Microsoft (along with Nokia) is "mainstreaming" jQuery and will be integrating it with future versions of Visual Studio. You may want to explore how they'll be officially using it so you can tailor your setup now, and hopefully ease your transition to "official MS jQuery" down the road.

like image 104
theraccoonbear Avatar answered Nov 03 '22 21:11

theraccoonbear