How to use asp:HyperlinkField and javascript in asp.net instead of plain html hyperlink and javascript -
i trying replace plain html hyperlink , javascript asp:hyperlink , javascript. "return javascript();" function not work in asp:hyperlink column. please me this. plain html link below want replace asp:hyperlink
<asp:templatefield headertext="edit"> <itemtemplate> <a href="javascript:void(0)" onclick="return fn_edit_customer(<%# eval("customerid") %>);" target="_blank" title="click here edit" style=" text-decoration:underline; color:blue; cursor:hand;" >edit</a> </itemtemplate> </asp:templatefield> i want put below
<asp:hyperlinkfield headertext="edit" text="edit" navigateurl="javascript:fn_editcustomer({0})" target="_blank" />
use onclick="fn_editcustomer({0});" - , accept answers if helped you, or people stop helping you..
Comments
Post a Comment