Click here to Skip to main content
16,007,760 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i m working in asp.net4.0 with C#.in Appliction master page having 3 drop down control in want to take this value and fill my gridview but gridview are in other page
Posted

1 solution

there are serveral ways you can do this
first
use ((dropdownlist)master.findcontrol["name of your control"]).selectedvalue

use this for all your three dropdownlist

or
you can store selectedvalue of dropdownlist in session variable
like this

session["firstdropdownlist"] = dropdownlist1.selectedvalue
like this for other dropdownlists

and then on the page it is required

if(session["firstdropdown"] != null)
{
string value = convert.tostring(session["firstdropdown"])
}
 
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