hi my dear friends,
i would like to change one datalist1 lable text when i am click on another datalist2 button is it possible...? it it is ..how can share that sample link
please help me...i hope u understand my question,thank you
How to change datalist item tex when click on button
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Madhanmohan DevarajanRank #342 · 7.3K reputationPosted Sep 16, 2016, 5:51 AM EDT
In your case you may need to use JavaScript /jQuery and connecting the button (datalist2) with Label (datalist1) with some kind of dynamic id name starting with same prefix or suffix like shown below.
Ex:
In Datalist1 item template
<asp:Label ID="CategoryLabel" >
In Datalist2 item template
<asp:Button ID="CategoryButton" OnClick="javascript:ChangeLabelVal('Category');">
Here "Category" is the key to identify which label you need to change on button click.
eswar rao87 reputationPosted Sep 16, 2016, 11:57 PM EDT