Cant add usercontrol to specific page in multipage

Discussion in 'ASP .Net' started by moid, Jan 26, 2004.

  1. moid

    moid Guest

    I am not able to add usercontrols to specific page in multipage (IE WebControls)
    i want to add usercontrol dynamically so that i can set its properties dynamically



    Regards

    Moid Iqbal
     
    moid, Jan 26, 2004
    #1
    1. Advertising

  2. moid

    Teemu Keiski Guest

    Hi,

    you can still set the properties even if the control would be there
    statically. You just find it from MultiPage's Controls collection (or setb
    up a member for it in code-behind), cast to the property type and set the
    properties. Of course, case is different, if you really need to add them
    dynamically for example the number of added controls varies

    What are you trying to set for it? Location at the page (like client-side
    styles)?

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist

    "moid" <> wrote in message
    news:%...
    I am not able to add usercontrols to specific page in multipage (IE
    WebControls)
    i want to add usercontrol dynamically so that i can set its properties
    dynamically

    Regards
    Moid Iqbal
     
    Teemu Keiski, Jan 26, 2004
    #2
    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. =?Utf-8?B?RGF2aWQgQ29sbGl2ZXI=?=

    Problem with multipage usercontrol

    =?Utf-8?B?RGF2aWQgQ29sbGl2ZXI=?=, May 19, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    391
    =?Utf-8?B?RGF2aWQgQ29sbGl2ZXI=?=
    May 19, 2005
  2. =?Utf-8?B?SmF2?=

    Is ViwState Page-Specific or UserControl-Specific

    =?Utf-8?B?SmF2?=, Aug 16, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    540
    =?Utf-8?B?SmF2?=
    Aug 16, 2006
  3. Nagaraj
    Replies:
    1
    Views:
    870
    Lionel B
    Mar 1, 2007
  4. Russ
    Replies:
    8
    Views:
    209
  5. Replies:
    2
    Views:
    539
Loading...

Share This Page