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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
eswar raoPosted Sep 17, 2016, 3:57 AM
Madhanmohan DevarajanPosted Sep 16, 2016, 9:51 AM
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.