sachi vasishta

sachi vasishta

  • NA
  • 252
  • 0

problem while returning to a home page

Nov 12 2009 5:08 AM
Hi,

In a webform I have four textboxes and two dropdownlists and for all these I have used requiredfieldValidator. I have two buttons "Add" and "Return". The Add button adds the values of textboxes and ddlist  to the database. The Return button takes control back to the home page. My problem is when all the textboxes and dropdownlist fields are empty if I click Return button then it wont take back to the home page as all fields are empty, but if the textboxes and ddlist are filled with some values then it moves back to the home page. how to overcome this?

Thanks

Answers (5)