Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Create a user control Dynamically

Create a user control Dynamically

Scheduled Pinned Locked Moved ASP.NET
database
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ravi_21
    wrote on last edited by
    #1

    Hi there i want to create a user control which are create dynamically and in that i want function which take one parameter say id on behalf of that id it will return some collection of data. i want number of textbox=no.of count of that database collection Can any one provide me the Giudence on this topic

    B A 2 Replies Last reply
    0
    • R Ravi_21

      Hi there i want to create a user control which are create dynamically and in that i want function which take one parameter say id on behalf of that id it will return some collection of data. i want number of textbox=no.of count of that database collection Can any one provide me the Giudence on this topic

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      Have made the ascx file? Create the object of Usercontrol at runtime and give the id at same time. You can have one public property that will be set at the runtime according to ID by your function.You can put it in custructor or pageload.

      Cheers!! Brij

      1 Reply Last reply
      0
      • R Ravi_21

        Hi there i want to create a user control which are create dynamically and in that i want function which take one parameter say id on behalf of that id it will return some collection of data. i want number of textbox=no.of count of that database collection Can any one provide me the Giudence on this topic

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Ravi_21 wrote:

        i want to create a user control which are create dynamically

        You want to create User Control (.ascx ) Dynamically or Want Add User Control Dynamically ? Have a look on this[^] Hope this will helps you.

        cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups