Home > Net >  Asp.net repeater book shows check box, text boxes
Asp.net repeater book shows check box, text boxes

Time:11-07

Want to be in asp.net repeater book according to the condition to display the check box, text box
Such as the database have such a list
Bz Max
1 10
1
152 5
2 5
2 5
3


If 1, then display check box; 2 will display a text box, each with the corresponding score,
When checked, for example, the database is written to 10;
If in the text box input number, cannot be greater than the Max

CodePudding user response:

Top, top,

CodePudding user response:

Repeater in the use of the ternary operator
<% # Eval (" Name ") % & gt;==1? Check box: text box

CodePudding user response:

<% # Eval (" Name ") % & gt;==1?" HTML checkboxes ":" the text frame's HTML (can restrict the minimum and maximum input Numbers only) "% & gt;

CodePudding user response:

Thank god, I'm going to try

CodePudding user response:

reference 4 floor zestsnake response:
thank you for the great god, I went to try


<% # Eval (" Name ") % & gt;==1?" HTML checkboxes ":" the text frame's HTML type Numbers have the maximum and the minimum attribute "% & gt;

CodePudding user response:

I later in a hidden way to satisfy conditions after the show
  • Related