Using date with datasource filter parameter?

V

Vili

Hi

I am having problems on using object datasource with date
filterparameter.
From code:

myObjectDatasource.FilterParameters.Add("dagte", TypeCode.DateTime,
CDate(txtdate.Text))
myFilterExpression = "Date = {0}"
myObjectDatasource.FilterExpression = Expression

When doing filtering this way using other parameter types than date it
works fine, but with date I am having problems

Any hints on what I am doing wrong?

Tuomo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top