0

Hi all

I have a DropDownList in in one of my web application's Page, now i want to display the contents of that DropDownList in another Page. Can someone please show me the code for this in C#. When i try to use the DropDownList in this other page it doesn't recognise it because the DropDownList is not in that Page, it is a different page. please help...

Thanks!

4
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by greeny_1984
0

put ur dropdownlist in user control. Then u just need to include the user control on any place or any page when u need to use the dropdownlist.

0

put ur dropdownlist in user control. Then u just need to include the user control on any place or any page when u need to use the dropdownlist.

Can you please explain more about this user control or give me a example. I don't really understand it.

0

easier way out would be store the datalist contents in probably a datatable and save to the session variable and read the session variable, type cast to datatable and get the contents.

0

hi,
it can be written using session.first we create a session for the selected item in the dropdownlist and redirect to next page.
In the newxt page we retrieve this session and use it for the specified purpose using convert option
hope this helps
bye

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.