🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.aspdotnet.components.using
Article #91

Re: How? Referencing a User Control in a User Control.

#91
From: Marco Caspers
Date: Sat, 01 Oct 2005 09:37
19 lines
1413 bytes
Yorai Aminov (TeamB) wrote:

> On 01/10/2005 01:11:41, Kyle A. Miller wrote:
> 
> > When you insert a user control, there's no declaration in the
> > containing class.
> 
> You can add the declaration yourself to the "strict protected" area
> of your class interface. You'll then be able to access the control in
> code.

Won't adding the tag runat="server" in the ascx/aspx do this for you?

i.e.: <asp:TextBox id="texteditor" runat="server" ........




-- 
Technical Details
Message-ID: <433e58d3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <433dc552$1@newsgroups.borland.com> <xn0e7yy5346gi9u002@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 21665a,206b263679172720
X-Google-Attributes: gid21665a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marco Caspers" <HexorHaxor@Vaxor.Com>
Subject: Re: How? Referencing a User Control in a User Control.
Newsgroups: borland.public.delphi.aspdotnet.components.using
References: <433dc552$1@newsgroups.borland.com> <xn0e7yy5346gi9u002@newsgroups.borland.com>
Organization: NoneOfYourBusiness
User-Agent: XanaNews/1.17.6.3
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 213.84.167.91
Message-ID: <433e58d3@newsgroups.borland.com>
Date: 1 Oct 2005 02:37:23 -0700
X-Trace: newsgroups.borland.com 1128159443 213.84.167.91 (1 Oct 2005 02:37:23 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail