RadioButtonList In DataGrid
I have a page that gets a list of users from a database
and puts them into a DataGrid. The DataGrid is editable.
In Edit Mode of the DataGrid, I'll click update w/out
making a selection on a RadioButtonList and get this error:
"Object reference not set to an instance of an object."
Here's the code giving the error:
..Add(New SqlParameter("@ExceptionType", CInt(CType
I think I understand why I'm getting the error: there is
no value for the control.
The real problem is that I have a RequiredFieldValidator
in the EditItemTemplate that doesn't seem to catch
the unselected state of the RadioButtonList.
Here's the code for the validator:
display="Dynamic" errormessage="Please select an Exception
Is this happening because it's in a template and is being
renamed for each user? If so, how do I workaround it?
Thanks in advance!
Re: RadioButtonList In DataGrid
On Thu, 24 Jun 2004 12:00:13 -0700, "Greg Wold"
The selected value / selected item will be null if you do not make a
|All times are GMT. The time now is 02:16 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.