Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET webforms without javascript

Due to a security requirement all browsers that will run a web application we need to create must have all client side scripting disabled. So that means no Javascript. Unfortunately Web Forms make quite some use of Javascript. The login control works without Javascript, but a button does not (it calls the Javascript function __doPostback()). So to make it work we'd need to program all the forms by hand (the ASP Classic, or PHP method). But I was wondering if there is a framework available for ASP.NET that offers the normal ASP.NET controls (treeview, gridview, etc) with all the functoinality they have, but that doesn't use Javascript and doesn't require the programmer to program massive amounts of logic?

Update: For clarification, I know ASP.NET MVC is an option that will help a bit, but it won't give me a nice GridView. So I'm wondering if there is a 100% functional, 100% no-javascript replacement for the standard ASP.NET controls.

Thanks.

Update2: It's been a while and I never found the exact answer I was looking for. Probably because what I want doesn't exist. So I'll go for ASP.NET MVC which is the next best thing.

like image 793
Jeroen-bart Engelen Avatar asked Dec 30 '22 01:12

Jeroen-bart Engelen


2 Answers

ASP.Net MVC is probally the closest you'd get. You can use it to build a site without javascript. It is very different from Web forms

like image 60
JoshBerke Avatar answered Jan 08 '23 20:01

JoshBerke


Many of the stock controls will be problematic. They just depend too heavily on Javascript. You do have some options, though:

  • ASP.Net MVC should give you a bit more control over your html
  • You can build your own replacement WebForms control library that doesn't rely on javascript to provide alternatives for controls that do.
like image 44
Joel Coehoorn Avatar answered Jan 08 '23 21:01

Joel Coehoorn