ValidationSummary - PostBack still occurring

P

Philip

I am using a asp:ValidationSummary with ShowMessageBox="true" and
ShowSummary="false" to validate some fields in conjunction with the
asp:RequiredFieldValidator. Everything is working as I prefer....up pops a
JavaScript message box which informs me of the required fields....however it
still does an annoying PostBack.

I am using the RequiredFieldValidator within a ListView InsertItemTemplate.
The only event that the ListView is defined to receive is the ListView
OnItemCommand event.

Any idea why the PostBack continues to occur....even when it is obvious that
fields are required....and the JavaScript message box informs the user of
such.

Also....the strange thing is that the PostBack only occurs the 1st
time....meaning....if I click on the Insert command for the ListView item in
question... it does not conduct a PostBack on subsequent attempts to insert
the item.....only the 1st time.

Any suggestions ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top