views:

121

answers:

1

I have a form that I need the user to be able to type something in a textbox, after they tab out have them enter in the same value in another textbox in proximity to it to assure they entered it in correctly. After that the second textbox is to disappear and they will continue to the next field without ever having a postback.

Anyone have any recommendations on how to do this most efficiently? Is there a control that will facilitate this for me?

Thanks.

+1  A: 

You can do it by javascript easily. on the onblur or onchange clientside events you should check two textbox's values.

An alternative option : maybe you want to use CompareValidator to compare values of your form elements. Don't forget to set EnableClientScript=true and use ValidationSummary control.

Canavar