User1647250948 posted
Hi
I have a label control inside a grid view Itemtamplate. I want to set value of label from javascript at page load. Suppose I have..
<asp:GridVew id="Grid" >
<ItemTamplate>
<asp:Label id="lblDate" />
</ItemTamplate>
</asp:GridVew>
How can I get unique Id of label control? I am trying by
document.getElementById('<%= this.Grid.ClientID%>_lblDate')
I found that unique id of label from html page are as follows........
ct0_contentplaceholde001_Grid_ctl02_lblDate
ct0_contentplaceholde001_Grid_ctl03_lblDate
here 1st section is Grid id ...and middle section is UNKNOWN and 3rd is label name....... Any suggestion?