Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

how to get current path
adductdev
#1 Posted : Wednesday, February 28, 2007 12:44:50 AM(UTC)
Groups: Member
Joined: 2/26/2007(UTC)
Posts: 2

I´ve tried code like Server.mappath("") but that result in an empty string?
Ultidev Team
#2 Posted : Wednesday, February 28, 2007 5:48:58 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi,

we can't seem to reproduce the issue.
Code:
protected void Page_Load(object sender, EventArgs e)
{
this.Response.Write(string.Format("Path:</br>{0} <br/>", this.Server.MapPath("")));
}

returns
Code:
C:\Documents and Settings\TestUser\My Documents\Visual Studio Projects\!QuickTests\WebApp_not_site\WebApp_not_site


Could you please provide exact snippet of the code you use?

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.