Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ASP.NET -- Is it possible to bind a dataset to a calendar object?

Posted on 2002-05-02
6
Medium Priority
?
471 Views
Last Modified: 2008-01-09
i have a calendar object on my asp.net page, and i'm trying to bind a dataset to it. the calendar object doesn't have a datasource property like a datagrid does, but it does have a databind method. is there a way to bind a dataset (or datareader) to a calendar?

thanks in advance.
0
Comment
Question by:msdixon
  • 3
  • 3
6 Comments
 
LVL 23

Accepted Solution

by:
naveenkohli earned 200 total points
ID: 6987246
No, you can't bind a data to calendar control. What is the purpose of binding a recordset to a calendar?

Naveen
0
 
LVL 9

Author Comment

by:msdixon
ID: 6987256
i'm trying to display activities/events that will occur on a specific date.
0
 
LVL 23

Expert Comment

by:naveenkohli
ID: 6987281
That you can do by handling DayRender event. In that event you can access Day that is being rendered. And corresponding to that you can get information from data source where you have all the information. And then change the text for that Day cell.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 9

Author Comment

by:msdixon
ID: 6987286
yes, but i was trying to avoid that. i figured they would allow some sort of data binding which would eliminate the need to parse through a dataset and get the data and if it's the correct date, update the text of the cell...
0
 
LVL 23

Expert Comment

by:naveenkohli
ID: 6987329
Unfortunately thats the only option you have. And DataBind method is only for the controls that expose DataSource property. Otherwise its a no-op.
0
 
LVL 9

Author Comment

by:msdixon
ID: 6987338
that's too bad... i have it working anyway. thanks for the info.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question