A
Alan Silver
hello,
I have a database table that stores names of schools, and I want o write
a page that allows someone to change the list.
I was wondering about showing the schools in a table, with existing
school names being in textboxes, each with a "delete" checkbox.
Modifying a school name would involve typing the changes in the textbox
and clicking a Submit button. Deleting a school would involve checking
the school(s) to be deleted, and then clicking a Delete button. Adding a
new school would be done via a separate textbox below the table.
All of this sounds fine (to me), but I'm a bit lost as to how to go
about it. I could use a repeater control to generate the table, but I'm
not sure the best way to add the textboxes. The problem is that I don't
know how you would specify the ID, as you would have loads of textboxes
with the same ID. Same problem goes for the checkboxes.
Anyone any idea how I would do this? Some simple code would help if you
can as I'm fairly new at this and a bit of code speaks a thousand words
;-)
Thanks for any help you can give
I have a database table that stores names of schools, and I want o write
a page that allows someone to change the list.
I was wondering about showing the schools in a table, with existing
school names being in textboxes, each with a "delete" checkbox.
Modifying a school name would involve typing the changes in the textbox
and clicking a Submit button. Deleting a school would involve checking
the school(s) to be deleted, and then clicking a Delete button. Adding a
new school would be done via a separate textbox below the table.
All of this sounds fine (to me), but I'm a bit lost as to how to go
about it. I could use a repeater control to generate the table, but I'm
not sure the best way to add the textboxes. The problem is that I don't
know how you would specify the ID, as you would have loads of textboxes
with the same ID. Same problem goes for the checkboxes.
Anyone any idea how I would do this? Some simple code would help if you
can as I'm fairly new at this and a bit of code speaks a thousand words
;-)
Thanks for any help you can give