Community discussion forum

Multiple controls at runtime

Tags: asp.net India
  • 1 month ago

     

     

     Hi Everybody

                 I am working
    on asp.net(webapplication).

                   In my application we want to multiple controls(i.e for eg More than one textbox) on the form at a time at runtime.

                        I am able to  single control at runtime.

                       How to move Multiple controls at runtime?

                         Let me know if any details required?

     

    Rgds

    Anu

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 1 month ago

    Hi,

    I don't know if i am getting what you mean by this, but it sounds to me like you have a group of textboxes that you want to shift the position of, is that right?

    there are ways of doing this, one way is to give each textbox a set cssclass and then either emit this from your codebehind to adjust the position of the textboxes or set the style so they are always set.

    HTH

    Si

  • 1 month ago

    hi Anu, Depending on your requirement you can use a loop to add the controls at runtime. suppose if you are fetching records from your database and you have populated a dataset with the records and for each record you want a textbox, then use a loop(for loop) and put ur code(which u have created for a single textbox control) in the looping block.

    Regards, Royal

Post a reply

Enter your message below

Sign in or Join us (it's free).