UPDATE:
I was able to use VB to validate the form. If checkbox is not checked and textboxes are blank, the alert message is displayed.
This is great. However, the form still gets submitted.
How do I prevent the form from submitting when the alert is raised?
For Each row As...
Ok,
Is this what you want to see?
<div>
<table>
<tr>
<td>
<div>
<table cellspacing="0" id="Gridview1" style="border-collapse:collapse;">
<tr>
<th align="left" scope="col">Name</th><th scope="col">Address</th><th scope="col">Income</th><th...
Using class actually does the opposite of what you just described.
Because the markup is using gridview control, it gives several elements of the same textfield as you correctly described such as $gridview_0, 02, etc.
However, to work around that, you use class. This way, only the text control...
Greetings mate,
New comer here. Please take it easy on my first post :)
I have a gridview with a control ID of Gridview1.
Inside this gridview are three textboxes and a checkbox with Id of grid1Details.
Our requirement is as follows:
if checkbox is unchecked and textboxes are empty => You...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.