请告诉我如何处理会员资格创建用户的错误 [英] Pls, tell me how to handle error in membership create user

查看:62
本文介绍了请告诉我如何处理会员资格创建用户的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如果我们通过会员创建用户创建注册页面,那么我们会收到许多错误,如密码长度,无效的emailid等。但是他们没有显示在创建用户页面而是我们无法创建用户。请帮助我如果你理解了这个问题。



Okk,抱歉没什么消息。我只是想问一下如何在成员资格创建用户页面中处理错误异常。当我调试代码时,我发现错误就像重复用户一样,密码长度不合适。



我尝试过:



还请告诉我如何为这个问题显示try catch方法。

I want to know if we create a registration page through membership create user then we have get many errors like password length, invalid emailid etc.But they are not shown in create user page instead we can not create user.Please help me if you understand the problem.

Okk, sorry for little information. I just wants to ask how to handle error exception in membership create user page. When I debugg the code that time I found error like duplicate user, password length is not suitable .

What I have tried:

Please also tell how to show try catch method for this problem.

推荐答案

说真的,添加我只是想知道如何处理会员资格创建用户页面中的错误异常。当我调试代码时,我发现错误就像重复用户一样,密码长度不合适。告诉我们你的代码!



但是......重复用户,密码长度不合适对我来说听起来不像错误 - 听起来像用户已经存在,因此,您不能再次使用相同的详细信息,并且您的密码与此网站所要求的规则不符这是向用户发出的通知,即他输入的内容是一个问题 - 这不是代码中必然存在的问题。



如果你的代码每次都报告这个,那么只有你能说出原因 - 你需要在运行时(在调试器下)和你的数据源访问这两个代码我们都没有!



使用调试器:看看它告诉你的内容,如有必要,请告诉我们相关的代码片段,并解释调试器显示的内容什么输入。



我们不能为你做任何事情!
Seriously, adding "I just wants to ask how to handle error exception in membership create user page. When I debugg the code that time I found error like duplicate user, password length is not suitable ." tells us nothing about your code!

But ... "duplicate user, password length is not suitable" don't sound like "errors" to me - they sound like "the user already exists, so you can't use the same details again", and "your password doesn't match the rules that this site requires" which are notifications to the user that what he input is a problem - not a problem necessarily in your code.

If your code is reporting this every time, then only you can tell why - you need access to both the code while running (under the debugger) and your data source, neither of which we have!

Use the debugger: see what it tells you, and if necessary show us the relevant code fragments and explain what the debugger showed was happening for what inputs.

We can't do any of that for you!


这篇关于请告诉我如何处理会员资格创建用户的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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