hi..

Im building an application in ASP.net where i have a button which should add more textboxes when clicked. the other textboxes are placed in a table so if i click the button it should a new row containin the textboxes..

please let me know wht code i can use to achieve this...

thanks...

Hi,

This adds new Textbox :

Dim txtMsg As New TextBox()
txtMsg.Text = "My New TextBox..."
txtMsg.Attributes.Add("runat", "Server")
txtMsg.ID = "txtMsg"
Me.Controls.Add(txtMsg)

Regards
Veena

@veena:
it works fine..but how can i add thm to a specific location? i have a table in which im placing this textboxes, & i want them to be added after the previous ones..how i can set the location of the same?

>how can i add thm to a specific location?

Use Table server control.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.