自动重定向到Login.aspx

编程入门 行业动态 更新时间:2024-10-26 06:34:11
本文介绍了自动重定向到Login.aspx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好我还有另一个问题.我需要的是:我需要配置用户运行的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

本文发布于:2023-11-10 00:36:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573877.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重定向   Login   aspx

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!