想要在asp点网中的web.config文件中对多个标签进行身份验证 [英] want to multiple tag for authantication in web.config file in asp dot net

查看:66
本文介绍了想要在asp点网中的web.config文件中对多个标签进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要放置多个< form>用于我的管理面板身份验证的标签.所以我该如何放入web.config文件.
实际上,我在我的网站上有两个管理面板,因此当我打开其中的任何一个时,它总是需要一个登录页面.

等待答复....



谢谢您.

i wan to need to put multiple <form> tag for the authantication for my adminpanel. so how can i put in web.config file.
actuly i have two admin panel in my website so when i open any of that it always need a login page.

waiting for reply....



thank you

推荐答案

我了解的是,U为Ur网站提供2个管理面板,并且根据用户呼叫U需要向他/她显示相应的登录名页面.

首先,我想说的是,web.config文件中不能有两个表单标签用于身份验证设置.

你能做的是一个把戏,

1.创建一个没有任何布局的通用页面,仅代码文件就足够了.此页面将用作两个登录面板之间的网关.

2.在上述页面中编写逻辑,以将用户重定向到正确的登录页面.

3.在标记中,将登录URL指向上述通用登录页面.

如果上述解决方案可以解决您的问题,请标记为答案.
What I understand is that, U have 2 admin panels for Ur website, and depending upon the user call U need to show him/her the corresponding login page.

Firstly, I want to say U cann''t have two form tag in web.config file for authentication setting.

What U can do is a trick,

1. Create a generic page without any layout, just the code file will suffice. This page will serve as a gateway between two login panels.

2. Write a logic in the above stated page to redirect the user to the proper login page.

3. In the tag, put the login URL pointing to the above stated generic login page.

If the above solution solves your problem please mark as answer.


这篇关于想要在asp点网中的web.config文件中对多个标签进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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