Click here to Skip to main content
15,892,072 members
Home / Discussions / C#
   

C#

 
Questionmultiple textbox text save in one field Pin
mjawadkhatri11-Mar-10 19:41
mjawadkhatri11-Mar-10 19:41 
QuestionRe: multiple textbox text save in one field Pin
Calla11-Mar-10 20:20
Calla11-Mar-10 20:20 
AnswerRe: multiple textbox text save in one field Pin
mjawadkhatri11-Mar-10 20:34
mjawadkhatri11-Mar-10 20:34 
GeneralRe: multiple textbox text save in one field Pin
Calla11-Mar-10 20:40
Calla11-Mar-10 20:40 
GeneralRe: multiple textbox text save in one field Pin
mjawadkhatri11-Mar-10 20:46
mjawadkhatri11-Mar-10 20:46 
GeneralRe: multiple textbox text save in one field Pin
Calla11-Mar-10 20:55
Calla11-Mar-10 20:55 
GeneralRe: multiple textbox text save in one field Pin
mjawadkhatri11-Mar-10 23:16
mjawadkhatri11-Mar-10 23:16 
GeneralRe: multiple textbox text save in one field [modified] Pin
Calla12-Mar-10 0:53
Calla12-Mar-10 0:53 
Okay, and what is the error your receiving?
Do you really want the concatenated string to look like this (if txtrate=theRating, txtweight=theWeight)?
theRating'&&'theWeight

Or do you want:
theRating&&theWeight

Check the part where you put your strings together.

If you want to use a ' in your concatenated string you have to use double '' like this:
C#
string query = "insert into Data(Product,discription) values('" + textBox1.Text + "','" + textBox2.Text + "''&& ''" + textBox3.Text + "')";
modified on Friday, March 12, 2010 7:01 AM

GeneralRe: multiple textbox text save in one field Pin
mjawadkhatri12-Mar-10 1:01
mjawadkhatri12-Mar-10 1:01 
GeneralRe: multiple textbox text save in one field Pin
Calla12-Mar-10 1:30
Calla12-Mar-10 1:30 
QuestionNetwork licence Pin
viciouskinid11-Mar-10 18:39
viciouskinid11-Mar-10 18:39 
AnswerRe: Network licence Pin
Luc Pattyn11-Mar-10 19:00
sitebuilderLuc Pattyn11-Mar-10 19:00 
GeneralRe: Network licence Pin
viciouskinid15-Mar-10 19:17
viciouskinid15-Mar-10 19:17 
QuestionSending email Pin
kpuneeth711-Mar-10 18:25
kpuneeth711-Mar-10 18:25 
AnswerMessage Closed Pin
11-Mar-10 18:38
stancrm11-Mar-10 18:38 
GeneralRe: Sending email Pin
kpuneeth711-Mar-10 18:39
kpuneeth711-Mar-10 18:39 
AnswerRe: Sending email Pin
Rod Kemp11-Mar-10 20:13
Rod Kemp11-Mar-10 20:13 
GeneralRe: Sending email Pin
kpuneeth711-Mar-10 20:21
kpuneeth711-Mar-10 20:21 
GeneralRe: Sending email Pin
Rod Kemp11-Mar-10 20:43
Rod Kemp11-Mar-10 20:43 
GeneralRe: Sending email Pin
kpuneeth711-Mar-10 20:46
kpuneeth711-Mar-10 20:46 
Questionhow to open excel file for edit and save back into the same file. Pin
neodeaths11-Mar-10 15:52
neodeaths11-Mar-10 15:52 
AnswerRe: how to open excel file for edit and save back into the same file. Pin
Luc Pattyn11-Mar-10 16:42
sitebuilderLuc Pattyn11-Mar-10 16:42 
AnswerRe: how to open excel file for edit and save back into the same file. Pin
dybs13-Mar-10 16:32
dybs13-Mar-10 16:32 
Questionencoding/decoding, still cant figure it out? Pin
stephen.darling11-Mar-10 14:51
stephen.darling11-Mar-10 14:51 
AnswerRe: encoding/decoding, still cant figure it out? Pin
Dr.Walt Fair, PE11-Mar-10 16:00
professionalDr.Walt Fair, PE11-Mar-10 16:00 

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.