COMP 211: Introduction To Software Engineering
COMP 211: Introduction To Software Engineering
Page 1 of 3
1
2
You may need to first close the Default.aspx web form in order to be able to rename it.
Note that you must use the ID names exactly as given for the code to work correctly.
Page 2 of 3
ACTIVITY CHALLENGE
Add a custom validation control to the web form whose purpose is to ensure that the login name is a
palindrome, which is a string that is equal to its own reverse. While it is tempting to use a
RegularExpressionValidator control to validate this constraint, you will soon discover that it is impossible to
write a regular expression to make sure a string is equal to its reverse.
Hint: In Visual Basic, for example, there is a function named StrReverse().
Page 3 of 3