M
Mark
Hi - thanks for the help in this group so far.
Regarding the click event of a link_button (created within a table and
added to a placeholder at run-time) - there are a number of link_buttons
added to the dyanmic table I am using (a gantt chart) - when you click
on one of the link_buttons, it calls a sub which takes the reference of
the table cell (a persons name, and the date - it's a resource chart) -
and updates the DB with a 'booked' flag for that person for that date.
However, if I redraw the table and link_buttons at the end of this
update routine, the changes do not show until a subsequent post_back has
been made - in effect, it looks like the updating is one click behind
me.
If I redraw the table from the page_load too (following Alessandro's
post), it works, but only if I have also called the redraw from the
update sub above (effectively doubling teh load on the app, and the
calls to the database). If I don't call the redraw from both the sub,
and the page_load - it doesn't work as soon as I click the link_button.
Have I missed something here?
Thanks,
Regarding the click event of a link_button (created within a table and
added to a placeholder at run-time) - there are a number of link_buttons
added to the dyanmic table I am using (a gantt chart) - when you click
on one of the link_buttons, it calls a sub which takes the reference of
the table cell (a persons name, and the date - it's a resource chart) -
and updates the DB with a 'booked' flag for that person for that date.
However, if I redraw the table and link_buttons at the end of this
update routine, the changes do not show until a subsequent post_back has
been made - in effect, it looks like the updating is one click behind
me.
If I redraw the table from the page_load too (following Alessandro's
post), it works, but only if I have also called the redraw from the
update sub above (effectively doubling teh load on the app, and the
calls to the database). If I don't call the redraw from both the sub,
and the page_load - it doesn't work as soon as I click the link_button.
Have I missed something here?
Thanks,