/cdn/css/i...">

Problem with title section link tags

I used this (with head runat)

<link href="https://<%= AppSettingBase.AppSetting("CdnDomain")%>/cdn/css/iebutton.css" rel="stylesheet" type="text/css" />

it displayed correctly

<link href="https://cdn.mydomain.com/cdn/Content/css/iebutton.css" rel="stylesheet" type="text/css" />

now i use (with head runat)

<link href="https://<%= UIAppSetting.CdnDomain%>/cdn/css/iebutton.css" rel="stylesheet" type="text/css" />

it does the wrong thing, but without a head runat it works fine

<link href="https://&lt;%= UIAppSetting.CdnDomain%>/cdn/css/iebutton.css" rel="stylesheet" type="text/css" />

What is the difference between the two, how can I solve it?

Edit

UIAppSettingis a class and CdnDomainis a static property, and I added a namespace in web.config

+3
source share
3 answers

Finally, I solved my problem, but this is not very good. especially thanks to themarcuz , he tried well for me.

<link <% Response.Write("href='https://" + UIAppSetting.CdnDomain +"/cdn/css/iebutton.css'");%> rel="stylesheet" type="text/css" />
0
source

( ) , <%= %> runat="server", head. , .

, ,

<link href="https://<%= AppSettingBase.AppSetting("CdnDomain")%>/cdn/css/iebutton.css" rel="stylesheet" type="text/css" />
0

- ,

,

<link href=" blah blah " />

<link href=' blah blah ' />

, , , , . ( , , Eval)

0

All Articles