79297872

Date: 2024-12-20 16:45:24
Score: 1
Natty:
Report link

Considering that your fileInfo.PhysicalPath; has backslashes, you would have to escape them fileInfo.PhysicalPath.Replace(@"\", @"\\"). You should now be able to access this in your Javascript code as @Html.Raw(Json.Serialize(@filePath)) or just plain '@filePath'.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: SoftwareDveloper