Javascript error for ConfirmButtonExtender & Modal popup

  • Thread starter Thread starter Arnab das
  • Start date Start date
A

Arnab das

I am using ConfirmButtonExtender & Modal popup for validation .Though
everything working fine
still I am getting a javascript error- 'null in null or not an
object' .

Thanks,
Arnab
 
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.

-- bruce (sqlwork.com)
 
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.

-- bruce (sqlwork.com)






- Show quoted text -

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"))) %>'




<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:Panel ID="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:Panel>
 
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.
-- bruce (sqlwork.com)
- Show quoted text -

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:PanelID="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:Panel>- Hide quoted text -

- Show quoted text -

Bruce,

Thanks for your help.I have enable debugging and found that "
$find('mdlPopUpExt').hide(); " here was the error .

Arnab
 
Back
Top