Subscribe to Subscribers
Talk to Webmaster Tony John

Online Members

Shine S
More...

Forums » .NET » .NET »

Http


Posted Date: 09 Dec 2009      Posted By:: vamshi     Member Level: Silver    Member Rank: 3914     Points: 1   Responses: 2



what is httpcontext?explain
what is automatic properties?explain
what is httphandlers?explain
what is nullable?explain




Responses

#451621    Author: Asheej T K        Member Level: Diamond      Member Rank: 2     Date: 09/Dec/2009   Rating: 2 out of 52 out of 5     Points: 2

HttpContext

Each time a Web server receives a request for an ASP.NET resource - be it an ASP.NET Web page, a Web service, or any other request that is mapped in IIS to the ASP.NET engine - an instance of the System.Web.HttpContext object is created. This class contains information about the request. For example, the HttpContext class has the "intrinsic" objects you're familiar with: Request, Response, Session, Application, Server, and Cache. HttpContext contains information about the current user making the request in its User property, it stores information about any errors that have occurred in its Errors property.
For more info
http://msdn.microsoft.com/en-us/library/system.web.httpcontext.aspx

Refer below link for Http Handler
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=392

Nullable
Nullable in .Net 2.0, helps to determine whether variable has been assigned a value or not
For more info
http://www.c-sharpcorner.com/UploadFile/mosessaur/nullabletypes08222006164135PM/nullabletypes.aspx

automatic properties
http://weblogs.asp.net/gunnarpeipman/archive/2009/11/01/net-framework-4-0-vb-net-supports-automatic-properties.aspx


Regards,
Asheej T K
Microsoft MVP[ASP.NET/IIS]
DotNetSpider MVM

Dotnet Galaxy



 
#451637    Author: srinivasan      Member Level: Gold      Member Rank: 365     Date: 09/Dec/2009   Rating: 2 out of 52 out of 5     Points: 2

HttpContext is the object that contains all the infromation about the particular, individual HTTP request that is currently running. That is the request when this HttpContext is accessed.

For example when you use Request property on Page, you are actually using System.Web.HttpContext.Current.Request that is the Request related stuff bundled with the current HTTP request.

System is such that when IIS receives request and forwards it to be handled by ASP.NET, the HTTP runtime in ASP.NEt resolves the request to determine the proper HTTP handler or Http handler factory that is invoked. Then HttpModules perform preprocessing of the request and after that Http handler will process the request. After that some HTTP modules perform postprocessing of the request and finally response is sent to the client.

One of the first object HTTP runtime creates after request is received, is the HttpContext. After that HTTP runtime makes it available for other components in the processing like the Page. So HttpContext is key link object in delivering request related data over the whole request processing (that involves HTTP runtime, HttpApplication (where HTTP modules reside and do their work), and alsoy the System.Web.UI.Page in case of ASP.NEt Pages to process the request))
------------------------
automatic properties
refer
http://community.bartdesmet.net/blogs/bart/archive/2007/03/03/c-3-0-automatic-properties-explained.aspx

httphandlers

refer

http://www.developerfusion.com/article/4643/implementing-http-handlers-in-aspnet/

nullable:

What is Nullable Type in .Net 2.0?
Nullable in .Net 2.0, helps to determine whether variable has been assigned a value or not. Example: Quiz application having option yes/no, but it should displayed “Not Attempted” when user does not make any choice.

Declaring a variable as nullable enables the HasValue and Value members.

Nullable b = null; -OR-

// Shorthand notation for declaring nullable type, only for C#
bool? b = null;



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : ConnectionPool
Previous : Data table
Return to Discussion Forum
Post New Message
Category:

Related Messages
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.