Programmatically Set SkinId Properties For Controls Within UpdatePanel?

Discussion in 'ASP .Net' started by Joey, Oct 24, 2007.

  1. Joey

    Joey Guest

    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
    Joey, Oct 24, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    12,036
    nguyenxuancanh
    Apr 12, 2008
  2. shapper

    SkinId

    shapper, Sep 22, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    442
    shapper
    Sep 22, 2006
  3. Replies:
    3
    Views:
    471
    Rob Meade
    Aug 8, 2007
  4. Nathan Sokalski
    Replies:
    1
    Views:
    570
    miher
    Jun 15, 2009
  5. Ne7ven
    Replies:
    0
    Views:
    1,678
    Ne7ven
    Apr 18, 2011
Loading...

Share This Page