RE: Adding Controls to a Page 2005-02-18 - By James Shaw
Usually you have a container like an <asp:panel> or <asp:literal> on the page, and then add controls to it with .Controls.Add() from codebehind
Best regards, James Shaw 2005 Microsoft MVP ASP.NET www.CoverYourASP.NET Blogging on ASP.NET www.CoverYourASP.com Download it. Run it. Learn it. www.DozingDogs.com Over 50 million pages served
-----Original Message----- From: Boudreau, Duane [mailto:BoudreauD@(protected)] Sent: Friday, February 18, 2005 4:30 PM To: aspnet-controlbuilding@(protected) Subject: [aspnet-controlbuilding] Adding Controls to a Page
Using C#, is there a way to dynamically add controls (labels, textboxes, etc) to a page in its code behind page?
If so can someone point me to a tutorial or some sample code?
Thanks, Duane
Need SQL Advice? http://sqladvice.com Need RegEx Advice? http://regexadvice.com Need XML Advice? http://xmladvice.com
Need SQL Advice? http://sqladvice.com Need RegEx Advice? http://regexadvice.com Need XML Advice? http://xmladvice.com
|
|