Click here to Skip to main content
15,921,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am having 2 aspx page ,in the first page i am having dropdownlist,in the ddl i have the values loaded from the database ....so whatever value i am selecting from the dropdown list it should show the next aspx page.....how to do...
using querystring i know....how to write the code...please help me
Posted

CodeProject article is available at: Passing variables between pages using QueryString[^]
 
Share this answer
 
This discusses various approaches to pass values between pages[^] (including querystring).
 
Share this answer
 
hi try this

C#
Response.Redirect("page2.aspx?valuetopass=" + DropDownList1.SelectedItem.Value);



in the second page


C#
string myval= Request.QueryString["valuetopass"];
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900