Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > communication between control and container

Reply
Thread Tools

communication between control and container

 
 
Tariq Ahmad
Guest
Posts: n/a
 
      11-11-2003
hi,

i have a user control that sits on a webform page.

how can the usercontrol get access to the attibutes of the
<BODY> tag of the page that it is sitting in and modify the
attributes? The <BODY> tag looks like this:

<body id=bdBody runat="server">

Protected WithEvents bdBody As
System.Web.UI.HtmlControls.HtmlContainerControl

effectively i want to know how i can access the bdBody variable from
within the usercontrol.

thnx.

t.


 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      11-12-2003
Hi,

CType(Page.FindControl("bdBody"),HtmlContainerCont rol)

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist


"Tariq Ahmad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hi,
>
> i have a user control that sits on a webform page.
>
> how can the usercontrol get access to the attibutes of the
> <BODY> tag of the page that it is sitting in and modify the
> attributes? The <BODY> tag looks like this:
>
> <body id=bdBody runat="server">
>
> Protected WithEvents bdBody As
> System.Web.UI.HtmlControls.HtmlContainerControl
>
> effectively i want to know how i can access the bdBody variable from
> within the usercontrol.
>
> thnx.
>
> t.
>
>



 
Reply With Quote
 
 
 
 
Tariq Ahmad
Guest
Posts: n/a
 
      11-12-2003

works a treat!

thanks a lot.


"Teemu Keiski" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi,
>
> CType(Page.FindControl("bdBody"),HtmlContainerCont rol)
>
> --
> Teemu Keiski
> MCP, Microsoft MVP (ASP.NET), AspInsiders member
> ASP.NET Forum Moderator, AspAlliance Columnist
>
>
> "Tariq Ahmad" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > hi,
> >
> > i have a user control that sits on a webform page.
> >
> > how can the usercontrol get access to the attibutes of the
> > <BODY> tag of the page that it is sitting in and modify the
> > attributes? The <BODY> tag looks like this:
> >
> > <body id=bdBody runat="server">
> >
> > Protected WithEvents bdBody As
> > System.Web.UI.HtmlControls.HtmlContainerControl
> >
> > effectively i want to know how i can access the bdBody variable from
> > within the usercontrol.
> >
> > thnx.
> >
> > t.
> >
> >

>
>



 
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
container inside container in stl wolverine C++ 2 07-24-2006 03:08 PM
Copy elements from one STL container to another STL container Marko.Cain.23@gmail.com C++ 4 02-16-2006 05:03 PM
std::transform container => std::abs(container) Steven T. Hatton C++ 4 12-05-2004 07:10 AM
STL: container's values setup by another container Maitre Bart C++ 2 02-11-2004 12:11 AM
std::container::iterator vs std::container::pointer Vivi Orunitia C++ 11 02-04-2004 08:09 AM



Advertisments