A
Ariana
Hello,
I have a problem and I'm hoping it will ring a bell with someone here.
In my ASP.NET website, I have a custom calendar control which highlights
ranges of dates based on a data source, and also allows a new date range to
be selected. To select a new range, the user clicks on the first date, then
clicks on the second date. The selected range is then highlighted, but the
dates from the database are still highlighted as well. This all worked fine
when I used an Access database through a typed Dataset.
However, I have now switched to an XML file read into a new Dataset in the
Page_Load event. Everything is fine until the user clicks on the second
date - the ranges in the database are highlighted, and when the user clicks
the first time, the date they picked is highlighted too.
But when they click a second time, the range they have selected is
highlighted, but all the dates from the data source are blank. Indeed,
stepping through the code reveals that the calendar's data source suddenly
has no data in it when the second click is processed.
I'm thinking that there might have been some caching going on with the typed
dataset, but I'm not sure how to fix the problem now I'm using an XML file.
Obviously, unless this summary already rings a bell, you will need to see
the code to help me, so I'm happy to provide the entire ASP.NET project. I'd
be very grateful for suggestions!
Thanks!
I have a problem and I'm hoping it will ring a bell with someone here.
In my ASP.NET website, I have a custom calendar control which highlights
ranges of dates based on a data source, and also allows a new date range to
be selected. To select a new range, the user clicks on the first date, then
clicks on the second date. The selected range is then highlighted, but the
dates from the database are still highlighted as well. This all worked fine
when I used an Access database through a typed Dataset.
However, I have now switched to an XML file read into a new Dataset in the
Page_Load event. Everything is fine until the user clicks on the second
date - the ranges in the database are highlighted, and when the user clicks
the first time, the date they picked is highlighted too.
But when they click a second time, the range they have selected is
highlighted, but all the dates from the data source are blank. Indeed,
stepping through the code reveals that the calendar's data source suddenly
has no data in it when the second click is processed.
I'm thinking that there might have been some caching going on with the typed
dataset, but I'm not sure how to fix the problem now I'm using an XML file.
Obviously, unless this summary already rings a bell, you will need to see
the code to help me, so I'm happy to provide the entire ASP.NET project. I'd
be very grateful for suggestions!
Thanks!