I'm trying to convert ASP into ASP.NET
In one include file, the ASP prepares a scripting dictionary of name value pairs and populates it something like this...
<%
Dim Settings
Set Settings = Server.CreateObject("Scrip
ting.Dicti
onary")
Settings.Add cStr("AA"), cLng(10)
Settings.Add cStr("BB"), cLng(24)
%>
In the ASP file, an inline dynamic style is built using values from the Dictionary built above.
<style type="text/css">
#header a {
color: #D2DCF3;
font-size:<%=Settings("AA"
)%>;
}
</style>
OK ... this works in ASP. But, in .NET how would I accomplish something similar? Specifically, building an inline style definition with values gotten elsewhere?
Start Free Trial