| |

VerySource

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

Problems with dynamic output controls

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-6 14:10:01
| Show all posts |Read mode
My content is stored in the database, and Response.Write is used in the output. The problem comes. I also want to add a checkbox control after each sentence. It is dynamic. !
Reply

Use magic Report

0

Threads

119

Posts

67.00

Credits

Newbie

Rank: 1

Credits
67.00

 China

Post time: 2020-1-6 23:30:01
| Show all posts
Each HTML tag has a corresponding class in .NET. The checkbox corresponds to HtmlInputCheckBox. You can dynamically generate its objects. For details, you can read the description of it in MSDN.
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-6 23:45:02
| Show all posts
It ’s the same. Generate an input and it's OK.
Reply

Use magic Report

0

Threads

21

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-1-7 00:51:01
| Show all posts
simple
Response.Write ("<input type = 'checkbox' name = 'cb' value = '1'>");
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-24 21:36:01
| Show all posts
But the control generated in this way cannot trigger server events. In the program, the value of the control cannot be obtained directly. You can only use the backward method from request.from
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