"/" missing from return of Server.MapPath

Hi,
I wanted to get a physical path of a folder in my local server and save it to the a database like this.

[italic]string path = HttpContext.Current.Server.MapPath("./App_Data/");[/italic]
but the return value is without back slashes. like this:
C:wwwrootApp_Data

I am expecting to get something like C:wwwrootApp_Data

Am I missing something? Why the "" is missing?

thanks.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories