Solved

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

Posted on 2002-05-02
6
456 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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