linkbutton giving error.few days before working fine giving error
<asp:templatefield headertext="college name"> <itemtemplate> <asp:linkbutton id="lbselectcollege" onclientclick="mylstcollege('<%#eval("name")%>'); return false;" forecolor="black" runat="server" tabindex="-1"> <a style="cursor:pointer"><%#eval("name")%></a> </asp:linkbutton> </itemtemplate>
you need re-arrange single , double quotes in onclientclick
change
onclientclick="mylstcollege('<%#eval("name")%>');return false;"
to
onclientclick='<%# mylstcollege(eval("name") %>); return false;'
Comments
Post a Comment