| |

VerySource

 Forgot password?
 Register
Search
View: 1701|Reply: 14

Brother in ASP. NET wants to drop down the list box and want to raise an event when clicking on an option, please give p

[Copy link]

4

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-10 09:00:02
| Show all posts |Read mode
Brother in ASP. NET wants to drop down the list box and want to raise an event when clicking on an option, please give pointers, thank you!
Reply

Use magic Report

0

Threads

25

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-1-11 13:45:01
| Show all posts
AutoPostBack = true;
Isn't it possible to raise an event in the SelectedIndexChanged event?
Reply

Use magic Report

4

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-1-11 15:00:02
| Show all posts
AutoPostBack = true
I forgot to use this property, I will try again, thanks
Reply

Use magic Report

2

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Unknown

Post time: 2020-1-11 15:45:01
| Show all posts
Right-click on the drop-down list box and hook AutoPostBack
Double click on the drop-down list box to write the code in the event it is OK to pull.
The code is to connect to the corresponding database and you can pull
Reply

Use magic Report

4

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-1-11 18:36:01
| Show all posts
Why is it only the first time, the next time, it will not work
Reply

Use magic Report

0

Threads

13

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-13 16:27:01
| Show all posts
Nope? Has your drop-down option not changed?
Reply

Use magic Report

0

Threads

60

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-1-14 09:54:01
| Show all posts
Why is it only the first time, the next time, it will not work

will not,
Look at the code
Reply

Use magic Report

1

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-14 10:09:02
| Show all posts
Set AutoPostBack = true
Reply

Use magic Report

0

Threads

64

Posts

35.00

Credits

Newbie

Rank: 1

Credits
35.00

 China

Post time: 2020-1-14 12:36:01
| Show all posts
Q: Why is it only the first time, and the next time, it will not work

A: Because it is SelectedIndexChanged.
Reply

Use magic Report

2

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-14 19:18:01
| Show all posts
You bind what you previously bound here once
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