ERROR IN ADDING MEDIA PLAYER BY WEB MATRIX
Last post Mar 21, 2011 06:02 AM by simtan
Mar 18, 2011 12:37 PM|kankit18|LINK
I get an compilation error when i try to add a media player to my Website with cshtml page
The error msg is ' Compiler
Error Message: CS1009: Unrecognized escape sequenc ' in the line
Line 10: path: "Media\sample.wmv"
Mar 18, 2011 09:50 PM|simtan|LINK
The "\" character escapes the next character in a string. To prevent that from happening, have it escape itself, like so:
For other ASP.NET related questions, I would suggest checking out the
ASP.NET forums. Hope this helps!
Mar 19, 2011 01:57 AM|kankit18|LINK
Mar 19, 2011 02:00 AM|kankit18|LINK
Mar 21, 2011 06:02 AM|simtan|LINK
You might want to try reading this tutorial for ASP.NET Web Pages, called "Working with Files":
You can generally refer to files inside your website by starting with Server.MapPath("~/FILE_PATH_HERE"); in your ASP.NET code. Hope that helps!