Click here to Skip to main content
15,922,894 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: What is wrong with this... Pin
eggsovereasy8-Aug-06 3:58
eggsovereasy8-Aug-06 3:58 
GeneralRe: What is wrong with this... Pin
Guffa8-Aug-06 8:07
Guffa8-Aug-06 8:07 
QuestionRemoving Image options Pin
Drathmar7-Aug-06 7:49
Drathmar7-Aug-06 7:49 
AnswerMessage Closed Pin
7-Aug-06 8:13
User-8957237-Aug-06 8:13 
GeneralRe: Removing Image options Pin
Drathmar16-Aug-06 12:39
Drathmar16-Aug-06 12:39 
QuestionWorking with DataList Pin
ravindradonkada7-Aug-06 7:10
ravindradonkada7-Aug-06 7:10 
AnswerRe: Working with DataList Pin
Not Active7-Aug-06 8:51
mentorNot Active7-Aug-06 8:51 
Questionitems added in listbox sorted asc[modified] Pin
bubberz7-Aug-06 3:44
bubberz7-Aug-06 3:44 
Hello!

I used this code, and it works to not allow duplicates:

Dim li As New ListItem
For Each li In LB1.Items
If li.Selected = True Then
If Not ListBox2.Items.Contains(li) Then
ListBox2.Items.Add(li)
End If
End If
Next

After the items are added, my second goal is to sort them ASC too. Haven't quite figured that out as well. Any suggestions are appreciated.

Thanks!



-- modified at 9:57 Monday 7th August, 2006
AnswerRe: Avoid duplicate items in listbox and sort too Pin
Not Active7-Aug-06 3:59
mentorNot Active7-Aug-06 3:59 
GeneralRe: Avoid duplicate items in listbox and sort too Pin
bubberz7-Aug-06 4:01
bubberz7-Aug-06 4:01 
AnswerRe: items added in listbox sorted asc[modified] Pin
Guffa7-Aug-06 5:00
Guffa7-Aug-06 5:00 
GeneralRe: items added in listbox sorted asc[modified] Pin
bubberz7-Aug-06 5:05
bubberz7-Aug-06 5:05 
AnswerRe: items added in listbox sorted asc[modified] Pin
Guffa7-Aug-06 9:40
Guffa7-Aug-06 9:40 
GeneralRe: items added in listbox sorted asc[modified] Pin
bubberz7-Aug-06 9:42
bubberz7-Aug-06 9:42 
Questioncross-frame scripting Pin
axwiec7-Aug-06 3:27
axwiec7-Aug-06 3:27 
Questionhow to rewrite the URL Pin
Amit Agarrwal7-Aug-06 3:15
Amit Agarrwal7-Aug-06 3:15 
AnswerRe: how to rewrite the URL Pin
Guffa7-Aug-06 9:44
Guffa7-Aug-06 9:44 
GeneralRe: how to rewrite the URL Pin
Amit Agarrwal7-Aug-06 18:32
Amit Agarrwal7-Aug-06 18:32 
Questionset label property in design and run time in the custom control [modified] Pin
shail nigam7-Aug-06 3:14
shail nigam7-Aug-06 3:14 
AnswerRe: set label property in design and run time in the custom control Pin
Mike Ellison7-Aug-06 7:02
Mike Ellison7-Aug-06 7:02 
GeneralRe: set label property in design and run time in the custom control Pin
shail nigam7-Aug-06 18:42
shail nigam7-Aug-06 18:42 
QuestionHow Can I Updating a DataBase by Comparing two typed DatatSets. Pin
b_rahul7-Aug-06 1:20
b_rahul7-Aug-06 1:20 
QuestionSetting focus the textbox programically at run time in vb.net 1.1 Pin
amaneet7-Aug-06 0:47
amaneet7-Aug-06 0:47 
AnswerRe: Setting focus the textbox programically at run time in vb.net 1.1 Pin
Mike Ellison7-Aug-06 7:04
Mike Ellison7-Aug-06 7:04 
Questionusing Word COM componet, deployment problem Pin
ptr_Electron7-Aug-06 0:38
ptr_Electron7-Aug-06 0:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.