Hi Greg,
I have done more research regarding this issue. As I understand, what you
really want is creating and positioning a control dynamically.
Based on my research and experience, we can use the place holder control.
Please refer to the following code snippet. ( It uses a label but it is
similar with a textbox)
private void Button1_Click(object sender, System.EventArgs e)
{
Label myLabel = new Label ( );
myLabel.Text = "Welcome to ASP.NET";
Placeholder2.Controls.Add ( myLabel );
myLabel.Attributes.Add("style",@"Z-INDEX: 102; LEFT: 16px; POSITION:
absolute; TOP: 48px");
}
Does it answer your question? If I have misunderstood your concern, please
feel free to let me know.
Best regards,
Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.