Hi, i like the RadAjax for ASP.NET AJAX Blog example and i create a page to display my blog on that. everything is perfectly work but i use sql server not access Db, so i'm getting error on SELECT * from BooksDB WHERE dtEntered = ? that 'Incorrect syntax near ? and i have 45 blog posts in my database so i want to retrieve by date with this method, and with this coding i'll retrieve my blog by selected dates only.
Public Sub Calendar1_DayRender(ByVal sender As Object, ByVal e As DayRenderEventArgs)
If e.Day.[Date] = DateTime.Parse("8/05/2008") OrElse e.Day.[Date] = DateTime.Parse("8/10/2008") OrElse e.Day.[Date] = DateTime.Parse("8/16/2008") Then
e.Cell.Attributes.Add("class", "CalendarDay")
Else
e.Cell.Controls.Clear()
e.Cell.Controls.Add(New LiteralControl(String.Format("<div>{0}</div>", e.Day.[Date].Day)))
End If
End Sub
but i have 4 month of data, so i want to retrieve records according to this.
so please help me to solve this matter
thank you