ERROR: NewLine in Constant

Posted by Sindhuesh under ASP.NET on 7/9/2013 | Points: 10 | Views : 1322 | Status : [Member] | Replies : 2
hi,
i am getting an error like Newline in constant, when i run this code
string query = "SELECT Tname FROM Theater t WHERE ((location="+DropDownList1.SelectedValue+") &&
(m.mid=t.mid) && (Mname="+DropDownList2.SelectedValue+") && (category="+DropDownList3.SelectedValue+") && (m.mid=s.mid)");

Thanks




Responses

Posted by: Vuyiswamb on: 7/9/2013 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Step through you code and send us the contents of "query" variable

Thank you for posting at Dotnetfunda
[Administrator]

Sindhuesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sindhuesh on: 7/10/2013 [Member] Starter | Points: 25

Up
0
Down
i got where the error was.

Thanks

Sindhuesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response