Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

adding web controls from C# code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dariusz Tomoñ - 06 Oct 2007 20:27 GMT
Hi,

I have got the main page of my project which consists of several web
controls. Some of them I add statically (in aspx page), some of them I'd
like to add from C# code.

For example I add one of the we controls:

<%@ Register TagPrefix="euroc" TagName="B2B" Src="WebControl/b2b.ascx" %>

...................

<euroc:B2B ID="B2B1" runat="server"></euroc:B2B>

I would like to add it from code behind C# instead of adding it
non-dynamically.

Best Regards

Dariusz Tomon
Ryan Anderson - 06 Oct 2007 20:49 GMT
Hello Dariusz ,

This is a very straight forward task to accomplish with minimal
effort.
Here is a good article that discusses the pros and cons of this and
demonstrates how easy it is!
http://aspalliance.com/565

Good luck!
RA

On Oct 6, 12:27 pm, "Dariusz Tomo?" <d.to...@mazars.pl> wrote:
> Hi,
>
[quoted text clipped - 16 lines]
>
> Dariusz Tomon
Dariusz Tomon - 06 Oct 2007 22:34 GMT
Hello Ryan,

It is actually straight forward and works perfectly.
Thank you very much.

Best Regards

Dariusz Tomon

Hello Dariusz ,

This is a very straight forward task to accomplish with minimal
effort.
Here is a good article that discusses the pros and cons of this and
demonstrates how easy it is!
http://aspalliance.com/565

Good luck!
RA

On Oct 6, 12:27 pm, "Dariusz Tomoñ" <d.to...@mazars.pl> wrote:
> Hi,
>
[quoted text clipped - 16 lines]
>
> Dariusz Tomon

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.