A Smith
A Smith

Reputation: 251

How to reference a xslt stored in your project folder on as asp.net page

I have my xslt's stored in a folder in my asp.net web application project folder.

Is there anyway i can call this style sheet from an asp.net web page?

Upvotes: 0

Views: 250

Answers (1)

Adrian Iftode
Adrian Iftode

Reputation: 15663

var fullPath = HttpContext.Current.Server.MapPath("~/Details.xsl")

File.ReadAllText(fullPath)

VB .Net

Dim fullPath = HttContext.Server.MapPath("~/Details.xsl")

File.ReadAllText(fullPath)

Upvotes: 1

Related Questions