469,582 Members | 2,244 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,582 developers. It's quick & easy.

DataList editing

Hi, I'm currently trying to implement editing in a simple
Datalist displaying news on my site. I did everything
the walkthrought of microsoft said to do, but it doesn't
seem to work.

Just for a matter of debugguing, I maintained a list of
what event is called in a session variable because I lost
way to much time on this and wanted to know what was
happening... When I press an Edit or Select button in my
<ItemTemplate>, the event is called and my item goes in
editing selected mode... But then, any button I press in
my <EditItemTemplate>, no event is raised... The
page_load event occurs and then nothing... Even the
itemCommand event is not raised.

My viewstate is enabled, I rebind my datalist after
pressing edit or select, but my update or cancel events
(or any other CommandName I tried) will never trigger any
ItemCommand or any other event at all.

I can post my code if necessary, but it's pretty long.

Thanks!

Etienne
Nov 18 '05 #1
1 1412
Hello etienne,
"Etienne Tremblay" <an*******@discussions.microsoft.com> schrieb im
Newsbeitrag news:63****************************@phx.gbl...
Hi, I'm currently trying to implement editing in a simple
Datalist displaying news on my site. I did everything
the walkthrought of microsoft said to do, but it doesn't
seem to work.

Just for a matter of debugguing, I maintained a list of
what event is called in a session variable because I lost
way to much time on this and wanted to know what was
happening... When I press an Edit or Select button in my
<ItemTemplate>, the event is called and my item goes in
editing selected mode... But then, any button I press in
my <EditItemTemplate>, no event is raised... The
page_load event occurs and then nothing... Even the
itemCommand event is not raised.

My viewstate is enabled, I rebind my datalist after
pressing edit or select, but my update or cancel events
(or any other CommandName I tried) will never trigger any
ItemCommand or any other event at all.

Have you set the ItemCommand to the datalist?

Sometimes, when you change something in the code, the datalist lost the
itemCommand - Event!

mfg simon g.
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Mike Malter | last post: by
4 posts views Thread by tshad | last post: by
3 posts views Thread by asadikhan | last post: by
1 post views Thread by weird0 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.