I want to update the password without making the user enter his username or emailid as the user will already be logged in.
So in the following code snippet of my webmethod, if i don’t wanna use emailid=@emailid at where clause,
where shud i add the code with the logic change password only at the emailid1 and not at emailid 2 if both emailids have same passwords? Thanks.
string update = "update client set pwd=@newpass where pwd=@oldpass";
If the user is already logged in you should have the email in some variable.
And you can use this variable in your updatestring.
So the user dont need to type his email again.