G
Guest
I am using C# aspx page in Frontpage 2003, trying to query the records
according to current date using Custom SQL runat=server ie.
SELECT * FROM Results WHERE (Date=::lblDate:
but it is not fetching any records even if there is date matched on database.
It works if i used
SELECT * FROM Results WHERE (Date='13/01/2006')
lblDate is an asp Label running at server and forms are running on server
too. why is the variable or object lblDate is not available on sql. what do i
need to do? please help. and date is text type on database.
Thanks in advance.
according to current date using Custom SQL runat=server ie.
SELECT * FROM Results WHERE (Date=::lblDate:
but it is not fetching any records even if there is date matched on database.
It works if i used
SELECT * FROM Results WHERE (Date='13/01/2006')
lblDate is an asp Label running at server and forms are running on server
too. why is the variable or object lblDate is not available on sql. what do i
need to do? please help. and date is text type on database.
Thanks in advance.