Hi,
First post on here, I can't see that the question has been asked before.
I am new to Visual Studio 2008 (using VB), but a seasoned programmer using Access and VBA.
I have created a web site in VS and a form that the user fills in on a web page. The results are written to a record on a server once the send button is clicked on.
10 items on the screen are validated (is a named entered, is an address entered, do money fields have a value etc) and a validation summary is created for any errors found.
What I need to do is check if any items are shown in the summary before proceeding to write the file. If validation errors exist then the file is not posted.
I have a Send button but that works whether a validation summary is displayed or not.
Is their a way to read if a summary is displayed (validation errors exist) or not in VB 2008.
I thought this may have shown it
but it always shows as true.
Any ideas (sure this must be simple when you know how and I am missing something obvious)?
First post on here, I can't see that the question has been asked before.
I am new to Visual Studio 2008 (using VB), but a seasoned programmer using Access and VBA.
I have created a web site in VS and a form that the user fills in on a web page. The results are written to a record on a server once the send button is clicked on.
10 items on the screen are validated (is a named entered, is an address entered, do money fields have a value etc) and a validation summary is created for any errors found.
What I need to do is check if any items are shown in the summary before proceeding to write the file. If validation errors exist then the file is not posted.
I have a Send button but that works whether a validation summary is displayed or not.
Is their a way to read if a summary is displayed (validation errors exist) or not in VB 2008.
I thought this may have shown it
Code:
Me.ValidationSummary1.Visible
Any ideas (sure this must be simple when you know how and I am missing something obvious)?
Comment