Welcome Guest Search | Active Topics | Members | Log In | Register

adding web controls from C# code Options · View
Ryan Anderson
Posted: Saturday, October 06, 2007 7:49:40 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 06/10/2007 19:49:40
Date: Sat, 06 Oct 2007 19:49:40 -0000

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=F1" <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=3D"euroc" TagName=3D"B2B" Src=3D"WebControl/b2b.as=
cx" %>
>
> ...................
>
> <euroc:B2B ID=3D"B2B1" runat=3D"server"></euroc:B2B>
>
> I would like to add it from code behind C# instead of adding it
> non-dynamically.
>
> Best Regards
>
> Dariusz Tomon


Dariusz Tomoñ
Posted: Saturday, October 06, 2007 11:27:41 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 06/10/2007 23:27:41
Date: Sat, 6 Oct 2007 21:27:41 +0200

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


Dariusz Tomon
Posted: Sunday, October 07, 2007 1:34:34 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 07/10/2007 01:34:34
Date: Sat, 6 Oct 2007 23:34:34 +0200

Hello Ryan,

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

Best Regards

Dariusz Tomon

Uzytkownik "Ryan Anderson" <buzzuti@gmail.com> napisal w wiadomosci
news:1191700180.488720.152700@50g2000hsm.googlegroups.com...
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



Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.046 seconds.