On Fri, Aug 20, 2010 at 2:47 PM, Arjang Assadi <[email protected]> wrote:
> I have two identical lines:
> 1)
> <link href='<%=
> ResolveClientUrl("~/jquery/css/smoothness/jquery-ui-1.8.4.custom.css")
> %>' rel="stylesheet" type="text/css" />
> 2)
> <script src='<%= ResolveClientUrl("~/jquery/js/jquery-1.4.2.min.js")
> %>' type="text/javascript"></script>
>
> they rendered as :
> 1)
> <link src="&lt;%=
> ResolveClientUrl(&quot;~/jquery/css/smoothness/jquery-ui-1.8.4.custom.css&quot;)
> %>" rel="stylesheet" type="text/css" /></link>
> 2)
>    <script src='../jquery/js/jquery-1.4.2.min.js'
> type="text/javascript"></script>
>
> My only comclusion is that the first line is being htmlencoded ! is
> that correct? and if yes, then how can it be stopped ?

No, your conclusion is not correct. The lines aren't as identical as
you think. The context also matters. Try these two lines side by side
in a standalone project (I just did; they work).

Check the context that you are writing them in.


> Regards
>
> Arjang

-- 
silky

http://dnoondt.wordpress.com/

"Every morning when I wake up, I experience an exquisite joy — the joy
of being this signature."

Reply via email to