Click here to Skip to main content
14,689,403 members
Home » Discussions » ASP.NET
   

ASP.NET

 
QuestionFiltering the data in GridView using Linq query without DataBase in VB.NET Pin
Member 1368202316-Feb-18 10:27
MemberMember 1368202316-Feb-18 10:27 
QuestionRe: Filtering the data in GridView using Linq query without DataBase in VB.NET Pin
Maciej Los17-Feb-18 3:51
mveMaciej Los17-Feb-18 3:51 
QuestionHow browser cache web site pages Pin
Mou_kol16-Feb-18 2:40
MemberMou_kol16-Feb-18 2:40 
Questionwhat is advantage of loading js file from CDN Pin
Mou_kol16-Feb-18 2:38
MemberMou_kol16-Feb-18 2:38 
QuestionPls Provide me business logic method for reset password or forget password by user id... Pin
Member 1367430012-Feb-18 5:01
MemberMember 1367430012-Feb-18 5:01 
AnswerRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
OriginalGriff12-Feb-18 5:03
mveOriginalGriff12-Feb-18 5:03 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Member 1367430012-Feb-18 5:28
MemberMember 1367430012-Feb-18 5:28 
AnswerRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Mukthahar Shaik12-Feb-18 8:47
MemberMukthahar Shaik12-Feb-18 8:47 
in order to reset password you have to give email link or else you can give direct web page link. before reset password. you should take email address from the user. so you can use in where clause. see my code:

      protected void save_Click(object sender, EventArgs e)
    {
        if (password.Text != "" || confirmpassword.Text != "")
        {
            if (password.Text == confirmpassword.Text)
            {
                con.Open();
                SqlCommand cmd = new SqlCommand("update login set password='" + password.Text + "', confirmpassword='" + confirmpassword.Text + "' where email='" + Session["email"] + "'", con);
                cmd.ExecuteNonQuery();
                con.Close();
                Label1.Text = "Password Reset Successfully";
                HtmlMeta meta = new HtmlMeta();
                meta.HttpEquiv = "Refresh";
                meta.Content = "5;url=loginuser.aspx";
                this.Page.Controls.Add(meta);
            }
            else
                Label1.Text = "Password not Matched";
        }
        else
            Label1.Text="Please Enter Password";
    }
 

ask email or username. then display password reset webpage. use email or username in where clause to update password.

if you want id then use sql query like 

select id from userDetails where email=session["email"];

i hope you will understand.

GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Member 1367430012-Feb-18 8:58
MemberMember 1367430012-Feb-18 8:58 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Mukthahar Shaik12-Feb-18 9:11
MemberMukthahar Shaik12-Feb-18 9:11 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Richard MacCutchan12-Feb-18 9:31
mveRichard MacCutchan12-Feb-18 9:31 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Mukthahar Shaik12-Feb-18 9:48
MemberMukthahar Shaik12-Feb-18 9:48 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Richard MacCutchan12-Feb-18 10:00
mveRichard MacCutchan12-Feb-18 10:00 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Member 1367430012-Feb-18 19:45
MemberMember 1367430012-Feb-18 19:45 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Richard MacCutchan12-Feb-18 9:30
mveRichard MacCutchan12-Feb-18 9:30 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Pete O'Hanlon12-Feb-18 9:47
subeditorPete O'Hanlon12-Feb-18 9:47 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Richard Deeming12-Feb-18 10:02
mveRichard Deeming12-Feb-18 10:02 
AnswerRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Richard Deeming12-Feb-18 10:02
mveRichard Deeming12-Feb-18 10:02 
QuestionASP.Net MVC facing difficulties to pass tabular data to action Pin
Mou_kol12-Feb-18 2:49
MemberMou_kol12-Feb-18 2:49 
QuestionVisual Studio Editor Window Space Rapidly Pin
Priyanka Kale11-Feb-18 22:02
MemberPriyanka Kale11-Feb-18 22:02 
AnswerRe: Visual Studio Editor Window Space Rapidly Pin
A_Griffin12-Feb-18 3:42
MemberA_Griffin12-Feb-18 3:42 
QuestionEntity Framework: How to pass column name dynamically to where clause Pin
Mou_kol10-Feb-18 10:05
MemberMou_kol10-Feb-18 10:05 
AnswerRe: Entity Framework: How to pass column name dynamically to where clause Pin
Maciej Los11-Feb-18 1:37
mveMaciej Los11-Feb-18 1:37 
PraiseRe: Entity Framework: How to pass column name dynamically to where clause Pin
Mou_kol11-Feb-18 8:42
MemberMou_kol11-Feb-18 8:42 
GeneralRe: Entity Framework: How to pass column name dynamically to where clause Pin
Maciej Los11-Feb-18 9:23
mveMaciej Los11-Feb-18 9:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.