| |

VerySource

 Forgot password?
 Register
Search
View: 964|Reply: 4

Help: About the validation control

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2021-3-5 13:30:01
| Show all posts |Read mode
About the order of validation controls
I am currently writing an edit page. Read "Name" and "Picture" from the database. Including editing and deleting 2 LinkButtons. Both are bound to the repeater.
Then lower is a text box and an upload file control. These two controls are mainly used to fill in or modify the data of the repeater. These two controls are added with the RequiredFieldValidator control.
   The problem comes; when clicking the "Delete" button. The following RequiredFieldValidator will dynamically prompt information. Now I want to click the "Delete" button. The RequiredFieldValidator control does not affect this event. Ability to perform delete events.
Reply

Use magic Report

0

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2021-3-5 13:45:01
| Show all posts
Set the CausesValidation property of the delete button to false
Reply

Use magic Report

0

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 Poland

Post time: 2021-3-5 14:00:01
| Show all posts
Set the CausesValidation property of the delete button to false
correct!
Reply

Use magic Report

0

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2021-3-5 14:15:01
| Show all posts
Set the CausesValidation property of the "Delete" button to false to pull it!
Reply

Use magic Report

1

Threads

60

Posts

37.00

Credits

Newbie

Rank: 1

Credits
37.00

 China

Post time: 2021-3-5 14:45:01
| Show all posts
Set the CausesValidation property of the delete button to false
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list