Solved

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

Posted on 2002-05-02
6
459 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 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