c# - linkbutton in gridview has different id and do postback event target it should be same? -
href="javascript:__dopostback('grid1$ctl02$lkbdelete','')" id="grid1_lkbdelete_0"
full link is:
<a onclick="javascript:return popupdialouge('<b>are sure want delete record?</b>\nbecause process related comments record\nwill deleted.','confirmation','delete','cancel',this,'ui-icon-alert');" id="grid1_lkbdelete_0" name="lkbdel" href="javascript:__dopostback('grid1$ctl02$lkbdelete','')">delete</a>
actually want custom postback
capturing eventargument
here can event target should same event target different can't cause manual postback
i did myself changed gridview clientid mode static auto replaced underscores _ linkbtn id doller $ worked.
var ctlid=this.id.replace(/_/g,'$'); function postback(){ __dopostback(ctlid,''); }
Comments
Post a Comment