Hi,
I think I programed myself into a corner.
I have a calendar control with differnt records associated with each day. When you click on a day, a datagrid displays the the events assosiated with that day.
I would like to be able to edit the events from that datagrid. My problem is that I can't get the OnEditCommand event to fire because I write over it on page_load. See, clicking on the calendar causes a post back, and I populate the grid on that postback. That kills my edit ability, because the postback also refreshes the datagrid.
If there anyway to tell what caused a page to postback? My real problem is I cannot hook into the "click" event before page_load fires. I need to check if the page posted back because of a click on the calendar, or a click on the datagrid. If I can tell that, I'm ok.
Thanks for your time,
CJB
I think I programed myself into a corner.
I have a calendar control with differnt records associated with each day. When you click on a day, a datagrid displays the the events assosiated with that day.
I would like to be able to edit the events from that datagrid. My problem is that I can't get the OnEditCommand event to fire because I write over it on page_load. See, clicking on the calendar causes a post back, and I populate the grid on that postback. That kills my edit ability, because the postback also refreshes the datagrid.
If there anyway to tell what caused a page to postback? My real problem is I cannot hook into the "click" event before page_load fires. I need to check if the page posted back because of a click on the calendar, or a click on the datagrid. If I can tell that, I'm ok.
Thanks for your time,
CJB