Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 SP to Insert

Author  Topic 

rajeshnrh74
Starting Member

5 Posts

Posted - 2011-01-13 : 12:27:50
Genius,

Am developing an ASP.net based Web appln. with SQL Server 2008 as my backend.
In aspx page I have 2 listbox controls as below.

ListBox1 ListBox2
View1 Expression1
Expression2
Expression3
Expression4

My requirement is I need a stored procedure to insert those listbox items into a table.
Table should like as below...

View Name Expressions Name
View1 Expression1
View1 Expression2
View1 Expression3
View1 Expression4

Pls. provide me a solution

Thanks in Advance.

Bustaz Kool
Master Smack Fu Yak Hacker

1834 Posts

Posted - 2011-01-13 : 17:45:43
SQL cannot see your controls. Your web application needs to extract the data from the controls and pass the data down to the database.

=======================================
Elitism is the slur directed at merit by mediocrity. -Sydney J. Harris, journalist (1917-1986)
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-01-16 : 06:01:25
in your front end app pass the selected values in listbox etc as a parameter to sql. write a procedure in sql accepting the parameter and returning you the result.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -