asp.net 2010启动页面名称? [英] asp.net 2010 startup- page name?

查看:72
本文介绍了asp.net 2010启动页面名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



将Start Up-Page Name设为Default是否很重要或者我们可以有其他名称?



另外,一旦我在Windows级别发布项目,发布后我将获得MyProjectName.exe ...同样,如果我们在ASP.Net中发布该项目的文件扩展名是什么?



感谢指导...

Hi,
Is it important to have Start Up-Page Name as Default or we can have any other name?

Also, once I published a project in windows level, after publishing I will get MyProjectName.exe... Similarly if we publish the project in ASP.Net what will be file extension for it?

Thanks for the guidances...

推荐答案

您可以将任何页面设置为默认页面。

这可以完成IIS设置 http://technet.microsoft.com/en-us/library /cc753615(v=ws.10).aspx [ ^ ]



当您发布ASP.net Web应用程序时,您的源代码将转换为dll,保留你的页面名称在根目录中有扩展名。
You can set any page as default page.
This can be done IIS settings http://technet.microsoft.com/en-us/library/cc753615(v=ws.10).aspx[^]

When you publish ASP.net web application ,your source code gets converted to dlls,retaining your pages' name with extensions in root directory.


这有点重要,取决于是否y你是否可以控制IIS。 IIS中的标准设置是名为default.aspx的页面将是默认文档。这可以在IIS中更改。



有关详细信息:在IIS 7中配置默认​​文档 [ ^ ]
It is somewhat important, depending on whether you have control over IIS or not. The standard setting, in IIS, is that pages called default.aspx will be the default document. This can be changed in IIS.

For more info on that: Configuring Default Documents in IIS 7[^]


HI,



最佳做法是为启动页面设置默认名称。但是你可以改变它。

在Asp.net应用程序中发布你的代码时,没有什么比单个文件更好,但是它将包含你所有的aspx文件和其他图像,js,css等。主要是你应该知道它会创建一个dll扩展文件,这是在发布你的代码时需要的。





当你发布你的在iss上的代码,如果你的启动页面不是默认或登录,那么在iis中检查默认页面属性并添加你的启动页面。


Best practice is to set "Default" name for startup page. But you can change it.
In Asp.net application when you publish your code, there is nothing like a single file, but it will have all your aspx files and other images,js,css etc. Mainly you should know is that it will create one dll extension file, which is needed while publishing your code.


When you publish your code on iss, and if your startup page is not Default or login, then in iis check Default Page property and add your startup page.


这篇关于asp.net 2010启动页面名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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