Advertisement

03.10.2008 at 04:05PM PDT, ID: 23230273
[x]
Attachment Details

How to duplicate ASP-like functionality in ASP.NET

Asked by volking in Programming for ASP.NET

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("Scripting.Dictionary")
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
[+][-]03.10.2008 at 04:11PM PDT, ID: 21091438

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.10.2008 at 04:20PM PDT, ID: 21091478

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.11.2008 at 02:38PM PDT, ID: 21100652

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Programming for ASP.NET
Sign Up Now!
Solution Provided By: vavjeeva
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.11.2008 at 10:07PM PDT, ID: 21103181

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628