Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add TextBox To Page
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Add TextBox To Page
Miscellaneous
Thread ID:
01451101
Message ID:
01451101
Views:
96
How do you add a textbox to an asp page?

When I try this:
        TextBox TextBox1 = new TextBox();
        this.Controls.Add(TextBox1);
I get a page error "Control 'ctl02' of type 'TextBox' must be placed inside a form tag with runat=server. "

Is there no way to do this in C# in the page_load? Or must I do it with tags?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform