c# - Find the URL of an application -


i working on asp.net c# application.

i wish find url of application. example, application nrcme want return http://localhost:4833/nrcme/ when running locally. server want return

http://servername/nrcme/

you can find information url in request.url. include file name default can remove this:

request.url.absoluteuri.replace(request.url.localpath, "") 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -