作者:直属17262676 | 来源:互联网 | 2024-10-13 16:16
IsitpossibletousethestandardASP.NETlogincontrol,butjustasktheuserforapassword?Iam
Is it possible to use the standard ASP.NET login control, but just ask the user for a password? I am using a template, but the runtime complains that;
是否可以使用标准的ASP.NET登录控件,但只是要求用户输入密码?我正在使用模板,但运行时抱怨说;
Login1: LayoutTemplate does not contain an IEditableTextControl with ID UserName for the username.
My current thinking, is to add the control with
which seems lame. The existing project already uses FormsAuthentication, so plan B might be to roll my own Authentication method.
我目前的想法是用style =“display:none;”添加控件。这似乎很蹩脚。现有项目已经使用FormsAuthentication,因此计划B可能是我自己的身份验证方法。
Update
I have a 2 step login process. Step 1: "Who are you?" and Step 2: "What is your password?"
更新我有两步登录过程。第1步:“你是谁?”和第2步:“你的密码是什么?”
4 个解决方案