Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 28th, 2014, 02:59 PM
Authorized User
 
Join Date: Feb 2014
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Curious Question on Modal Popup Extender

For the ajax control, modal popup extender. I know the extender needs a target control ID to initiate the popup however if we also have a event handler connected to the target control, does it not execute? If so, is there a way to work around it?

ex.

<ajx:ModalPopupExtender ID="AddNotePopupExtender" runat="server" PopupDragHandleControlID="PopUpWindowHeader"
PopupControlID="ModalWindowPanel" BackgroundCssClass="modalBackground" TargetControlID="AddNote"/>

some code ......

<asp:LinkButton ID="AddNote" runat="server" ShowModal="False" ToolTip="Add Note">Add New Note</asp:LinkButton>

while in the code behind.....

Protected Sub Add(ByVal sender As Object, ByVal e As EventArgs) Handles AddNote.Click
AccountNote.Text = String.Empty
AddNotePopupExtender.Show()
Me.BindGrid()
End Sub

but the textbox doesn't clear
 
Old March 5th, 2014, 06:58 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

This is a bit out of scope for me to answer in this book's forum category. Also, it's been a while since I used the ModalPopupExtender so I am not sure what the intended behavior is. Maybe it just fires at the client and never causes a postback?

Try posting this in a more general ASP.NET category here at wrox.com or try finding one of the Microsoft forums dedicated to the control toolkit.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Launching a Modal Popup Window from Server Code Dmitriy ASP.NET 3.5 Professionals 0 October 5th, 2009 03:03 PM
Communication Between a modal popup and a parent page swizz182g Javascript How-To 0 August 27th, 2009 04:41 PM
Modal Popup Extender - not modal? jenbuh ASP.NET 3.5 Professionals 5 July 27th, 2009 07:04 PM
question about closing a modal form using code N2hockey19 Beginning VB 6 1 December 10th, 2003 08:55 AM
Question: Using Popup & Parent windows in ASP savoym Javascript How-To 1 July 25th, 2003 11:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.