Home All Groups Group Topic Archive Search About

Formview Iteminserted event control display problem

Author
17 Jan 2007 5:25 PM
Chris Cap
I have a formview that uses the ItemInserted event to display errors to the
user.  I'm using an object data source and using the return value in the
object data source's Inserted event to tell if there was an error during the
record insert.  If there was, I want to display an error message in the
formview's ItemInserted event and keep the formview in insert mode.  The
problem is that what I do frmv.FindControl("lblErrorLabel") and set it's text
and visibility, it doesn't show up.  However, if I move this control outside
the formview it works.  For aesthetic purposes, I need it inside the
formview.  I went here
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.formview.iteminserted.aspx

and it shows the control outside the formview.  How can I get this to work
from within the formview.  Thanks

Bookmark and Share


Post Thread options