重定向到登录页面 [英] redirect to login page

查看:144
本文介绍了重定向到登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我通过模式弹出窗口向用户弹出错误消息.现在我想在单击ok时将用户重定向到登录页面.现在的问题是用户无法查看该消息,并且登录页面是显示;

In my application im poping up an error message to the users though modal popup.Now i want to redirect the user to login page upon clicking ok.the problem now is that the user gets no view of the message and login page is show;

if (sqlReader.HasRows)
           {
               ddlistschool.DataSource = sqlReader;
               ddlistschool.DataTextField = "College";
               ddlistschool.DataValueField = "College";
               ddlistschool.DataBind();

           }
           else
           {
               lbldisplay.Text = "Test";
               UpdatePanel2.Update();
               Unauthenticated_popup.Show();
               Response.Redirect("Login.aspx");


我只想在用户阅读了信息后将用户重定向到登录页面,然后在模式上单击确定".实现此目的的任何想法

谢谢


I only want to redirect the user to the login page after the user has read the meassage and click ok on the modal up..any ideas of achieving this

Thanks

推荐答案

将您的Response.Redirect重定向到OK按钮的Button Handler代码中.现在,您只是直接进行重定向,甚至没有给用户机会查看消息框.
Move your Response.Redirect into Button Handler code for the OK button. Right now you are simply redirecting directly without even giving the user a chance to see the message box.


这篇关于重定向到登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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