adding web controls from C# code

D

Dariusz Tomoñ

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
 
R

Ryan Anderson

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
 
D

Dariusz Tomon

Hello Ryan,

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

Best Regards

Dariusz Tomon

Uzytkownik "Ryan Anderson" <[email protected]> napisal w wiadomosci
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
KetoBurn
Top