|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Formview Iteminserted event control display problemI 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
What's the new thing after ActiveX?
AJAX n00b - custom server control in an UpdatePanel causes full postback Collection Property in web custom control Menu - Eliminate The Triangular Arror pointer thing - How to do it? Web page size html text encoding problem Programmatically modifying the controls in FormView's PagerTemplate CSS substitution for the <center> tag Gridview only displays 3 columns of 11 column dataset Gridview controls added programmatically does not appear later |
|||||||||||||||||||||||