Reputation: 251
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
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