Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2002-05-02
6
Medium Priority
?
464 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 
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

Technology Partners: 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

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…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

704 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