Hi, I am working on a sharepoint aspx page where i need to select multiple values from a listbox and insert them into the table . I am using a sql datasource which runs an insertquery something like: Insert into mentornotecategory values[noteid,category] select max(noteid) from table2,@category . it runs fine when i have only one selected value but i need to make it work for multiple selections keeping noteid the same and different category depending upon selection from listbox.
can anybody help. Thanks
4 Replies - 1306 Views - Last Post: 26 August 2012 - 06:34 AM
#1
Using listbox to enter multiple values with same id into the sql table
Posted 23 August 2012 - 03:48 PM
Replies To: Using listbox to enter multiple values with same id into the sql table
#2
Re: Using listbox to enter multiple values with same id into the sql table
Posted 24 August 2012 - 06:08 PM
so all of the selections should have the exact same note id?
#3
Re: Using listbox to enter multiple values with same id into the sql table
Posted 25 August 2012 - 12:02 PM
#4
Re: Using listbox to enter multiple values with same id into the sql table
Posted 25 August 2012 - 03:14 PM
can you show the code you're using for the entire process right now?
#5
Re: Using listbox to enter multiple values with same id into the sql table
Posted 26 August 2012 - 06:34 AM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|