H!
I have created asp.net C# application that accepts student marks and calculate the totals,average and grade letters and insert the entered marks in the db. the marks are entered using text boxes. The computed marks and grades are displayed on labels. i want these totals and grades to be stored in the db as well. i have the columns for totals, average and overal grade in the label.
How can i store the data displayed on the labels into the labels?
Thank you for your help.
解决方案I prefer that,
Fist start giving the name of the label same as field name.
Ex. your field name is StudName than label name should be lblstudname here lbl is use for identify label controller.
Now There is property of label named as Text; this will help you for fetching data of label.
Ex. lblstudname.Text this will return student name
Store it in database.
LabelID.Text has the value you are looking for . Consider changing the data-types as per you table column.