Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Understanding Request and Response ...

0.00/5 (No votes)
15 May 2011 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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here