Force Calendar Control to "Re-Bind"
Posted on 2006-04-19
There are several posts on this, but I'm still having some issues.
I want to build a web page that allows a user to select a project from a drop down. When they select the project, my form goes to the database to get all of the due dates associated with the project and I use the DayRender event to populate the calendar. I can get this to work on the first page load by getting my data in the Page_Load event, then the DayRender event fires and fills the calendar. How can I get this to work when the user selects a value from a drop down?
I tried this code from another post: (Code was added to a Button Click event)
Dim DREg As System.Web.UI.WebControls.DayRenderEventArgs
..but this does not work. The DayRender event gets fired, but the error indicates that the "e" event arg variable has not been created. How can I solve this?