Search for asp.net 3.5 bloating advice

Im new to.net, although I wrote in classic asp for years. I know my time to make changes, but I can't say how HTML is bloated.

For example, a simple menu using web.sitemap and adds over 100 lines of JavaScript and HTML. A simple server-side validation form adds a ton of ugly JavaScript. And a basic data table using GridView adds to the ViewState, which makes my eyes water.

Call me the cleanest, although I don't like sending data to the browser unless it is needed. And I do not need a completed menu form when a simple unordered list of links is enough.

So, I set my paths to myself, am I destined to abandon the benefits of the Framework completely, insisting on writing my own, cleaner code for everything? Or am I missing a point?

As a brief response, I became a big fan of Campaign Monitor, a newsletter company. They wrote an elegant and comprehensive user interface in .net without a single ViewState or a weird link with an .net-mangeled identifier. Even the registration form on your website (/signup.aspx) is as clean as the whistle. What is their secret?

I hope I'm not the only one. Any advice would be greatly appreciated.

+3
source share
8 answers

Try ASP.NET MVC or one of the other MVC web frameworks for .NET.

+11
source

GridView , ViewState .

, , , , .NET . , . VS2010 beta 1 , .

- ASP.NET ASP. , , , 10 , ASP. , , ASP.NET .

, , FOR . , Repeater DataList DataGrid. ViewState , , HTML , , .

+4

, , , MVC,

+2

:

  • asp
  • Viewstate,
  • , JavaScript, ( ASP.NET), EnableClientScript False
  • asp: literal asp: Label
+2

, , - , . HTML , ViewState, ClientID, , .

, asp.net(webforms) .

html httpModules httpHandlers, asp.net 4.0

podcast, MVC webforms. , . blogpost dotNetNuke asp.net , mvc.

, Asp.net MVC, . , , dotNetNukes asp.net.

+2

, , css-. .

, , - . , ClientID script.

+1

. http- .html html , . ( google # ).

0

ASP.NET . . , Microsoft, , HTML JavaScript, , , , , Microsoft.

, ASP.NET, , , . ASP.NET, MSDN , , "Hello, World" http://www.agalltyr.com/rawaspdotnet.html, . , . , .

, ASP.NET MVC. . (#) (.NET), , .

0
source

Source: https://habr.com/ru/post/1709797/


All Articles