DataList - Data Lost

J

Jim Heavey

I have an 5 ASP:DataList embedded into an ASP:Table control as 5
ASP:TableRow. I am dynamically TableRow controls to this Table control.
Depending on the content of the DataRows being added, I will set the
appropriate DataListControls to be visible and set the DataSource.

When The page is displayed on the Form Load, all is well, but when I hit
the "Edit" button on one of the DataListControls, the page re-displays
without running the the "OnItemCommand" event and that control show up as
an empty row on my grid.

1st Question: Will the system maintain state for my ASP:DataList?
2nd Question: If so, why did my datalist not re-display what it had on the
form load?
3rd Question: Does adding back the rows to the ASP:Table som how disturb
the events which were triggered initially when the page is re-loaded?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top