重定向前的身份验证 [英] Authentication before redirect

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

问题描述

所以基本上我要从一个页面重定向到另一个页面。我在ASP.Net页面上有这个按钮。当我重定向它时,在显示页面之前要求提供凭据。

我想硬编码凭证。

这是我试图重定向到的页面: http://202.125.155.245/cgi/nhWeb?func=viewFrame& amp; rptUrl = / users / admin / glance / Site_C-NOC_H9-SH-enet-port-3_2013_02_27_16_10_22_324 / main.html [ ^ ]

So basically I am going for a redirection from a page to another. I have this button on an ASP.Net Page. When I redirect it asks for credentials before showing the page.
I want to hardcode the credentials.
This is the page I am trying to redirect to: "http://202.125.155.245/cgi/nhWeb?func=viewFrame&rptUrl=/users/admin/glance/Site_C-NOC_H9-SH-enet-port-3_2013_02_27_16_10_22_324/main.html[^]"

推荐答案

你可以参考这两个链接



如何:实现简单表单身份验证



ASP.NET登录控件概述



你可以设置您的页面,以便只有经过身份验证的用户才能访问它。
You can refer to these two links

How to: Implement Simple Forms Authentication

ASP.NET Login Controls Overview

You can set your page such that only authenticated users can access it.


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

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