Click here to Skip to main content
15,903,033 members
Home / Discussions / C#
   

C#

 
AnswerRe: text changed on another form Pin
nagendrathecoder25-Apr-10 21:13
nagendrathecoder25-Apr-10 21:13 
AnswerRe: text changed on another form Pin
Calla25-Apr-10 21:46
Calla25-Apr-10 21:46 
AnswerRe: text changed on another form Pin
OriginalGriff25-Apr-10 21:51
mveOriginalGriff25-Apr-10 21:51 
GeneralRe: text changed on another form Pin
Member 59031025-Apr-10 21:58
Member 59031025-Apr-10 21:58 
GeneralRe: text changed on another form Pin
Member 59031025-Apr-10 21:59
Member 59031025-Apr-10 21:59 
GeneralRe: text changed on another form Pin
OriginalGriff25-Apr-10 23:15
mveOriginalGriff25-Apr-10 23:15 
AnswerRe: text changed on another form Pin
sanforjackass25-Apr-10 22:26
sanforjackass25-Apr-10 22:26 
QuestionInsert 2 textbox text in one field Pin
mjawadkhatri25-Apr-10 20:21
mjawadkhatri25-Apr-10 20:21 
Hi..
I try to insert 2 textbox text in one field but i face a problem please help me
my code is

SqlConnection conn = new SqlConnection(connString);
string v_query = "insert into voucher_2 (heads,credit,debit,descp,vdate) values('" + partyname.Text + "',' 0 ','" + Amount.Text + "','" + qty.Text && rate.Text + "','" + Date.Text + "')";
SqlCommand cmd = new SqlCommand(v_query,conn);
try
{
conn.Open();
cmd.ExecuteNonQuery();
MessageBox.Show("Record Inserted.");
}
finally
{
conn.Close();

}
Error IS
perator '&&' cannot be applied to operands of type 'string' and 'string'
AnswerRe: Insert 2 textbox text in one field Pin
nagendrathecoder25-Apr-10 20:25
nagendrathecoder25-Apr-10 20:25 
AnswerRe: Insert 2 textbox text in one field Pin
Calla25-Apr-10 20:25
Calla25-Apr-10 20:25 
GeneralRe: Insert 2 textbox text in one field Pin
mjawadkhatri25-Apr-10 20:29
mjawadkhatri25-Apr-10 20:29 
GeneralRe: Insert 2 textbox text in one field Pin
mjawadkhatri25-Apr-10 20:35
mjawadkhatri25-Apr-10 20:35 
GeneralRe: Insert 2 textbox text in one field Pin
Ice_Freez0525-Apr-10 20:36
Ice_Freez0525-Apr-10 20:36 
GeneralRe: Insert 2 textbox text in one field Pin
Calla25-Apr-10 20:36
Calla25-Apr-10 20:36 
GeneralRe: Insert 2 textbox text in one field Pin
Luc Pattyn26-Apr-10 0:54
sitebuilderLuc Pattyn26-Apr-10 0:54 
AnswerRe: Insert 2 textbox text in one field Pin
Ice_Freez0525-Apr-10 20:32
Ice_Freez0525-Apr-10 20:32 
QuestionHow to Convert C++ unsigned char * to C# byte[] Pin
Joe Rozario25-Apr-10 19:55
Joe Rozario25-Apr-10 19:55 
AnswerMessage Removed Pin
25-Apr-10 22:12
Michel Godfroid25-Apr-10 22:12 
GeneralRe: How to Convert C++ unsigned char * to C# byte[] Pin
Joe Rozario25-Apr-10 22:42
Joe Rozario25-Apr-10 22:42 
GeneralRe: How to Convert C++ unsigned char * to C# byte[] Pin
Michel Godfroid25-Apr-10 23:45
Michel Godfroid25-Apr-10 23:45 
AnswerRe: How to Convert C++ unsigned char * to C# byte[] Pin
Luc Pattyn26-Apr-10 0:58
sitebuilderLuc Pattyn26-Apr-10 0:58 
QuestionSaving the execution of website as XML file Pin
aforaries25-Apr-10 10:41
aforaries25-Apr-10 10:41 
AnswerRe: Saving the execution of website as XML file Pin
Ravi Bhavnani25-Apr-10 15:41
professionalRavi Bhavnani25-Apr-10 15:41 
AnswerRe: Saving the execution of website as XML file Pin
Luc Pattyn25-Apr-10 16:26
sitebuilderLuc Pattyn25-Apr-10 16:26 
GeneralRe: Saving the execution of website as XML file Pin
aforaries25-Apr-10 23:59
aforaries25-Apr-10 23:59 

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.