radiobuttonlist error [NullReferenceException: Object reference not set to an instance of an object.

K

kuvpatel

Hi

Has anyone encountered a problem with the radiobuttonlist on a deployment
server.

In the form load event the code fails at the first add...
rb1.Items.Add("Excel")

rb1.Items.Add("Word for Windows")

rb1.Items.Add("PDF")

rb1.Items.Add("RTF")

I do not get the error on the development machine.

Any help would be appreciated.

Kuv
 
V

Victor Garcia Aprea [MVP]

There are no known issues for this. Are you creating rb1 dynamically (if so
please post the relevant code snippets) or at design-time (please post the
..aspx and codebehind files). Looking at code really helps the guessing game
:)

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top