Click here to Skip to main content
15,900,589 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Retrieve Unbound column cell data?? Pin
ToddHileHoffer12-Feb-09 8:54
ToddHileHoffer12-Feb-09 8:54 
GeneralRe: Retrieve Unbound column cell data?? Pin
innocent7312-Feb-09 9:02
innocent7312-Feb-09 9:02 
GeneralRe: Retrieve Unbound column cell data?? Pin
ToddHileHoffer12-Feb-09 9:26
ToddHileHoffer12-Feb-09 9:26 
QuestionFileUpload Control getting null in [Ajax.AjaxMethod] Pin
DineshSharmain12-Feb-09 3:28
DineshSharmain12-Feb-09 3:28 
QuestionHow to call exe from asp.net website page? Pin
Raheem MA12-Feb-09 1:06
Raheem MA12-Feb-09 1:06 
AnswerRe: How to call exe from asp.net website page? Pin
Paddy Boyd12-Feb-09 1:58
Paddy Boyd12-Feb-09 1:58 
AnswerRe: How to call exe from asp.net website page? Pin
J4amieC12-Feb-09 2:26
J4amieC12-Feb-09 2:26 
QuestionProblem with the Login Control Pin
Vimalsoft(Pty) Ltd12-Feb-09 0:54
professionalVimalsoft(Pty) Ltd12-Feb-09 0:54 
Good Afternoon All

In all my Application, i used to write my login screen and i will not have a problem. i have inherited the ASP.NET Application that uses a login control.
Below are the pics of how it looks

here is a code for Forget Password link

protected void btnForgot_Click(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {

            PasswordRecovery1.Focus();

            multiviewLogin.ActiveViewIndex = 1;

            if (Login1.UserName != "")
            {
                PasswordRecovery1.UserName = Login1.UserName;
            }
        }
    }


and for Change Password code

protected void btnChangePassword_Click(object sender, EventArgs e)
 {
     ChangePassword1.Visible = true;
     if (Login1.UserName != "")
     {
         PasswordRecovery1.UserName = Login1.UserName;
     }

 }


Now my Problem is that when a user enters a username and password that are correct, and Click the "Forgot Password" button , it logged teh user in the system. It is doing the same thing as the "Change Password". But if i Crear the Username and Password textbox in the Login control it goes to the right place. So i have tried to crear them when the "Forgot Password Button is clicked and set them to empty strings, well for username its working, but for password i get an error that says the property is a Readonly

i tried to do them like this

if (!Page.IsPostBack)
        {
            /*Vuyiswa Added this to Prevent the Page from Bypassing the Login screen.
             * This was a bug Reporeted by University of freestate*/
            if (Login1.UserName != "")
            {

                Login1.UserName = "";

                Login1.Password = "";
            }
            PasswordRecovery1.Focus();

            multiviewLogin.ActiveViewIndex = 1;

            if (Login1.UserName != "")
            {
                PasswordRecovery1.UserName = Login1.UserName;
            }




http://www.vbforums.com/attachment.php?attachmentid=69035&stc=1&d=1234438104[^]

What is the Problem

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za


QuestionPlaying Videos using XML Pin
.NET- India 12-Feb-09 0:25
.NET- India 12-Feb-09 0:25 
QuestionMail Pin
kavinnagarajan12-Feb-09 0:14
kavinnagarajan12-Feb-09 0:14 
AnswerRe: Mail Pin
Satish Mahapatra12-Feb-09 1:31
Satish Mahapatra12-Feb-09 1:31 
QuestionProblem in CR of asp.net 2.0 Pin
BalasubramanianK11-Feb-09 23:47
BalasubramanianK11-Feb-09 23:47 
QuestionCS1010: Newline in constant error Pin
radupopescu77711-Feb-09 22:42
radupopescu77711-Feb-09 22:42 
AnswerRe: CS1010: Newline in constant error Pin
Rutvik Dave12-Feb-09 9:09
professionalRutvik Dave12-Feb-09 9:09 
QuestionReading and Writing(updating) a text file Pin
MS Lee11-Feb-09 22:37
MS Lee11-Feb-09 22:37 
AnswerRe: Reading and Writing(updating) a text file Pin
www.Developerof.NET11-Feb-09 23:21
www.Developerof.NET11-Feb-09 23:21 
Questionproxy for WCF service [modified] Pin
Member 398136611-Feb-09 22:21
Member 398136611-Feb-09 22:21 
QuestionSession Problem [modified] Pin
papy-boom11-Feb-09 22:19
papy-boom11-Feb-09 22:19 
AnswerRe: Session Problem Pin
Chetan Patel11-Feb-09 22:36
Chetan Patel11-Feb-09 22:36 
GeneralRe: Session Problem Pin
papy-boom11-Feb-09 22:48
papy-boom11-Feb-09 22:48 
AnswerRe: Session Problem Pin
Expert Coming12-Feb-09 0:15
Expert Coming12-Feb-09 0:15 
QuestionDeletion in Repeater? Pin
Karthick_gc11-Feb-09 21:44
Karthick_gc11-Feb-09 21:44 
AnswerRe: Deletion in Repeater? Pin
N a v a n e e t h11-Feb-09 21:51
N a v a n e e t h11-Feb-09 21:51 
AnswerRe: Deletion in Repeater? Pin
Satish Mahapatra11-Feb-09 22:12
Satish Mahapatra11-Feb-09 22:12 
GeneralRe: Deletion in Repeater? Pin
Karthick_gc11-Feb-09 22:30
Karthick_gc11-Feb-09 22:30 

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.