Ask a Question related to ASP.NET General, Design and Development.
-
Peter Licen #1
get head by tagname (from server control)
my server control generates part of page from codebehind. I get other part
from different source.
how can i get <head></head> (written inline on .aspx) from the
ControlCollection(.aspx.vb)? For example - i would like to insert metatags.
it looks getting it by ID(which i don't have) is the only possibillity (i
don't want to override rendering )
any idea(getting it by TagName maybe)?
thnx
Peter Licen Guest
-
Modify Head Tag from Custom Control.
Can I or how do I modify the Head Tag using a Custom Control. I've tried adding a Literal Control and setting it's "Text" property. I get access... -
Write into <HEAD></HEAD> section?
Is it possible to write into HEAD section, for example to write out a LINK tag? -
[PHP-DEV] [PHP-CVS] cvs: php-src / NEWS /ext/standard basic_functions.c head.c head.h
> As Andi might say: "Why not call this http_headers()?" :) As you can probably guess, my answer to your first question is your second... -
control to add <LINK> inside <HEAD>
Hi all, I'm building a custom control, which has a separate .css file with its stylesheet. I need to link to the stylesheet inside the page,... -
Injecting code into the <head></head> section
Hi All, I have a web user control that, among other things, provides Print this page, and Email this page functionality I have this script that... -
Steve C. Orr, MCSD #2
Re: get head by tagname (from server control)
If you add the runat='server' attribute to the header tags then you can
access them from your code behind.
Here's more info and a good example using the Title tag:
[url]http://www.aspalliance.com/kenc/faq5.aspx[/url]
Another option would be to turn the whole header section into a user
control. This gives you ultimate flexibility. Then you can output whatever
you want wherever you want within the header.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Peter Licen" <peter.licen@nps.si> wrote in message
news:eXKnn%239SDHA.2036@TK2MSFTNGP10.phx.gbl...part> my server control generates part of page from codebehind. I get othermetatags.> from different source.
> how can i get <head></head> (written inline on .aspx) from the
> ControlCollection(.aspx.vb)? For example - i would like to insert>
> it looks getting it by ID(which i don't have) is the only possibillity (i
> don't want to override rendering )
> any idea(getting it by TagName maybe)?
>
> thnx
>
>
Steve C. Orr, MCSD Guest
-
Peter Ličen #3
Re: get head by tagname (from server control)
thnx, but the problem is that i don't write the inline tags. I get them and
i have first to analyze them and, if nessesary, correct them.
otherways, attribute id is the best choise(it has all support from
codebehind)
sorry for the direct replay
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:O8zOdB%23SDHA.1320@TK2MSFTNGP12.phx.gbl...whatever> If you add the runat='server' attribute to the header tags then you can
> access them from your code behind.
> Here's more info and a good example using the Title tag:
> [url]http://www.aspalliance.com/kenc/faq5.aspx[/url]
>
> Another option would be to turn the whole header section into a user
> control. This gives you ultimate flexibility. Then you can output(i> you want wherever you want within the header.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "Peter Licen" <peter.licen@nps.si> wrote in message
> news:eXKnn%239SDHA.2036@TK2MSFTNGP10.phx.gbl...> part> > my server control generates part of page from codebehind. I get other> metatags.> > from different source.
> > how can i get <head></head> (written inline on .aspx) from the
> > ControlCollection(.aspx.vb)? For example - i would like to insert> >
> > it looks getting it by ID(which i don't have) is the only possibillity>> > don't want to override rendering )
> > any idea(getting it by TagName maybe)?
> >
> > thnx
> >
> >
>
Peter Ličen Guest
-
Steve C. Orr, MCSD #4
Re: get head by tagname (from server control)
Well then that boosts the second idea I mentioned, which is to make the
whole section a user (or custom) control. Then you can render whatever you
want.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Peter Ličen" <peter.licen@nps.si> wrote in message
news:ex9uaI%23SDHA.2036@TK2MSFTNGP10.phx.gbl...and> thnx, but the problem is that i don't write the inline tags. I get them> i have first to analyze them and, if nessesary, correct them.
> otherways, attribute id is the best choise(it has all support from
> codebehind)
>
> sorry for the direct replay
>
> "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> news:O8zOdB%23SDHA.1320@TK2MSFTNGP12.phx.gbl...> whatever> > If you add the runat='server' attribute to the header tags then you can
> > access them from your code behind.
> > Here's more info and a good example using the Title tag:
> > [url]http://www.aspalliance.com/kenc/faq5.aspx[/url]
> >
> > Another option would be to turn the whole header section into a user
> > control. This gives you ultimate flexibility. Then you can output> (i> > you want wherever you want within the header.
> >
> > --
> > I hope this helps,
> > Steve C. Orr, MCSD
> > [url]http://Steve.Orr.net[/url]
> >
> >
> > "Peter Licen" <peter.licen@nps.si> wrote in message
> > news:eXKnn%239SDHA.2036@TK2MSFTNGP10.phx.gbl...> > part> > > my server control generates part of page from codebehind. I get other> > metatags.> > > from different source.
> > > how can i get <head></head> (written inline on .aspx) from the
> > > ControlCollection(.aspx.vb)? For example - i would like to insert> > >
> > > it looks getting it by ID(which i don't have) is the only possibillity>> >> > > don't want to override rendering )
> > > any idea(getting it by TagName maybe)?
> > >
> > > thnx
> > >
> > >
> >
>
Steve C. Orr, MCSD Guest



Reply With Quote

