This is a migrated thread and some comments may be shown as answers.

radgrid hyperlink eval parameter pass error

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 08 Aug 2012, 11:50 AM
How i pass the parameter in onclientclick error come ,

<asp:HyperLink runat="server" ID="lnkAddressID" Text='<%# DataBinder.Eval(Container.DataItem, "Address_Location_Name")%>'
                                                                                                OnClientClick="EditAddress('<%# DataBinder.Eval(Container.DataItem, "AddressID")%>')"></asp:HyperLink>



Thanks Advance,
Mohamed.

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 13 Aug 2012, 07:13 AM
Hi Mohamed,

Could you please try using the following code snippet and let me know if the issue still persists:
<asp:LinkButton Text='<%# Eval("Address_Location_Name")%>' runat="server"  OnClientClick='<%# "EditAddress(\"" + Eval("AddressID") + "\"); return false;" %>'></asp:LinkButton>

Looking forward for your reply.

Regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
mohamed
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or