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.
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!
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.
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.
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
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.
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.
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.
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?
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?
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.
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
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 .. . . . . .
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; } }
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.
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
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.
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.....
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.
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.
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.
Venkat you are one of the best online teachers I ever seen on youtube .Thanks for this tutorial
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!
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.
Hi Mark, I am very glad you found these videos helpful. Thank you very much for the feedback.
no words to say for your fabulous training. also its like a real time man..thanks lot and keep going forever...
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.
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
This channel help me to do my job as Junior Programmer. Thank you very much
Thank you so much for this insightful video. As simple as it is, it shows you how much you can really manipulate ASP.NET!
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.
thank-you very informative, I have learned a lot from your videos
Very well presented.
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.
Thanks, just what I was looking for!
amazing stuff... thanks venkat.. :-)
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.
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?
awesome your video tutorial is crystal clear.
I have one doubt
This same controls display in another page while page load?
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?
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.
how to ADD events on dynamically generated Buttons
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
@@adalidalvarado thank you i though you just need to add eventhandler and method along with cotrol thanks for confirming that
How do you get values on these control on post back ?
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 .. . . . . .
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;
}
}
hi venkat ,if i need some space between controls dynamically
Then how can i get that space ?
Thanks in advance
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.
Is there a way for placing the control, lets say a text box at a specific location inside a Panel ?
Hello. Very useful. I have a question: how do you spread the controls horizontally?, they render vertically.
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
How to add events in these generated Buttons or TextBoxes?
Share a link of yours if you have already uploaded.
thanks
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.
It's Possible or Not to Add Click Event on Dynamic Created Button
how to get text in dynamic binded textbox
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.....
no need to check that at that level because control will not enter until and unless it is selected .
Dear Venkat, Can you explain bus seat reservation in ASP.NET? Please.
Thank You for Explaining the concepts with Examples.
This code is not working when i do same thing in Content PAge !!
how to store those text box value in database... can you please upload a video for that sir...?
thanks
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.
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.