Programmatically Set SkinId Properties For Controls Within UpdatePanel?

J

Joey

In my app I have many master/content pages. On each content page I set
controls in the Page_PreInit event. This was working fine until I
added AJAX and an UpdatePanel to one of my content pages. Now for all
of the controls contained within UpdatePanel tags, I get "Object
reference not set to an instance of an object" at runtime, when trying
to programmatically set SkinIds.

Can anyone tell me why this is happening? Better, can anyone tell me
how to reference the controls in the code behind so that I don't get
the error?

JP
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top