Home > Net >  How to click add the BTN datalist template and obtain the value of the corresponding label
How to click add the BTN datalist template and obtain the value of the corresponding label

Time:09-29

I use the datalist access to the database to add multiple commodity information, and then two BTN control is added in the template
After clicking the button to get ID is equivalent to the corresponding commodity, then shopping cart are formed and then fill in the database table
Now, I just don't know how to get the value of the corresponding label, please answer

CodePudding user response:

CodePudding user response:

help w o

CodePudding user response:

Label1. Text is ah

CodePudding user response:

refer to autumn red fruit reply: 3/f
label1. The Text is ah

Just don't know how to get ah (crying) label1. Text can not come

CodePudding user response:

Datalist. Items [rows] FindControl (" label1 "). The Text and stick to the points

CodePudding user response:

The items [I] findCtrol (" id ")
  • Related