Results 1 to 5 of 5

Thread: Password with Installer class

  1. #1
    Join Date
    Nov 2009
    Posts
    53

    Password with Installer class

    Hi there,

    Here i am once again with the another query. I am having problem regarding set up. I added the text box to use with the password in user interface. The dialog contain two text boxes one is for the password and another for the confirmation of the same. Now the problem is how to check password that password are same or it is different from each other. If the password is not same then a message will pass to the user or continue with the process..

    Thanks in advance......

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Password with Installer class

    Hey dude,

    Its not big issue to resolve your query because i have the same problem some days before and i sorted out the same with the help of knowledge gained from some of the forum. All you need to do is to compare both the text boxes with each other. If it is matched then the process will continue and if its not then stop the process till the time user does not type the both the password exactly same.
    Code:
    if (textbox1.Text == textbox2.Text)
        {//start set up}
    else
        {//stop set up}

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Password with Installer class

    Hey,

    I am not getting you properly but still i am posting this reply and i am sure that your are looking for the same. You have two textbox on the user interface to display the password detail. So do one this bind the SelectedIndexChanged event and check the box SelectedItem count. Make sure it does not have zero value. If the value is one then display password is confirmed and if it not then display the 2nd text box with error.

    Thank you

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Password with Installer class

    Hi there,

    I am having the same issue which i sorted out with some of the method which i am discussing with you i hope you will like the idea. For validating the text boxes you need RequiredFieldValidator or instead of that CustomVadlidator. The CustomVadlidator are useful when one of the text box is not empty to validate the textbox

    Say thanks if you like the idea

  5. #5
    Join Date
    May 2008
    Posts
    2,012

    Re: Password with Installer class

    Even i have some thing to share with you. below is the code to compare the two text boxes. All you need to do is to use this control in you program to compare the two text box. It will definitely help you to resolve you problem.

    All the best

    Code:
     ControlToValidate="Enter first text box ID "
     ControlToCompare="Enter second text box ID"

Similar Threads

  1. Replies: 4
    Last Post: 12-01-2012, 10:31 PM
  2. Replies: 8
    Last Post: 08-10-2011, 11:06 PM
  3. Getting Username and Password with New java.io.Console Class
    By Cody in forum Software Development
    Replies: 1
    Last Post: 30-12-2008, 06:29 PM
  4. Good news for CBSE CLASS X & CLASS IX - visit learnnext
    By surya_expert in forum Education Career and Job Discussions
    Replies: 0
    Last Post: 13-12-2008, 12:09 PM
  5. Replies: 2
    Last Post: 06-11-2006, 10:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,290,075.11231 seconds with 17 queries