all groups > asp.net caching > september 2005 >
You're in the

asp.net caching

group:

Controls inside EditTemplate cause editing to end


Re: Controls inside EditTemplate cause editing to end Brock Allen
9/7/2005 12:20:34 PM
asp.net caching: It's called from the Button's OnCommand event handler. The OnCommand is bubbled
up thru the part control hierarchy so child controls like the button can
send commands up to parent controls.

-Brock
DevelopMentor
http://staff.develop.com/ballen



[quoted text, click to view]


Controls inside EditTemplate cause editing to end Nathan Sokalski
9/7/2005 2:05:48 PM
I have a DataList control with an EditTemplate. Three of the controls in
this template include a Calendar, a Button with CommandName="update", and a
Button with CommandName="cancel". Whenever I click one of these controls,
the DataList replaces the EditTemplate with the ItemTemplate. I think this
is because the method I wrote which performs the databinding is getting
called, but I don't know why or where it is getting called from. It does not
get called from my Page_Load method and I do not have an ItemCommand event
handler, so I don't know where to start testing for it. I tested to see if
my UpdateCommand event is getting called when I click the Button with
CommandName="update" by assigning some text to a Label control, so I know
that it is never getting called. What could be causing my problem? Any help
would be appreciated. Thanks.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/

Re: Controls inside EditTemplate cause editing to end Nathan Sokalski
9/7/2005 5:34:07 PM
If that were true, why was my test code of assigning some text to a Label
not being called? Also, that still does not explain why the Calendar was
doing what it was doing. Thanks.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/

[quoted text, click to view]

AddThis Social Bookmark Button