|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ASP.Net/C# - Syntax error (missing operator) in query expression
string str2 = "select * from patient where dateofregistration='" +DropDownList1.SelectedValue +"' ";
Here error is comming. In page_load() I attatcched the date in dropdownlist. pls help me |
|
#2
|
||||
|
||||
|
Welcome to the forums
![]() When working with dates, you need to enclose them in ## like this Code:
string str2 = "select * from patient where dateofregistration=#" +DropDownList1.SelectedValue.ToString +"# ";
__________________
................... ASCII and ye shall receive .................. Knowledge is the only resource on earth that multiplies when shared Support the Shemzilla Project Powered by C# |
|
#3
|
|||
|
|||
|
Thanks for replying
Thanks for replying
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > ASP.Net/C# - Syntax error (missing operator) in query expression |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|