cant set skin id to user control embedded in formview

Discussion in 'ASP .Net Web Controls' started by reiale@gmail.com, Aug 15, 2006.

  1. Guest

    Hi,

    I understand we need to use page_preinit but the dynamic controls
    inside of the form view don't yet exist at that event. I also tried
    setting the skinID in the render event of the form view but it is too
    late by then.

    Lastly, I tried setting the SkinID to a function using the <%= %>
    syntax but the function in the user control never gets executed.

    How does anyone set the skinID to a user control dynamically if the
    control is not part of the page (i.e. dynamically created via
    code/container control)?

    Thanks!
     
    , Aug 15, 2006
    #1
    1. Advertising

  2. Guest

    Anyone?

    wrote:
    > Hi,
    >
    > I understand we need to use page_preinit but the dynamic controls
    > inside of the form view don't yet exist at that event. I also tried
    > setting the skinID in the render event of the form view but it is too
    > late by then.
    >
    > Lastly, I tried setting the SkinID to a function using the <%= %>
    > syntax but the function in the user control never gets executed.
    >
    > How does anyone set the skinID to a user control dynamically if the
    > control is not part of the page (i.e. dynamically created via
    > code/container control)?
    >
    > Thanks!
     
    , Aug 16, 2006
    #2
    1. Advertising

  3. Guest

    I'm guessing this isn't supported. Obviously there is an issue w/the
    event handling. However, I should be able to isolate the user control
    and feed it a dynamic skinid prior to rendering.

    Anyone?

    wrote:
    > Anyone?
    >
    > wrote:
    > > Hi,
    > >
    > > I understand we need to use page_preinit but the dynamic controls
    > > inside of the form view don't yet exist at that event. I also tried
    > > setting the skinID in the render event of the form view but it is too
    > > late by then.
    > >
    > > Lastly, I tried setting the SkinID to a function using the <%= %>
    > > syntax but the function in the user control never gets executed.
    > >
    > > How does anyone set the skinID to a user control dynamically if the
    > > control is not part of the page (i.e. dynamically created via
    > > code/container control)?
    > >
    > > Thanks!
     
    , Aug 18, 2006
    #3
    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. Steve Richter
    Replies:
    5
    Views:
    6,427
    Brock Allen
    Apr 5, 2005
  2. =?Utf-8?B?QnVydA==?=
    Replies:
    1
    Views:
    987
    =?Utf-8?B?QnVydA==?=
    Apr 9, 2006
  3. Jules
    Replies:
    1
    Views:
    3,788
    Brock Allen
    Apr 12, 2006
  4. Nagaraj
    Replies:
    1
    Views:
    871
    Lionel B
    Mar 1, 2007
  5. Thomas Dodds

    Databind an embedded control in an embedded datagrid

    Thomas Dodds, Jul 26, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    402
    Thomas Dodds
    Jul 26, 2004
Loading...

Share This Page