Solved

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

Posted on 2002-05-02
6
457 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 50 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now