Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Javascript error for ConfirmButtonExtender & Modal popup

Reply
Thread Tools

Javascript error for ConfirmButtonExtender & Modal popup

 
 
Arnab das
Guest
Posts: n/a
 
      03-24-2008
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

 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      03-24-2008
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
>
>

 
Reply With Quote
 
 
 
 
Arnab das
Guest
Posts: n/a
 
      03-25-2008
On Mar 24, 8:29*pm, bruce barker
<(E-Mail Removed)> 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>

<aspanel 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>
</aspanel>







 
Reply With Quote
 
Arnab das
Guest
Posts: n/a
 
      03-25-2008
On Mar 25, 9:53*am, Arnab das <(E-Mail Removed)> wrote:
> On Mar 24, 8:29*pm, bruce barker
>
>
>
>
>
> <(E-Mail Removed)> 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>
>
> * * * * * * * * * * * * * * * * <aspanel 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>
> * * * * * * * * * * * * * * * * * * * * * * </aspanel>- 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET Javascript Modal Popup won't fire Page Load on second go H00ner ASP .Net 19 07-20-2010 09:08 AM
Urgernt help - ConfirmButtonExtender and targetcontrol link button Giri Palakodeti ASP .Net 0 08-29-2008 07:03 PM
Enable (show) and Disable (hide) ConfirmButtonExtender jason.richard@gmail.com ASP .Net 0 07-03-2008 06:46 PM
modal popup Javascript in asp.net csgraham74@hotmail.com Javascript 1 06-08-2005 09:30 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM



Advertisments