开发者

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', '#');
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜