SqlDataSource INSERT query and TextBox text

H

Hrvoje Vrbanc

Hello all!

I'm new to ASP.NET 2.0 and I tried connecting and inserting to a SQL
database by using SqlDataSource control.

I build an INSERT query using the query builder tool but I'm puzzled with
the following: I select the columns that I want to include into my query and
then there is a column "Values". However, it looks that the cells in this
column accept (or interpret everything entered) only literals and not
variables. What should I do in order to put textbox text into the query? If
I enter '"& textbox1.text &"' there, it is interpreted as literal and no
variable are passed to query.

Thank you in advance,
Hrvoje
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top