Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: ExpandTemplate Rendering with includes

$
0
0
Re: ExpandTemplate Rendering with includes
Web Connection
Re: ExpandTemplate Rendering with includes
Jan. 3, 2013
12:33 am
3OM016RSPShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Joy Tan
Hi Joy,

No that won't work. Server side includes are handled by IIS for certain extensions only and the parsers need to understand that syntax. Web Connection does not.

You don't need it though. You can just use:

<%= FileToStr(Process.ResolveUrl("~/myfile.html")) %>

which should produce the same result.

+++ Rick ---


Hi Rick,

Happy New Year!

Just a quick question concerning Response.ExpandTemplate, if I wanted to have server side includes such as <!-- #include file="myfile.html" -->

Will this work? I couldn't get it to work so I assume it renders directly with IIS7.5 and doesn't allow IIS to process this?

Thanks,Joy


Rick Strahl
West Wind Technologies

Making waves on the Web

from Maui, Hawaii

Viewing all articles
Browse latest Browse all 10393

Trending Articles