Sunday, September 30, 2012

HTML5 New Attributes

HTML5 has added new attributes.Today, we would have brief overview of all the new attributes and elements added to HTML5.

Before moving ahead, to enable HTML5 on your web page, you need to add following line of code in HTML side







PLACEHOLDER Attribute
Placeholder attributes gives the watermark to the elements. So, this in turn tells you what we are expecting from the user and user too knows what needs to be entered in the textbox.

HTML to be added to design view to enable placeholder for textbox



Below is the final output you would see




REQUIRED Attribute
HTML5 has added new attribute named as 'required'. Setting this attribute makes the textbox a mandatory field and that cannot be left empty.
With addition of required attribute, you now don't have to write additional javascript to check whether the field is empty or not. Furthermore, if the field is left empty it alerts the user with message to fill out that particular field.

Lets see what needs to be done to get this feature in our application. Please add the following text in your design/HTML side



Below is the screenshot of what will be shown to user if the textbox is left empty and we simply click Submit button


Hope this article gives to some overview of new HTML5 attributes.




Sunday, September 16, 2012

How does ASP.NET process the request


1) When we enter the URL, page request goes to IIS

2) IIS checks the ISAPI(Internet Server Application Programming Interface) extension of the request

3) If extension is .aspx then request is forwarded to ASP.NET engine

4) ASP.NET engine checks whether the Application Domain exists for the request

·         If yes, request is forwarded to that App Domain

·         If not, it creates the App Domain and then the request is forwarded to it

5) ASP.NET engine creates core objects for

·         HTTPContext

·         HTTPRequest

·         HTTPResponse

6) Checks whether HTTPApplication object exists

·         If yes, pass on the core objexts to HTTPApplication object

·         If not, create the HTTPAppplication object and pass on the core objects to it

7) After this, HTTPApplication object process the request. It executes Begin,Authentication and Authorization events

8) After this request is passed to Page. Page events and complete page cycle will run
9) After running the Page cycle, request is again forwarded to HTTPApplication object and HTTPApplication will cleanup and pass on the response to user