Creating controls dynamically using asp.net panel control Part 43

Поделиться
HTML-код
  • Опубликовано: 22 янв 2025

Комментарии • 50

  • @karrncares
    @karrncares 11 лет назад

    I watch at least a couple of these videos everyday. They are one of the best resource that I've found on the Internet for practical, immediately usable .NET information. Bravo.

  • @gerardcuriel7880
    @gerardcuriel7880 3 года назад

    Venkat you are one of the best online teachers I ever seen on youtube .Thanks for this tutorial

  • @MMMS75
    @MMMS75 12 лет назад +1

    I would like to thank you for posting these tutorials... Even for more experienced ASP developers you've mentioned some nuggets that have been extremely helpful, and let me approach designing applications with more finesse. And you've articulated everything very plainly and succinctly. Thanks!

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 лет назад +1

    Thank you very much for taking time to give feedback. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists, which could be useful to you. Please share the link with your friends who you think would also benefit from them. If you like these videos, please click on the THUMBS UP button below the video. For email alerts, when new videos are uploaded, you may subscribe to my channel.

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  12 лет назад +1

    Hi Mark, I am very glad you found these videos helpful. Thank you very much for the feedback.

  • @kumarkumaran2170
    @kumarkumaran2170 11 лет назад +5

    no words to say for your fabulous training. also its like a real time man..thanks lot and keep going forever...

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  12 лет назад

    Hi Robert, thank you very much for taking time to give feedback. There is a video on loading controls dynamically. This also explains, about getting values from those dynamically added controls. This video is titled as "Loading asp.net controls dynamically - Part 110". You can find this in asp.net tutorial. The link is included in the description of this video. Alternatively you can search youtube, with the title - Loading asp.net controls dynamically. I hope you will find this useful.

  • @janetmorgan9782
    @janetmorgan9782 4 года назад

    Thank you for a clear ans comprehensive presentation. I have viewed many of your asp.net presentations an they are all of a similar standard - very good indeed

  • @Rizkiaqa
    @Rizkiaqa 3 года назад

    This channel help me to do my job as Junior Programmer. Thank you very much

  • @UMUSolutions
    @UMUSolutions 11 лет назад

    Thank you so much for this insightful video. As simple as it is, it shows you how much you can really manipulate ASP.NET!

  • @franksolomon5805
    @franksolomon5805 11 лет назад

    Great stuff, Venkat - thanks! Now - Label / TextBox / Button ultimately inherit from System.Web.UI.Control. This class has an "ID" property, which the child classes inherit. If the controls have predetermined names as unique ID values, it would make control-dependent code in the application easier. So . . . do this
    lbl.ID = "Label" + i.ToString();
    txtBox.ID = "Textbox" + i.ToString();
    btn.ID = "Button" + i.ToString();
    and the controls will have meaningful names.

  • @Popc1007
    @Popc1007 5 лет назад

    thank-you very informative, I have learned a lot from your videos

  • @digrat
    @digrat 2 года назад

    Very well presented.

  • @juliobarriga
    @juliobarriga 11 лет назад +2

    Super, one question. How do you manipulate the controls added to the panel/place holder? What if I wanted to change the text or retrieve the text value from any of them and store it into a database or process it.

  • @worlandr
    @worlandr 12 лет назад

    Thanks, just what I was looking for!

  • @mehtarahul1419891
    @mehtarahul1419891 11 лет назад

    amazing stuff... thanks venkat.. :-)

  • @kathmandu13
    @kathmandu13 11 лет назад

    I think in the comments above he mentioned that retrieving values/loading them are in tutorial num 110 of this series. I have not watched that, but from what i read in the comments above that should be the one you are looking for.

  • @darkMakubeX
    @darkMakubeX 12 лет назад

    Hi. I would just like to ask if you have some tutorials regarding ajax control toolkit. The thing is, I am coding a dynamically added textbox with an autocomplete extender. . Can the auto complete extender also be created dynamically after the dynamic control (textbox) has been created?

  • @JOELPRABHU
    @JOELPRABHU 11 лет назад

    awesome your video tutorial is crystal clear.
    I have one doubt
    This same controls display in another page while page load?

  • @worlandr
    @worlandr 12 лет назад

    Thanks for the great video. Do you have a video on how to use these controls that have been created dynamically as you wouldn't know what the name of the control is in order to reference it. I'm guessing there would be some way to loop through the x number of available text boxes?

  • @Hamkin25
    @Hamkin25 8 лет назад

    Hi Venkat,
    This video is very interesting. I have a question concerning even handler in dynamically created button. I have a page where I create a list of buttons based on a category table from the database, and when I click on a button, I create another list of buttons which relate to the category that was clicked. However, the second list of button does not work when I click one button to add the data from it to a table. I debugged that page and realized that the second group of button even handler is not executed when a button click. Do you have any idea what I could do to achieve what I am trying to do?
    please let me know. Thanks in advance.

  • @shaikh10faisal
    @shaikh10faisal 11 лет назад +10

    how to ADD events on dynamically generated Buttons

    • @adalidalvarado
      @adalidalvarado 4 года назад +1

      It has been asked 6 years ago, but maybe someone could still need it. Here are a couple of solutions that I found interesting stackoverflow.com/questions/6187944/how-can-i-create-a-dynamic-button-click-event-on-a-dynamic-button

    • @zeniths823
      @zeniths823 3 года назад

      @@adalidalvarado thank you i though you just need to add eventhandler and method along with cotrol thanks for confirming that

  • @tanvirshaikh3676
    @tanvirshaikh3676 5 лет назад

    How do you get values on these control on post back ?

  • @2711ppp
    @2711ppp 11 лет назад

    sir i just loved you video . . . . it helped me alot . . . sir just one question ...
    how to retrieve values from these dynamically generated text-boxes.
    plzzz sir need you help .. . . . . .

  • @Hamkin25
    @Hamkin25 8 лет назад

    Hi Venkat,
    This video is very interesting. I have a question concerning even handler in dynamically created button. I have a page where I create a list of buttons based on a category table from the database, and when I click on a button, I create another list of buttons which relate to the category that was clicked. However, the second list of button does not work when I click one button to add the data from it to a table. I debugged that page and realized that the second group of button even handler is not executed when a button click. Do you have any idea what I could do to achieve what I am trying to do?
    Here is an example of the code, please let me know. Thanks in advance.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    public partial class _Default : System.Web.UI.Page
    {
    protected void Page_Load(object sender, EventArgs e)
    {
    }
    protected void Page_Init(object sender, EventArgs e)
    {
    gen();
    if (Session["tt"] != null)
    {
    Panel tt = Session["tt"] as Panel;
    this.PlaceHolder1.Controls.Add(tt);
    }
    }
    private void gen()
    {
    Button b = new Button();
    b.ID = "btn1";
    b.Text = "Generate button";
    b.Width = 130;
    b.Height = 40;
    b.BorderStyle = BorderStyle.Solid;
    b.Click += new EventHandler(b_Click);
    Panel1.Controls.Add(b);
    }
    private void b_Click(object sender, EventArgs e)
    {
    Panel tt = new Panel();
    Button bc = new Button();
    bc.ID = Guid.NewGuid().ToString();
    bc.Text = "Create";
    bc.Width = 130;
    bc.Height = 130;
    bc.BorderStyle = BorderStyle.Solid;
    bc.Click += new EventHandler(bc_Click);
    tt.Controls.Add(bc);
    this.PlaceHolder1.Controls.Add(tt);
    Session["tt"] = tt;
    }
    private void bc_Click(object sender, EventArgs e)
    {
    Panel tt2 = new Panel();
    Label1.Text = "Works";
    //Button b1 = new Button();
    //b1.ID = "btn1";
    //b1.Text = "Add";
    //b1.Width = 130;
    //b1.Height = 130;
    //b1.BorderStyle = BorderStyle.Solid;
    //b1.Click += new EventHandler(b1_Click);
    Session["tt"] = tt2;
    }
    }

  • @encore238
    @encore238 7 лет назад

    hi venkat ,if i need some space between controls dynamically
    Then how can i get that space ?
    Thanks in advance

  • @balkishan2k11
    @balkishan2k11 10 лет назад +4

    Hello Kudvenkat, I got stuck in one program in which I need to create dynamic text boxes and save the values of dynamic text boxes at run time into database. I would be glad if I get Tutorial on this.

  • @hozae1
    @hozae1 11 лет назад

    Is there a way for placing the control, lets say a text box at a specific location inside a Panel ?

  • @roxanacevallos9367
    @roxanacevallos9367 9 лет назад

    Hello. Very useful. I have a question: how do you spread the controls horizontally?, they render vertically.

  • @JunaidAhmad-pk9ce
    @JunaidAhmad-pk9ce 7 лет назад +1

    hi good day...
    sir your this video it's amazing but i need 1 more thing please i want to add how to save all dynamic value in database in asp.net please reply

  • @296Rajdeep
    @296Rajdeep 10 лет назад +1

    How to add events in these generated Buttons or TextBoxes?
    Share a link of yours if you have already uploaded.
    thanks

  • @piyushkothyari
    @piyushkothyari 7 лет назад

    thanks for such a nice tutorial .......there is one question how can i add particular class on those dynamically generated textbox and can i add date picker on those text box.

  • @SupportMe91
    @SupportMe91 2 года назад

    It's Possible or Not to Add Click Event on Dynamic Created Button

  • @sabirkhalil7503
    @sabirkhalil7503 9 лет назад

    how to get text in dynamic binded textbox

  • @xaeropredator
    @xaeropredator 9 лет назад +1

    in the if else if statements we also need(li.Value == "Label" && li.Selected) in order to generate only the controls that are checked in the checkbox.....

    • @VamsiVemula
      @VamsiVemula 8 лет назад

      no need to check that at that level because control will not enter until and unless it is selected .

  • @vyasganapathi4773
    @vyasganapathi4773 11 лет назад

    Dear Venkat, Can you explain bus seat reservation in ASP.NET? Please.
    Thank You for Explaining the concepts with Examples.

  • @abdulrajakharavi7554
    @abdulrajakharavi7554 6 лет назад

    This code is not working when i do same thing in Content PAge !!

  • @syedmujammilahmeds.jsyedja4673
    @syedmujammilahmeds.jsyedja4673 7 лет назад

    how to store those text box value in database... can you please upload a video for that sir...?

  • @buntyroy18
    @buntyroy18 11 лет назад

    thanks

  • @Hamkin25
    @Hamkin25 8 лет назад

    Hi Venkat,
    This video is very interesting. I have a question concerning even handler in dynamically created button. I have a page where I create a list of buttons based on a category table from the database, and when I click on a button, I create another list of buttons which relate to the category that was clicked. However, the second list of button does not work when I click one button to add the data from it to a table. I debugged that page and realized that the second group of button even handler is not executed when a button click. Do you have any idea what I could do to achieve what I am trying to do?
    please let me know. Thanks in advance.

  • @Hamkin25
    @Hamkin25 8 лет назад +1

    Hi Venkat,
    This video is very interesting. I have a question concerning even handler in dynamically created button. I have a page where I create a list of buttons based on a category table from the database, and when I click on a button, I create another list of buttons which relate to the category that was clicked. However, the second list of button does not work when I click one button to add the data from it to a table. I debugged that page and realized that the second group of button even handler is not executed when a button click. Do you have any idea what I could do to achieve what I am trying to do?
    please let me know. Thanks in advance.