PC Review


Reply
Thread Tools Rate Thread

adding web controls from C# code

 
 
Dariusz Tomoń
Guest
Posts: n/a
 
      6th Oct 2007
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


 
Reply With Quote
 
 
 
 
Ryan Anderson
Guest
Posts: n/a
 
      6th Oct 2007
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,
>
> 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



 
Reply With Quote
 
Dariusz Tomon
Guest
Posts: n/a
 
      6th Oct 2007
Hello Ryan,

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

Best Regards

Dariusz Tomon

Uzytkownik "Ryan Anderson" <(E-Mail Removed)> napisal w wiadomosci
news:(E-Mail Removed)...
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,
>
> 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




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Controls With VBA Code Magness Microsoft Excel Programming 2 6th Jul 2009 02:52 PM
vs2005 not auto adding controls to code behind Charlie Bear Microsoft C# .NET 4 12th Jul 2007 04:59 PM
Programmatically adding code to existing controls pietlinden@hotmail.com Microsoft Access Form Coding 3 10th Apr 2007 10:46 PM
Adding Controls to a page via external code jwwishart@gmail.com Microsoft ASP .NET 3 29th Mar 2007 02:29 AM
Adding controls to a form with code =?Utf-8?B?TWlrZSBpbiBMLkEu?= Microsoft Access Form Coding 1 1st Mar 2005 07:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:59 AM.