Frequently Asked Interview Questions

How can you send data from one page to other page using Query String?

We can send data from one page to other page by appending that data to the URL

For Example:

To send ProductId information from page to other
Order.aspx?ProductId=100
Use “&” symbol to separate multiple query string values, If we want to send ProductId and ProductName info
Order.aspx? ProductId=100 & ProductName=’xxxx’
We can send Query strings from server side code using Response.Redirect
For Ex:
Response.Redirect(“Order.aspx?ProductId=100 & ProductName = ’xxxx’”);

Most Visited Pages

Home | Site Index | Contact Us