Hi,
IF I run my application was created in vb.net,
it Shows an error like "Incorrect syntax near '3/15/2013 12:00:00 AM'."
I neeed to Display the data in Gridview Based on date..
The code is
Private Sub File_Request_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Form1.Visible = False
from_date = appdate.Value.ToString("")
CON.Open()
CMD = New SqlCommand("select * from table_name '" + from_date + "'", CON)
sda = New SqlDataAdapter(CMD)
ds = New DataSet()
sda.Fill(ds)
CON.Close()
GRIDREQUEST.DataSource = ds.Tables(0)
GRIDREQUEST.Enabled = True
End Sub