944,132 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2729
  • ASP.NET RSS
May 16th, 2007
0

DropDownList....Help

Expand Post »
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!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
sibotho is offline Offline
32 posts
since Mar 2007
May 20th, 2007
0

Re: DropDownList....Help

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.
Reputation Points: 10
Solved Threads: 2
Newbie Poster
kokkee is offline Offline
20 posts
since May 2007
May 28th, 2007
0

Re: DropDownList....Help

Click to Expand / Collapse  Quote originally posted by kokkee ...
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.
Reputation Points: 10
Solved Threads: 0
Light Poster
sibotho is offline Offline
32 posts
since Mar 2007
Jun 7th, 2007
0

Re: DropDownList....Help

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sbhalla15 is offline Offline
3 posts
since Jun 2007
Jun 7th, 2007
0

Re: DropDownList....Help

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
Reputation Points: 25
Solved Threads: 29
Posting Whiz
greeny_1984 is offline Offline
372 posts
since Apr 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: delete a row in a sql databse
Next Thread in ASP.NET Forum Timeline: Urgent Help Plz......





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC