Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Settings LINKS or Scripts with a Variable

Status
Not open for further replies.

LenardD

Programmer
Dec 1, 2002
35
0
0
CA
Does ASP.NET have a way to set LINKS or SCRIPT tags through a variable?:

For example, from:

<head>
<LINK href=&quot;../../Styles/Master.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot;>
<script src=&quot;../../Scripts/Common.js&quot; type=&quot;text/javascript&quot;></script>
</head>

To:

<head>
<LINK href=@MasterStyles type=&quot;text/css&quot; rel=&quot;stylesheet&quot;>
<SCRIPT src=@CommonScript type=&quot;text/javascript&quot;></script>
</head>


@MasterStyle and @CommonScript would be variables defined in the code-behind.

Thanks.

--Lenard


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top