Validation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • grey15
    New Member
    • Sep 2007
    • 10

    Validation

    Hi
    I have asp.net page which stores info to text file. Now, i have to validate the data entered in the form to the info in the text file.e.g i have text field for first name, so i have to use first name and display message if that first name already exists in the text file.
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Originally posted by grey15
    Hi
    I have asp.net page which stores info to text file. Now, i have to validate the data entered in the form to the info in the text file.e.g i have text field for first name, so i have to use first name and display message if that first name already exists in the text file.
    I guess you are asking how to write this process. You will need to loop through your text file and search for the first name. If the name is found then break out of the loop and show an appropriate message. If the loop fully executes and the first name was not found then I assume you want to add it to the text file. I am sure there are many examples on how to do this so search for some examples and reply with a specific question if you get stuck on something.

    Nathan

    Comment

    • grey15
      New Member
      • Sep 2007
      • 10

      #3
      Originally posted by grey15
      Hi
      I have asp.net page which stores info to text file. Now, i have to validate the data entered in the form to the info in the text file.e.g i have text field for first name, so i have to use first name and display message if that first name already exists in the text file.
      thx very much 4 the help....

      Comment

      Working...