I have a datalist i want to programmatically run some checks and then change the text that is been displayed. Can this be done ? Any examples?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do your calculations and checks on datalist control’s data source (datatable, collection, … etc.). Also you can programmatically change the values of the items that datalist display by updating the datasource of the datalist.
An alternative way is using ItemDataBound event. Here in MSDN you can see an example.