DropDownList....Help

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2007
Posts: 32
Reputation: sibotho is an unknown quantity at this point 
Solved Threads: 0
sibotho's Avatar
sibotho sibotho is offline Offline
Light Poster

DropDownList....Help

 
0
  #1
May 16th, 2007
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!
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 20
Reputation: kokkee is an unknown quantity at this point 
Solved Threads: 2
kokkee kokkee is offline Offline
Newbie Poster

Re: DropDownList....Help

 
0
  #2
May 20th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 32
Reputation: sibotho is an unknown quantity at this point 
Solved Threads: 0
sibotho's Avatar
sibotho sibotho is offline Offline
Light Poster

Re: DropDownList....Help

 
0
  #3
May 28th, 2007
Originally Posted by kokkee View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 3
Reputation: sbhalla15 is an unknown quantity at this point 
Solved Threads: 0
sbhalla15 sbhalla15 is offline Offline
Newbie Poster

Re: DropDownList....Help

 
0
  #4
Jun 7th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 370
Reputation: greeny_1984 is an unknown quantity at this point 
Solved Threads: 29
greeny_1984's Avatar
greeny_1984 greeny_1984 is offline Offline
Posting Whiz

Re: DropDownList....Help

 
0
  #5
Jun 7th, 2007
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC