Click here to Skip to main content
15,879,474 members
Articles / Properties
Article

Understanding Request and Response ...

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
11 Oct 2013CPOL 11.6K   1  
                     We need a basic knowledge about what is Request & Response objects. The following information may be helpful to all. How

This articles was originally at wiki.asp.net but has now been given a new home on CodeProject. Editing rights for this article has been set at Bronze or above, so please go in and edit and update this article to keep it fresh and relevant.

                     We need a basic knowledge about what is Request & Response objects. The following information may be helpful to all. How beautifully these are handling things occurring in a Page class.

                     Request and Response are the properties of the Page class. The Request property allows you to access the HTTPRequest object, which contains information,such as path of the request, about the HTTP request for the page. The Response property allows you to access the HTTPResponse object, which in turn allows you to send data to the browser as the result of the request.

                     In fact, Request and Response properties map directly to HttpRequest and HttpResponse objects respectively. Therefore,  you can directly access these objects in ASP.NET pages by using the Request and Response properties.

                    Querystrings is the method of the HttpRequest object, which returns the parameter that's passed with the page URL. The Write method of the HTTPResponse object is used to display text in a browser. You can use the html formatting elements to format the text.

 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
The ASP.NET Wiki was started by Scott Hanselman in February of 2008. The idea is that folks spend a lot of time trolling the blogs, googlinglive-searching for answers to common "How To" questions. There's piles of fantastic community-created and MSFT-created content out there, but if it's not found by a search engine and the right combination of keywords, it's often lost.

The ASP.NET Wiki articles moved to CodeProject in October 2013 and will live on, loved, protected and updated by the community.
This is a Collaborative Group

755 members

Comments and Discussions

 
-- There are no messages in this forum --