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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ValidationSummary inside a Datalist Item

Status
Not open for further replies.

Alcar

Programmer
Sep 10, 2001
595
US
Hi,

is it normal that the ValidationSummary control screws up the postback of the Datalist control?

let's say that inside the EditItemTemplate of the DataList you have a lot of TextBoxes you want to validate.

I added manually (in the HTML view) the single validators and I grouped all the errors at the end in a nice ValidationSummary control.

zip, nada.. this last buddy created funny behaviors of my fresh aspx page:

Once I let the errors appear on the summary control, my update button won't force a post back, therefore I am stuck with the edit item template view and cannot switch back to the normal Item view.

I fixed it by removing the validation summary control, do you guys have other ideas???

Thanks,
Alcar
 
I haven't used the validation stuff much but could you try moving your validation summary outside of the item template. I don't see why it would change anything but...... Crystal
crystalized_s@yahoo.com

--------------------------------------------------

Experience is one thing you can't get for nothing.

-Oscar Wilde

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top