Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Dropdownlist object ??

 
Thread Tools Search this Thread
Old 11-02-2003, 09:16 PM   #1
Default Re: Dropdownlist object ??



"Thomas" <> wrote in message
news:%23U9o%...
> Hello all,
>
> How do i set one asp:dropdownlist euqal another?
>
> ex:
> -------------------------------------------------
> protected d1 as dropdownlist
> protected d2 as dropdownlist
>
> Sub Page_load
> if not page.ispostback
> d1 = <initialice function>


You'd need to either be binding the dropdown or setting one of its items
here.

> end if
> d2 = d1


This is ok.

> end sub
> ---------------------------------------------------
>
> /Thomas
>
>
>





Scott M.
  Reply With Quote
Old 11-03-2003, 01:40 AM   #2
jib
 
Posts: n/a
Default Re: Dropdownlist object ??
Ahww, just a gues:

d1.Items.CopyTo( d2.Items, 1 );

Jib




jib
  Reply With Quote
Old 11-03-2003, 02:09 AM   #3
Thomas
 
Posts: n/a
Default Dropdownlist object ??
Hello all,

How do i set one asp:dropdownlist euqal another?

ex:
-------------------------------------------------
protected d1 as dropdownlist
protected d2 as dropdownlist

Sub Page_load
if not page.ispostback
d1 = <initialice function>
end if
d2 = d1
end sub
---------------------------------------------------

/Thomas





Thomas
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Active X cannot create this object gellison General Help Related Topics 0 08-09-2007 06:42 PM
dynamic validations for checkboxlist and dropdownlist mrugesh_dulera Software 0 06-26-2007 01:56 AM
DropdownList in gridview visj4u Software 0 04-27-2007 01:11 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46