Hi Dear,
You can use Query String to pass parameter from one page to another, with Response.Redirect() method.
It is really a very easy to implement, the thing is, first of all you have to build a query string.....Query String is actually a way to passing data from one page to another page in the form of Key Value pair e.g www.yourwebsite.com/YourPage.aspx?UserID=1&Name=Ritao ,
Response.Redirect("AnotherPage.aspx?UserID" + strUserID + "&Name=" + strName )On Source Page
You can access Query String values easily by using Request.QueryString collection...
if you want to get UserID and Name values in the above URL....use the following code in AnotherPage.aspx Page_Load event
dim strUserID as string = Request.QueryString("UserID")
dim strName as string = Request.QueryString("Name")
THanks
Best Regards,
MUhammad AKhtar Sheikh
Lets resolve the problem together.
Please remember to mark the appropriate replies as answer after your question is solved, thanks
My Blog