[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
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>