开发者

Need to insert href="#" like in <a href="#"> in asp:linkbutton

开发者 https://www.devze.com 2023-03-25 06:15 出处:网络
I need to insert href=\"#\" like inin asp:linkbutton. please let me know how I can do this.开发者_C百科.

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

精彩评论

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