ADS

Friday 4 May 2018

What is Request object in asp.net?

What is Request object:

For every web page web server create an object of HttpRequest and object of HttpRequestclass this object is known as request object.
In the request object we can store information when a page calls to another page it can sends data to that page like this.
Response.redirect(Default.aspx?Name=+Textbox1.text”);
When above code will be executed a request for the page default2.aspx
Will be generated by the client. Along with request data of the textbox1
Will also be send and web server will store that data in the request object
By creating a field named “name”.
Multiple values can be store in the request object
Default2.aspx
Stirng str=request.QueryString[“name”];
Label1.Text=str;

No comments:

Post a Comment

Popular Posts