大家好我还有另一个问题.我需要的是:我需要配置用户运行的Web应用程序,当用户输入应用程序时,立即切换到Login.aspx. 因此,我有与该应用程序关联的数据库(我不使用由应用程序自动分配的数据库).当应用程序运行时,我想切换到Login.aspx. 为了更好地理解我要说的内容,我将放置一些页面的代码. 这是我的web.config文件 ---------------------------------
Hi guys. I have another problem. What I need is this: I need to configure my web application running by the user, when the user enter the application, immediately switch to Login.aspx. So I have my database (I do not use a database that are automatically assigned by the application) that is associated with the application. When the application running, I want to switch to Login.aspx. In order to better understand what I want to say, I will put the code of some pages. This is my web.config file ---------------------------------
<?xml version="1.0" encoding="UTF-8"?> <!-- For more information on how to configure your ASP.NET application, please visit go.microsoft/fwlink/?LinkId=169433 --> <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> <pages theme="Style"> </pages> </system.web> <connectionStrings> <add name="myConn" connectionString="server = myServer; database = myDatabase; Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> </configuration>-------------------------------------------------- -------------------------- 再一次让我重复一遍.当用户运行应用程序时,我希望自动转移到Login.aspx页面,而不是Default.aspx
---------------------------------------------------------------------------- Once again let me repeat. When the user runs the application, I want to be automatically transferred to Login.aspx page, not the Default.aspx
推荐答案<configuration> <system.webserver> <defaultdocument enabled="true"> <files> <add value="login.aspx" /> </files> </defaultdocument> </system.webserver> </configuration>
仅供参考默认文档< defaultDocument>
FYI Default Document <defaultDocument>
更多推荐
自动重定向到Login.aspx
发布评论