Object reference not set within an accordion control

G

gg

Hi,

I have a checkbox control inside an accordion.

During the page load I am attempting to set the Checked attribute as
follows...

If Session("bolShortDesc") = True Then
Me.chbxDescLength.Checked = True
Else
Me.chbxDescLength.Checked = False
End If

BTW I am doing this as I want it to maintain state across different
pages...

I am getting the NullReferenceException error "Object reference not
set to an instance of an object."

I figure this is because it is inside the accordion control?

This one must be simple but it is driving me nuts!

Thanks for your help
 

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

Staff online

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
KetoBurn
Top