Javascript error for ConfirmButtonExtender & Modal popup

Discussion in 'ASP .Net' started by Arnab das, Mar 24, 2008.

  1. Arnab das

    Arnab das Guest

    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
     
    Arnab das, Mar 24, 2008
    #1
    1. Advertising

  2. Arnab das

    bruce barker Guest

    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)


    "Arnab das" wrote:

    > 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
    >
    >
     
    bruce barker, Mar 24, 2008
    #2
    1. Advertising

  3. Arnab das

    Arnab das Guest

    On Mar 24, 8:29 pm, bruce barker
    <> wrote:
    > 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)
    >
    >
    >
    > "Arnab das" wrote:
    > > 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- Hide quoted text -

    >
    > - 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>
     
    Arnab das, Mar 25, 2008
    #3
  4. Arnab das

    Arnab das Guest

    On Mar 25, 9:53 am, Arnab das <> wrote:
    > On Mar 24, 8:29 pm, bruce barker
    >
    >
    >
    >
    >
    > <> wrote:
    > > 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)

    >
    > > "Arnab das" wrote:
    > > > 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- Hide quoted text -

    >
    > > - 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
     
    Arnab das, Mar 25, 2008
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Leila
    Replies:
    0
    Views:
    437
    Leila
    Apr 26, 2005
  2. Matt
    Replies:
    1
    Views:
    3,195
    Whitecrest
    Jun 1, 2004
  3. Replies:
    0
    Views:
    2,756
  4. Giri Palakodeti
    Replies:
    0
    Views:
    865
    Giri Palakodeti
    Aug 29, 2008
  5. Jens Peter Hansen
    Replies:
    7
    Views:
    594
    Randy Webb
    Jun 19, 2004
Loading...

Share This Page