重置密码按钮 [英] Reset Password button

查看:92
本文介绍了重置密码按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设计了一个用于更改密码的html表单。当在asp.net页面上单击链接并且数据库在sql-server 2008时,弹出这个表单。我可以更新密码吗?



请帮帮我!!!!



这是我的表格设计。我希望当用户点击更改密码按钮时,数据库中的密码更改值。



i have design a html form for changing password.This form pop up when a link is clicked on asp.net page and the database is in sql-server 2008.how can i update the password?

pls help me!!!!

This is my design for the form. I want that when user click on change password button the value of password change in the database.

<a href="#login-box-Change" popup-id="pop1" class="login-window" style="color:#558ED5">Change Password</a>
                           <div id="login-box-Change" class="login-popup">
                                <a href="#" class="close"><img src="image/close.jpg" width="20" height="20"  class="btn_close" title="Close Window" alt="Close" /></a>
                                  <form method="post" class="signin" action="#">
                                        <fieldset class="textbox">
                                        <label class="username">
                                        Old Password:
                                        <input id="oldp" name="oldp" value="" style="background-color:Gray; width=150px;"  type="text" autocomplete="on">
                                        </label><br /><br />
                                        <label class="username">
                                        New Password:
                                        <input id="newp" name="newp" value="" style="background-color:Gray; width=150px;"  type="text" autocomplete="on">
                                        </label><br /><br />
                                        <center>
                                        <button class="submit button" type="button" style="height: 25px; width: 135px">Change Password</button>
                                        </center>
                                        </fieldset>
                                 </form>
                             </div>

推荐答案





根据我的理解..



你好d。从sql数据库中激活sql查询以更新密码。



你可以使用下面的代码行设置你密码的先前值。



txtpassword.attributes.add(价值,密码);



如果您对此满意,请告诉我或你想要别的东西。



谢谢

Vipul Patel
Hi,

As per my understanding..

You need to fire sql queries to update password from sql database.

and you can set previous value of your password using below line of code.

txtpassword.attributes.add("Value", "password");

Let me know if you are satisfied with this or you want something else.

Thanks
Vipul Patel


嗨!...



如果你想更新密码,那么你必须在SQL中运行UPDATE Query ...



like



更新表名设置密码= @ PASSWORD其中column1 = @ column(供参考......)



......
Hi!...

If u want to update your password then you have to Run UPDATE Query in SQL...

like

Update Tablename Set Password=@PASSWORD Where column1=@column (for reference...)

......


1。首先为linkbutton附加一个事件来打开弹出窗口



示例:

link .Attributes.Add(onClick, javaScript:Openwindow());





2.如果有任何请求提示问题有效,请调用中间层逻辑来更新Db表



您可以参考以下链接



http://www.asp.net/web-forms/tutorials/security/admin/recovering-and- changing-passwords-cs [ ^ ]



http://msdn.microsoft.com/en-us/library/d90zte4w.aspx [ ^ ]
1. First of all attach a event for linkbutton to open the popup window

Example:
link .Attributes.Add("onClick","javaScript:Openwindow()");


2. If any ask for hint question if valid call the Middle tier logic to update the Db table

You can refer the below link

http://www.asp.net/web-forms/tutorials/security/admin/recovering-and-changing-passwords-cs[^]

http://msdn.microsoft.com/en-us/library/d90zte4w.aspx[^]


这篇关于重置密码按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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