Hi
I am having label in one page "MonthYear".
Label "MonthYear" have values like "Jan-2010","Feb-2010","Mar-2010" and so on.
I pass this value to another page by using QueryString.
But unable to show this value on the another page dropdown .
I want to set this value on the another page dropdown.
Pls help
Eagerly waiting for response.
Thanks
Anurag
Loading

raghu v52 reputationPosted Jun 30, 2011, 2:32 AM EDT
i predict ur requirement is that u have dropdown list in page 2 with all the month names and u just passing the month name from page1 in querry string and u need to highlight the same in the ddl
if so
here is the way
in page 2
string mon=Request.Querystring["mon"].ToString();
this is how u can hightlight the passed value in ddl
hope it helps u
Krishna GaradRank #191 · 12.8K reputationPosted Jun 29, 2011, 10:13 PM EDT
string _monthyear=Request.QueryString["QID"].ToString();
and then add in dropdownlist as
DropdownList.Items.Add(_monthyear);
Suthish NairRank #92 · 22.8K reputationPosted Jun 29, 2011, 10:25 PM EDT
refer different ways to pass data across forms:
Different Ways to Pass Data between Web Forms
Anurag Srivastava38 reputationPosted Jun 30, 2011, 3:03 AM EDT
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Jun 30, 2011, 8:28 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted Jul 1, 2011, 4:54 AM EDT