| |

VerySource

 Forgot password?
 Register
Search
View: 709|Reply: 3

Ask questions about validate controls

[Copy link]

2

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-1-9 16:20:01
| Show all posts |Read mode
I want to associate the validate control with the dropdownlist, and verify that the first drop-down box is selected. I do n’t know what to do?
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-1-10 21:45:02
| Show all posts
runat = "server">
<ASP: LISTITEM> </ ASP: LISTITEM>
<ASP: LISTITEM Value = "1"> A </ ASP: LISTITEM>
<ASP: LISTITEM Value = "2"> B </ ASP: LISTITEM>
<ASP: LISTITEM Value = "3"> C </ ASP: LISTITEM>
</ ASP: DROPDOWNLIST>
<ASP: REQUIREDFIELDVALIDATOR id = "RequiredFieldValidator1" style = "Z-INDEX: 102; LEFT: 256px; POSITION: absolute; TOP: 104px"
runat = "server" ErrorMessage = "RequiredFieldValidator" ControlToValidate = "DropDownList1"> </ ASP: REQUIREDFIELDVALIDATOR>
<ASP: BUTTON id = "Button1" style = "Z-INDEX: 103; LEFT: 112px; POSITION: absolute; TOP: 144px" runat = "server"
Text = "Button"> </ ASP: BUTTON>
Reply

Use magic Report

0

Threads

60

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-1-13 13:54:01
| Show all posts
It's better to write code on the server side with authentication
Reply

Use magic Report

1

Threads

18

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-13 16:09:01
| Show all posts
Validation controls should not work
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