如何将管理员登录名重定向到另一个页面. [英] how to redirect admin login to another page..

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

问题描述

我想将我的管理员重定向到数据网格视图的网页
请给我一些代码
我在等
谢谢

i want to redirect my admin to the webpage of data grid view
plz give me some code for that
m waiting
thank you

推荐答案


最简单的方法是使用此方法:
Hi,
The easiest way is to use this:
if (HttpContext.Current.User.Identity.Name=="admin")
   Response.Redirect(...)


您可以在Login.aspx页面的Load事件中编写此代码.

欢呼


You can write this code in your Login.aspx page Load event.

Cheers


在您的登录代码后,只需键入Response.redirect代码,并将其指向登录后要获取的页面

感想
after your login code just type Response.redirect code and point it to the page which you wanted to get after login

Thnaks


这篇关于如何将管理员登录名重定向到另一个页面.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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