Feeds:
Posts
Comments

Posts Tagged ‘ASP.NET’

This week I have been working on a custom security module for ASP.NET 2.0 (you mean to say that Windows authentication and Forms authentication is not enough?).   My development process has involved wading through .NET Framework security code (thanks to Lutz Roeder for Reflector), and reading articles on IIS (Internet Information Server) security in MSDN [...]

Read Full Post »

Pop quiz, what is wrong with the following class? public class MyPlaceHolder : PlaceHolder { protected override void OnInit(EventArgs e) { Page.Trace.Write(this.ID, “In OnInit”); base.OnInit(e); } protected override void OnLoad(EventArgs e) { Page.Trace.Write(this.ID, “In OnLoad”); base.OnLoad(e); } protected override void OnUnload(EventArgs e) { Page.Trace.Write(this.ID, “In OnUnload”); base.OnUnload(e); } protected override void OnPreRender(EventArgs e) { DropDownList [...]

Read Full Post »

I’ve been messing around with post back handler in ASP.NET today, and I found out a few points of interest.  Firstly, a description of the two interfaces used with server controls to handle post backs: IPostBackEventHandler – Implemented by server controls that wish to handle post back events. The RaisePostBackEvent method is invoked by the [...]

Read Full Post »

Let’s say you have the following snippet of code below. The code dynamically instantiates a new ASP.NET control, changes the title property and then adds the control to the control collection of a placeholder on the page – a typical approach to dynamically creating controls.  When the control loads, it adds an item into the [...]

Read Full Post »

In my previous post I mentioned the steps involved in the process of an ASP.NET page. As promised, here are the details on the slide that was covered in Chris Mazzanti’s presentation at this months Rockville WinProteam user group meeting. Firstly, all ASPX and ASCX pages are just serialized control trees – object structures. If [...]

Read Full Post »

http://msdn.microsoft.com/msdnmag/issues/04/10/View State/default.aspx What is the View State? The view state is a hidden form variable containing data encoded in base-64 to represent the state of server side controls on an ASP.NET page. What’s wrong with the View State? The view state can become large on pages that include a large number of controls, or complex [...]

Read Full Post »

This alert is to advise you of the availability of a web page that discusses an investigation Microsoft is currently conducting into public reports of a security vulnerability in ASP.NET. A malicious user could provide a specially-formed URL that could result in the unintended serving of secured content. This alert is also to advise you [...]

Read Full Post »

« Newer Posts

Follow

Get every new post delivered to your Inbox.