|
|
 |
RE: FN-FORUM: Asp.Net / C# HELP! P
date posted 9th January 2008 16:27
Thanks for all the suggestions guys!
Regards
Phill Healey
Munklefish
Po Box 70
Manchester
M34 3SQ
T: 0161 408 4759
=20
=EF=80=A0=EF=81=90 Please consider the environment before printing.
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Damon
Sent: 09 January 2008 17:15
To: FN-FORUM / [EMAIL REMOVED]
Subject: RE: FN-FORUM: Asp.Net / C# HELP! P
> Any c# / .Net folk out there who can give me a hand.
>=20
> I have a number of page menus using =
=C3=83=C2=A2=C3=A2=E2=80=9A=C2=AC=C3=8B=C5=93.js=C3=83=C2=A2=C3=A2=E2=80=9A=
=C2=AC=C3=A2=E2=80=9E=C2=A2 files. I need to
> programmatically add the appropriate file at a set location in the =
html,
> based on a given criteria.
>=20
> Can anyone offer some insight towards this? I recall using some c code
> that for this a long time ago., but can no longer find reference to =
this.
>=20
> Any help would be appreciated.
>=20
.Net 1.1 or 2.0
1.1 just use a asp:Literal and place the code there (even in the header)
If you are using 2.0 and want to dynamically add a ref to a js file in =
the header use
System.Web.UI.HtmlControls.HtmlGenericControl scpt =3D new =
HtmlGenericControl("script");
scpt.Attributes.Add("type", "text/javascript");
=20
Header.Controls.Add(scpt);
HTH
Damon
--=20
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|