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

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -