Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.mobile
Unselected Radiolist buttons causing error 'Object reference not set to an instance of an object'
Robin Prosch via .NET 247
5/15/2005 12:13:00 PM
Hi,
I am getting an error when a user submits a form with unselected radiobuttonlist items.
I am trying to design a questionnaire that allows the user to submit the form without answering the questions. However, I am getting the error 'Object reference not set to an instance of an object'.
Presumably this is because radiolist.SelectedItem.Value has no value because it is returning Null.
I am using a standard 'insert into' SQL string.
Does anyone know of a way of allowing non-selected radiolists to be entered into a database as null? Or do I need some sort of loop procedure to find the unselected items?
Thanks!
--------------------------------
From: Tom Liversidge
-----------------------
Posted by a user from .NET 247 (
http://www.dotn...
)
<Id>3o96aBLv202n4kvx0h6HvQ==</Id>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Unselected Radiolist buttons causing error 'Object reference not set to an instance of an object'
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password