Can we use a usercontrol inside a usercontrol

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Can we use a usercontrol inside a usercontrol

    hi group
    can we use a usercontrol inside a usercontrol.
    i mean can we use
    <%Register tagprefix..... src=....ascx%>
    in an ascx file.

    thanks in advance
    --
    Rajesh Tiwari



    Rajesh Tiwari Guest

  2. Similar Questions and Discussions

    1. UserControl inside of datagrid - loses its viewstate when datagrid is re-bound on postback
      I have a simple usercontrol, a datepicker which contains 3 dropdownlist , it resides inside a datagrid column and i set the selecteddate property of...
    2. Event not firing in usercontrol inside usercontrol
      I'm stumped on this problem. I've created a user control that dynamically creates 5 linkbuttons in the CreateChildControls method. Each of these...
    3. Rendering an UserControl inside a mail body without any page object reference
      Hi I would like to use a User Control to render the body of the mail I send. I know how to do that using Page.LoadControl The problem is that my...
    4. onserverclick in a usercontrol inside of a webcontrol
      More Info: In my webcontrol I am implementing the IPostBackEventHandler. I print out the eventArgument and I do not get anything from the...
    5. Use LoadControl to load a usercontrol but the webcontrol in the usercontrol can not AutoPostBack
      a uscontrol test.ascx have a dropdownlist web control the dropdownlist's AutoPostBack property is set "true" but when i use...
  3. #2

    Cool Re: Can we use a usercontrol inside a usercontrol

    Ya we can use.. Jus call the <%@ Register src="" tagname="" tagprefix=""%> in the usercontol in which u want to call the another user control.. Calling an user control inside another user control is same like calling a user control in normal aspx page
    nancy Guest

  4. #3

    Default Re: Can we use a usercontrol inside a usercontrol

    Hi I am trying To load user control within user control dynamically.
    But i am not able to do it.
    Some unpredictable things are happening.
    Can anyone please give me a sample code..
    I will really be thankful to u.
    It's really urgent..
    thanks in advance..

    My email id is : brij.nkh@gmail.com
    Unregistered Guest

  5. #4

    Default Can we use a usercontrol inside a user control

    Very informative post. It’s really helpful for me and helped me lot to complete my task. Thanks for sharing with us. I had found another nice post over the internet which was also explained very well about Populate Grid Control From XML Document Easily, for more details of this post check out this link.

    Thanks
    Tanuj Kumar Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139