Javascript error for ConfirmButtonExtender & Modal popup

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
 
B

bruce barker

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)
 
A

Arnab das

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>
 
A

Arnab das

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: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>- 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top