I have a table that I need to manually generate based on stuff in the
database. I build the actual table string and stuff it into an asp:panel. So
far it works fine. I'm now trying to add a checkbox to each cell so that
whether it's selected or not.
Problem is, I set the code in the cell during page_load but if I look at the
actual HTML, it says <asp:checkbox ..... whereas everything that is
not dynamic is normal html. So apparently the code is not getting translated
into html.
Here's what I'm actually trying to do: we have pictures we put on our
website. We one a day and remove one a day. The customer would like to see a
'calendar' of pictures and select/deselect the ones they receive. This means
that if it's a Tuesday, they would like to see from Tuesday forward. Monday
would be blank. If it's Thursday, Sunday, Monday, Tuesday and Wednesday
would be blank. Like I said I manually created the table and it works (it's
pretty wild code though) but maybe somebody has a better suggestion on doing
it. The only thing I can think of is to retrieve the data, then prepad the
days so they always start with Sunday and hide everything before this day of
the week.
Anybody got any suggestions?
TIA - Jeff.