如何在Url中获取我的项目名称 [英] How Do I Get My Project Name In Url

查看:306
本文介绍了如何在Url中获取我的项目名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个名为PROJECT_APPLICATION的项目。但是当运行项目的页面时,URL显示http:// localhost:59757 / Result correction form.aspx我想在URL中输入我的项目名称59757.any body please help ....

i created a project named PROJECT_APPLICATION.but when running a page of the project the URL shows http://localhost:59757/Result correction form.aspx i want to get my project name in URL intstead 59757.any body please help....

推荐答案

你得到的是因为你正在使用Visual Studio内置的Web服务器。如果你想要一个更正常的URL,那么配置你的网站使用本地IIS(谷歌Visual Studio asp.net使用本地iis来看看它是如何,它根据你使用的版本而有所不同)。



然而,当人们使用你的网站时,无论如何它都会在某个地方的IIS服务器上,所以开发过程中网址是什么真的很重要?
You're getting that because you're using the web server built in to Visual Studio. If you want a more normal looking URL then configure your site to use the local IIS instead (google "Visual Studio asp.net use local iis" to see how, it differs depending on what version you use).

However when people use your site it will be on an IIS server somewhere anyway, so does it really matter what the url is during development?


这篇关于如何在Url中获取我的项目名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆