• Sections

  • ASP.NET

    by  Published on September 28th, 2010 07:30 AM  Number of Views: 1845 
    Categories:
    1. ASP.NET

    Microsoft is investigating a new public report of a vulnerability in ASP.NET. An attacker who exploited this vulnerability ...
    by  Published on September 9th, 2010 04:32 AM  Number of Views: 2074 
    Categories:
    1. ASP.NET
    Article Preview

    One of the things that makes the .NET framework so powerful is the ability to create and reuse our own custom controls. These could be controls that extend upon existing controls or something completely different. In this article, I'm going to show you how you can load custom controls into Visual Studio's toolbox. This will allow you to easily drag and drop your controls onto one of your pages, instead of having to type everything out, which will save you time. In this example, we're going to use the AjaxControlToolkit.
    ...
    by  Published on September 4th, 2010 12:30 AM  Number of Views: 2051 
    Categories:
    1. MVC
    2. ASP.NET
    3. Web Forms

    Traditional ASP.NET Web Forms was a great idea, and opened a whole new world to classic ASP developers. However, real-world use of Web Forms has revealed a variety of weaknesses:
    • Limited control over HTML: Server controls render themselves as HTML, but not ideally. Prior to version 4 of the .NET framework, the output of server controls often failed to comply with web standards. They also did not make good use of CSS. Finally, they generated unpredictable and complex ID values which are hard to access using JavaScript.
    • Weight of ViewState: Web Forms rely heavily on ViewState to maintain state across requests, which often results in giant blocks of data being transferred over the line. In many real-world applications, the ViewState can reach hundreds of kilobytes, which goes back and forth with every request. Even ASP.NET AJAX, you suffer the same problem because the ViewState data still has to be sent back and forth with each asynchronous request.
    • False sense of separation of concerns: ASP.NET's code-behind model allows developers to take application code out of its HTML markup and place it into a code-behind class. In reality, this encourages developers to mix presentation code (e.g., manipulation of the server-side control tree) with their application logic (e.g., manipulation of database data). This would all be included in these code-behind classes which ended up being enormous in size. Without a better separation of concerns, the result was often incomprehensible and brittle.
    • Page life cycle: Many developers get ViewState errors or find that some event handlers fail to execute when attempting to manipulate the control hierarchy at runtime. This is due to the complicated and delicate page life cycle, which connects client-side events with server-side event handler code.
    ...

    SEO by vBSEO