|
Rank: Member Groups: Member
Joined: 3/8/2011 Posts: 19
|
I have a grid column remarks which can be very long, so i have added a dialog and in that added a label control. On click of grid item, by javascript i am trying to open the dialog and put the value of grid item to the label in dialog. but javascript can not find the label by its id, it is returning null.
Please help
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You will need to use the full client ID of the Label control. The Label is inside the dialog so the dialog's ID is included in the Label control as well. You can use the following code to find the full ID of the Label control:
Code: C#
Dialog1.ContentContainer.FindControl("Label1").ClientID
Hope this helps. Thanks!
|
|
Rank: Member Groups: Member
Joined: 3/8/2011 Posts: 19
|
But I am doing this from client side, how to get the label id from javascript
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We give you the server side code only to demonstrate the logic behind this. You will need to write the code for your own particular scenario.
Thanks!
|
|