Need to insert href="#" like in <a href="#"> in asp:linkbutton
I need to insert href="#" like in in asp:linkbutton. please let me know how I can do this.开发者_C百科. Thanks Mithilesh
Href property in linkbutton is used for raising a postback, if you don't want to use postback, you can use tag instead directly. Or if you still want to use linkbutton, try the code with JQuery library which replaces the function that raises the postback with '#'.
$(function(){
$('a').attr('href', '#');
});
精彩评论