Click here to Skip to main content
16,005,141 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Serialization in asp.net Pin
Tealmoon12-Jul-07 18:00
Tealmoon12-Jul-07 18:00 
QuestionVideo streaming Pin
UUmamahesh6-Jul-07 5:50
UUmamahesh6-Jul-07 5:50 
AnswerRe: Video streaming Pin
Tarik Guney6-Jul-07 12:06
Tarik Guney6-Jul-07 12:06 
QuestionSetting a column inside of a gridview to a link Pin
aqzman_6-Jul-07 5:20
aqzman_6-Jul-07 5:20 
AnswerRe: Setting a column inside of a gridview to a link Pin
ToddHileHoffer6-Jul-07 5:39
ToddHileHoffer6-Jul-07 5:39 
GeneralRe: Setting a column inside of a gridview to a link Pin
aqzman_6-Jul-07 6:15
aqzman_6-Jul-07 6:15 
GeneralRe: Setting a column inside of a gridview to a link Pin
ToddHileHoffer6-Jul-07 6:34
ToddHileHoffer6-Jul-07 6:34 
QuestionListBox Multiple Selection Pin
ASPnoob6-Jul-07 5:07
ASPnoob6-Jul-07 5:07 
Hi, I've used a for-next loop to determine the item(s) of a listbox that the user selects and to insert the text of the selected item(s) into a database table like the following.

For i = 0 To ListBox1.Items.Count - 1<br />
            If ListBox1.Items(i).Selected Then<br />
                cmdInsert.Parameters.Add("@docDate", OdbcType.Date)<br />
                cmdInsert.Parameters("@docDate").Value = DateTime.Now<br />
<br />
                cmdInsert.Parameters.Add("@docTitle", OdbcType.VarChar, 30)<br />
                cmdInsert.Parameters("@docTitle").Value = txtFileTitle.Text<br />
<br />
                cmdInsert.Parameters.Add("@docType", OdbcType.VarChar, 30)<br />
                cmdInsert.Parameters("@docType").Value = StrFileType<br />
<br />
                cmdInsert.Parameters.Add("@docContent", OdbcType.Binary, 800)<br />
                cmdInsert.Parameters("@docContent").Value = arrFile<br />
<br />
                cmdInsert.Parameters.Add("@Professions", OdbcType.VarChar, 30)<br />
                cmdInsert.Parameters("@Professions").Value = ListBox1.Items(i).Text<br />
             <br />
             End If<br />
       Next<br />


The problem I'm getting is that if two items were selected, only the 2nd item is inserted. Please take a look to see what I did wrong, thank you in advance for your help.
AnswerRe: ListBox Multiple Selection Pin
ToddHileHoffer6-Jul-07 5:37
ToddHileHoffer6-Jul-07 5:37 
QuestionLog-in Datareader problem Pin
munklefish6-Jul-07 4:16
munklefish6-Jul-07 4:16 
AnswerRe: Log-in Datareader problem Pin
sathesh pandian6-Jul-07 4:45
sathesh pandian6-Jul-07 4:45 
GeneralRe: Log-in Datareader problem Pin
Not Active6-Jul-07 7:57
mentorNot Active6-Jul-07 7:57 
AnswerRe: Log-in Datareader problem Pin
kubben6-Jul-07 4:48
kubben6-Jul-07 4:48 
AnswerRe: Log-in Datareader problem Pin
Not Active6-Jul-07 8:01
mentorNot Active6-Jul-07 8:01 
Questionselect specific column from datatable Pin
playout6-Jul-07 4:15
playout6-Jul-07 4:15 
AnswerRe: select specific column from datatable Pin
kubben6-Jul-07 4:41
kubben6-Jul-07 4:41 
GeneralRe: select specific column from datatable Pin
playout6-Jul-07 6:19
playout6-Jul-07 6:19 
GeneralRe: select specific column from datatable Pin
Not Active6-Jul-07 8:03
mentorNot Active6-Jul-07 8:03 
AnswerRe: select specific column from datatable Pin
Not Active6-Jul-07 8:08
mentorNot Active6-Jul-07 8:08 
QuestionHow to add events to exec time rendered controls? Pin
Leistath6-Jul-07 4:00
Leistath6-Jul-07 4:00 
AnswerRe: How to add events to exec time rendered controls? Pin
ToddHileHoffer6-Jul-07 4:45
ToddHileHoffer6-Jul-07 4:45 
GeneralRe: How to add events to exec time rendered controls? Pin
Leistath6-Jul-07 7:17
Leistath6-Jul-07 7:17 
AnswerRe: How to add events to exec time rendered controls? Pin
sathesh pandian6-Jul-07 4:57
sathesh pandian6-Jul-07 4:57 
GeneralRe: How to add events to exec time rendered controls? Pin
Leistath6-Jul-07 7:20
Leistath6-Jul-07 7:20 
Questionadd header after each 15 Records Pin
Bajrang Singh6-Jul-07 3:03
Bajrang Singh6-Jul-07 3:03 

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.