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 vPosted Jun 30, 2011, 6:32 AM
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
Suthish NairPosted Jul 1, 2011, 8:54 AM
Akkiraju IvaturiPosted Jul 1, 2011, 12:28 AM
Anurag SrivastavaPosted Jun 30, 2011, 7:03 AM
Suthish NairPosted Jun 30, 2011, 2:25 AM
refer different ways to pass data across forms:
Different Ways to Pass Data between Web Forms
Krishna GaradPosted Jun 30, 2011, 2:13 AM
string _monthyear=Request.QueryString["QID"].ToString();
and then add in dropdownlist as
DropdownList.Items.Add(_monthyear);