我的response.redirect无法正常工作 [英] my response.redirect does not work properly
本文介绍了我的response.redirect无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
i有一个页面。当我点击我在该页面中创建的按钮时,我想要转到其他页面(Account / loginsuccess.aspx)。但是当我点击时,浏览器显示第一页和url已更改为http://localhost/Account/login.aspx?/returnurl=%2fAccount%2fAccount%2floginsuccess.aspx,第一个网址是(http://localhost/Account/login.aspx),我使用了响应。在web.config文件中的按钮单击事件
hi i have a page.when i click on the button that i created in that page i want to going to other page(Account/loginsuccess.aspx).but when i click, browser show me first page and url has change to http://localhost/Account/login.aspx?/returnurl=%2fAccount%2fAccount%2floginsuccess.aspx and first url is (http://localhost/Account/login.aspx") and i use response.redirect(~/Account/loginsuccess.aspx) in button click event
推荐答案
中的重定向(〜/ Account / loginsuccess.aspx)启用..
检查你的web.config ..
in your web.config file authentication setting are enable ..
check your web.config for..
<system.web>
<authentication mode="Forms">
<forms forms="401kApp" loginUrl="/login.aspx" />
</authentication>
</system.web>
这篇关于我的response.redirect无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文