Posted on: 11/19/2013 12:58:37 PM | Views : 256

why am i getting this error , below is the code
insertuserhistory = new SqlCommand("insert into tbl_usershistory (userid,FirstName,LastName,Code,Description,Trial,Expired,TrialActivatedBy,DateofPurchase,EndofPurchase) VALUES(N'"+Label1.Text+"',N'"+Labelfirstnsme.Text+"',N'"+Labellastname.Text+"',N'"+Label4.Text+"',N'"+LabelDescription.Text+"',N'"+triallabel.Text+"',N'"+expiredTrial+"',N'"+Labeltrialactivatedby.Text+"',N'"+TxtTrialStart.Text+"',N'"+expiration+"') WHERE userid='" + Label1.Text + "' AND Code='" + Label4.Text + "' AND Expired='True'", conn);

Go to the complete details ...