Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to make a custom control's control public to parent container by default?

Reply
Thread Tools

How to make a custom control's control public to parent container by default?

 
 
farmer
Guest
Posts: n/a
 
      10-24-2005
as title.

 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      10-24-2005
Just declare it as public.

Public MyControl as SomeControl

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"farmer" <> wrote in message
news: oups.com...
> as title.
>



 
Reply With Quote
 
 
 
 
farmer
Guest
Posts: n/a
 
      10-24-2005
I am meaning such a custom control:

<script language="C#" runat="server">
</script>
<asp:Button ID=Search Text="Search" runat=Server>

I want Button:"Search" to be a public Control directory,not add a
additional represent variable and get/set for access the inner control
such as:

<script language="C#" runat="server">
public string MySearch{
get{...}
set{...}
}
</script>
<asp:Button ID=Search Text="Search" runat=Server>

this way,I can use the inner control directly such as:
MyContrl.Search.Text="xxx";

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
microsoft.public.certification, microsoft.public.cert.exam.mcsa, microsoft.public.cert.exam.mcad, microsoft.public.cert.exam.mcse, microsoft.public.cert.exam.mcsd loyola MCSE 4 11-15-2006 02:40 AM
microsoft.public.certification, microsoft.public.cert.exam.mcsa, microsoft.public.cert.exam.mcad, microsoft.public.cert.exam.mcse, microsoft.public.cert.exam.mcsd loyola Microsoft Certification 3 11-14-2006 05:18 PM
microsoft.public.certification, microsoft.public.cert.exam.mcsa, microsoft.public.cert.exam.mcad, microsoft.public.cert.exam.mcse, microsoft.public.cert.exam.mcsd loyola MCSD 3 11-14-2006 05:18 PM
microsoft.public.certification, microsoft.public.cert.exam.mcsa, microsoft.public.cert.exam.mcad, microsoft.public.cert.exam.mcse, microsoft.public.cert.exam.mcsd realexxams@yahoo.com Microsoft Certification 0 05-10-2006 02:35 PM
microsoft.public.dotnet.faqs,microsoft.public.dotnet.framework,microsoft.public.dotnet.framework.windowsforms,microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb Charles A. Lackman ASP .Net 1 12-08-2004 07:08 PM



Advertisments