Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Required Field Validators??? 1

Status
Not open for further replies.

jmeckley

Programmer
Jul 15, 2002
5,269
US
I have a web form with the following objects:[tt]
text box
calendar object
required field validator on text box(rfv)
Cancel link (HTML)
Calendar link button
Next link button[/tt]

before I added the RFV all the links worked as they were suppose to. The calendar link button will set the calendar object to visible so the user can select a date. The Next link button would process the data entered on the screnn. I added the rfv and added the [tt]page.isvalid[/tt] code to my Next link button. (error check for information). Now when I click the calendar link button the RFV executes and will not display the calendar object.

why is the RFV executing for every link, and not just the link with the [tt]isvalid[/tt]code?

Jason Meckley
Database Analyst
WITF
 
All controls have a "CausesValidation" property. If you set this to false for those controls you want to be able to make a postback without firing the RFV, then this should solve your problem.


Mark [openup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top