Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 12th, 2010, 03:05 AM
Registered User
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ho we give the path in the web.config????

hi
How i give path in the web.config file which is on server and page also in server so that i want to compare it for url werite

Thanks in advance
 
Old May 26th, 2010, 12:52 PM
Authorized User
 
Join Date: Nov 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What kind of path are you looking for?

To get a physical path on the server's file system you can use Server.MapPath
"The MapPath method maps the specified relative or virtual path to the corresponding physical directory on the server."
http://msdn.microsoft.com/en-us/libr...32(VS.90).aspx

To get the URL path you can use
HttpContext.Current.Request.Url.ToString();
http://msdn.microsoft.com/en-us/libr...st(VS.71).aspx

Or are you talking about some other path?

Last edited by fizzerchris; May 26th, 2010 at 05:28 PM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
App.Config and Web.Config conflict John.Burke ASP.NET 2.0 Professional 5 March 9th, 2010 11:51 AM
Problem sorting data to give svg path jamesdurham XSLT 38 March 16th, 2009 11:32 AM
web.config vs. app.config darlo Visual Studio 2005 11 August 20th, 2008 07:23 AM
how to store path in web.config appsettings sectio gbianchi ASP.NET 2.0 Professional 0 October 18th, 2006 12:37 PM
Variable Path in web.Config Connection String? ElPato General .NET 4 June 21st, 2004 05:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.