enable debugging in the browser, or use firefox with firebug, and determine
your coding error (or at the line that fails). most likely you are not using
the correct id of a control, but who knows, with no sample code you could of
done anything.
below is the code I am using -Here the linkbutton is inside a
listview.
<asp:LinkButton ID="lbnDeleteControl"
runat="server"
Text="[x]"
ToolTip="Delete this page"
CommandName="DeletePage"
Visible='<%#
AllowDelete((Eval("pagename"))) %>'
CommandArgument='<%#Eval("sno") %>' /
<cc2:ConfirmButtonExtender ID="cnfrmBtnExt"
runat="server" DisplayModalPopupID="mdlPopUpExt"
ConfirmText="Deleting the current page Continue?"
TargetControlID="lbnDeleteControl" BehaviorID="cnfrmBtnExt"
>
</cc2:ConfirmButtonExtender>
<cc2:ModalPopupExtender ID="mdlPopUpExt"
runat="server"
TargetControlID="lbnDeleteControl" PopupControlID="pnlPopup"
BackgroundCssClass="modalBackground1" OkControlID="btnYes"
CancelControlID="btnNo"
>
</cc2:ModalPopupExtender>
<asp
anelID="pnlPopup"
runat="server" CssClass="confirm-dialog" style="display:none;">
<div class="inner1">
<h2>Are you sure
you want to delete this Page?</h2>
<div
class="base1">
<asp:Button
ID="btnYes" runat="server" Text="Yes"
OnClientClick="$find('mdlPopUpExt').hide(); return true;" />
<asp:Button
ID="btnNo" runat="server" Text="No"
OnClientClick="$find('mdlPopUpExt').hide(); return false;" />
</div>
</div>
</asp
anel>- Hide quoted text -
- Show quoted text -