Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Create whole controls and contents of UpdatePanel dynamically

$
0
0

Hi,

I need to create whole contents of UpdatePanel2 dynamically on button click.  Is it possible to create replica of all controls (including table, label and requiredvalidator)? There are around 25 controls in UpdatePanel2.

Its something like this:

Job Name:

<textbox>

Location:

<textbox>

Designation:

<dropdownlist>

Certified:

Y/N <radio button>

+Add More Job


so on click on plus sign, need to create same table dynamically with same fields and options

Any suggestions please. 

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
             ...master page contents....</asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server"><asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
            .....some HTML controls & contents....</ContentTemplate></asp:UpdatePanel><asp:UpdatePanel ID="UpdatePanel2" runat="server"><ContentTemplate><table><tr><td><asp:Label id="l1" .....></td><td><asp:TextBox id="tb1" .....></td><td><asp:RequiredFieldValidator id="vld1" ..../></td></tr><tr><td><asp:Label id="l2" .....></td><td><asp:DropDownList id="drp2" .....></td></tr><tr><td><asp:Label id="l3" .....></td><td><asp:TextBox id="tb2" .....></td><td><asp:RequiredFieldValidator id="vld3" ....></td></tr></table><asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder><div > <asp:Button id="btn1" /> </div></ContentTemplate></asp:UpdatePanel></asp:Content>




Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>