使用验证时出现问题Response.reDirect [英] Problem Response.reDirect when using Validation

查看:77
本文介绍了使用验证时出现问题Response.reDirect的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已解决问题的注销.我使用验证控件",文本框",按钮"作为登录页面.已将ControltoValidate设置为.母版页具有图像"按钮.我对单击事件使用了response.reDirect.但是我无法响应.reDirect当我在sigin.aspx中时

I have solved the problem logout.I use Validation Control,Textbox,Button for the sign in page.I have set ControltoValidate.The masterpage has Imagebutton.I use response.reDirect for click event.But I can''t response.reDirect when I''m in sigin.aspx

推荐答案

您是否将登录凭据保存在某些会话或cookie中,并在页面加载时读取相同的cookie或会话数据内页.

同样,如果您登录到一个应用程序并且正在遍历同一应用程序,则应使用server.transfer而不是response.redirect.

希望这可以帮助您解决问题

谢谢
阿米特·杜塔(Amit Dutta)
Are you saving the signin credentials in some session or cookie and reading the same cookie or session data on page load of inner page.

also if you are logging in to a application and if you are traversing the same application then you shoud use server.transfer instead of response.redirect.

Hope this will help you resolve your problem

thanks
Amit Dutta


这篇关于使用验证时出现问题Response.reDirect的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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