Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 09, 2012 08:41 AM by ramiramilu
0 Points
1 Post
May 09, 2012 08:23 AM|LINK
Hi All,
I am new to Asp.net . i want to add mutiple control dynamically to my page when u click a button every time .
How to add multiple controls dynamically when u click a button every time ?
Example:
I want to add Mutiple Address when u click a button
After page load, default one Address will be there
Address Line 1(Label1) TextBox1
Address Line 2(Label2) TextBox2
City (Label3) Text Box3
State(Label4) DropDown1
if u want to add more address. we click a button Add More.
The controls Labels and TextBoxes and DropDown dynamically genereated when u click Add More button
Address Line1 TextBox4
Address Line2 TextBox5
City TextBox6
State DropDown2
Please Help me !!!
Thanks in advance K.pratap
Star
7625 Points
1454 Posts
May 09, 2012 08:28 AM|LINK
hi pratapkumar,
please check here, it's good example
http://support.microsoft.com/kb/317794
All-Star
95413 Points
14106 Posts
May 09, 2012 08:41 AM|LINK
Watch this video...Dyanmic control by Joe Stagner - http://www.asp.net/web-forms/videos/aspnet-ajax/how-to-dynamically-add-controls-to-a-web-page
in that tutorial Joe shows how to create indeterminant number controls dynamically...
Thanks,
pratapkumar....
0 Points
1 Post
add multiple controls dynamically when u click a button every time
May 09, 2012 08:23 AM|LINK
Hi All,
I am new to Asp.net . i want to add mutiple control dynamically to my page when u click a button every time .
How to add multiple controls dynamically when u click a button every time ?
Example:
I want to add Mutiple Address when u click a button
After page load, default one Address will be there
Address Line 1(Label1) TextBox1
Address Line 2(Label2) TextBox2
City (Label3) Text Box3
State(Label4) DropDown1
if u want to add more address. we click a button Add More.
The controls Labels and TextBoxes and DropDown dynamically genereated when u click Add More button
Address Line1 TextBox4
Address Line2 TextBox5
City TextBox6
State DropDown2
Please Help me !!!
Thanks in advance
K.pratap
santosh.jagd...
Star
7625 Points
1454 Posts
Re: add multiple controls dynamically when u click a button every time
May 09, 2012 08:28 AM|LINK
hi pratapkumar,
please check here, it's good example
http://support.microsoft.com/kb/317794
MCP
ramiramilu
All-Star
95413 Points
14106 Posts
Re: add multiple controls dynamically when u click a button every time
May 09, 2012 08:41 AM|LINK
Watch this video...Dyanmic control by Joe Stagner - http://www.asp.net/web-forms/videos/aspnet-ajax/how-to-dynamically-add-controls-to-a-web-page
in that tutorial Joe shows how to create indeterminant number controls dynamically...
Thanks,
JumpStart