.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Problem with the modal popup within a asp updatepanel

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :ASP.Net

Where is the Problem with the popup within a asp updatepanel.

It works fine in IE8. But in FireFox (Version 3.6.11) it works only sometimes.

ASP-Control for PopUp (PopUp.ascx):

<asp:UpdatePanel ID="UIUpdatePanel" runat="server" UpdateMode="Conditional">
			<div class="sectionheader">
				<asp:Label ID="UILabelHeadLine" runat="server" />
			<table class="exportPopupTable">
					<td style="width:200px;">
						<asp:RadioButton ID="UIRadioButton1" runat="server" Checked="true" />
					<td rowspan="6" class="helptextcolumn">
						<asp:Label ID="UILabelInfoText" runat="server" />
						<asp:RadioButton ID="UIRadioButton2" runat="server" />
					<td align="right" colspan="2">
						<asp:Button ID="UIButtonOk" runat="server" OnClick="UIButtonOk_Click" ValidationGroup="FinishDateTime" />
						<asp:Button ID="UIButtonCancel"

View Complete Post

More Related Resource Links

Modal Popup with UpdatePanel


Hi Guys,

              I have one Panel on ascx control to which I have attached one Modal popup extender. On this panel I have one RadioButtonList control which having SelectedIndexChanged on which I have made CheckBoxLists visible True/False. 

             I want to add Update panel to this Panel . So when I handled the SelectedIndexChanged event there should be no total page post back, only Panel updates should be happen.

 Please do reply..



drop down list in modal popup problem


i have a drop down list in modal popup extender.... modal popup appears on click of a link button which is inside grid view..

update panel is for entire grid view... problem is that other control's postback event is not getting fired because of drop downs in popup...when i comment the code for drop downs other links' on click event gets fired...but as soon as insert drop down code...click event is not fired...

what might be the solution...

any help??

Modal Popup Extender and an Update Panel - "Cancel" Button problem


This should be a quick "yes" answer - I am in the process of creating a very simple test, but I thought I'd ask on here too (also, so other people might be able to find the answer, if they have the same problem).

I have created a modalpopupextender that opens up a panel containing an update panel.  I have a cancel button that is tied into the MPE's [CancelControlID] property and this closes the popup when I click it.  However, if I perform a partial postback within the update panel, the cancel button no longer works.  I have found an example online that seems to imply that the cancel button (and I'm guessing, by association) and the OK button should be outside the update panel.  Does the partial postback break the buttons' client script bindings, and thus should they always be placed outside the update panel?

Modal Popup Problem?



I m trying to open up a modal pop up dialog with a gridview inside. The problem is there is no pop up opens when i click the button. Here is the code below.

Any help would be great.

<asp:Button ID="Button1" runat="server" CausesValidation="False" />
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="Button1"
PopupControlID="GridView1" BackgroundCssClass="modalBackground" DropShadow="true" />
<br />
<asp:GridView ID="GridView1" DataSourceID="SqlDataSource1" runat="server" AutoGenerateColumns="False"
<asp:ButtonField ButtonType="Button" Text="Select" />
<asp:BoundField DataField="Lifnr" HeaderText="Lifnr" SortExpression="Lifnr" />

Modal Popup Extender postback problem?



When i try to submit the page which has modal popup extender,popup extender becomes visible! How can i avoid this?

Thanks in advance.

Treeview expand problem in modal popup in firefox


Hello All,

I am using ASP.NET 2.0, i have one form in which on click of button, one modal popup opens in which one treeview is there but when i click on the plus sign of tree's node, nothing is being happened, instead plus sign becomes an image and can be pulled over the form also. This problem is not in Internet Explorer 7. But in FireFox and Google Chrome the same problem is there and this problem is only with tree placed in modal pop up.

Help me if anyone has any solutions.

Thanks in advance


Modal popup window in ASP.Net

A Masked div or modal popup window is a child window created from the parent window which prevents the user from interacting with parent window before he returns to the parent application.

Open different page using Ajax Modal PopUp Extender Control

The article Open different page using Ajax Modal PopUp Extender Control was added by Chintan Dave on Thursday, July 15, 2010.

You May use Modal Popup Extender to open some part of the page as Popup. But there we don't have any property to open other html or aspx page in Popup window.We can do it using IFrame control. What we have to do, just add IFrame control in Panel that

Problem when displaying a popup window

Hi all,
I am working on a project in which when I clicked a hyperlink a pop up window has to be displayed for 2 pages.
But at first when i did this in javascript it worked, later after i finished the whole coding suddenly an error box displayed that there is an error in webpage and want to debug

want to launch modal Popup from created User Event handler




I have a create user wizard on my page and in the event handler (Created User) I get extra information from the user

via textboxes within the aspx etc.


I then do a response.redirect to another page.

What I want to happen is this


When the CreatedUser Event is fired, I  want a Modal Popup to show up with a message Processing your registration.

once the registration code is processed it will close and the users get redirected.


On my ASPX I have the Modal PopUp and a Panel.

In the code behind in the handler I put ModalPop.show()


but this does not work.


thanks for any suggestions



Modal Popup disappears after showing in IE7


Currently having problems with a modal popup. When you click its target control it will show up the hide itself again.  Thanks. Will try to add some more details later.

Modal Popup extender

HEllo I m using modal popup extender well i m having page on the page i m showing modal pop up extdner on click on every button but my problem is if scroll the page then modal popup extender aslo scroll till end I dont want modal popup up extender to be scoll according to page scroll can u help me pls?  

Problem with UpdatePanel postback

Hello,I have a Modal Popup window, inside an Update Panel object, that has the following layout:A Title areaA Content area with a tabstrip of 5 tabsA footer area with two buttons (Save and Cancel) and an UpdateProgressIn 3 of the five tabs I have:an UpdatePanel (UpdateMode=Conditional) that wrapsA collection of LinkButtons objectA gridviewAnother Panel object to be showed as a Nested Modal PopupNO update ProgressBoth the link collection and the gridview Select event will open the nested Modal window that contains a custom Usercontrol that is used to add new or edit object of the related gridview like in the code sample below//click handler of the LinkButton protected void btnNewPhone_Click(object sender, EventArgs e) { //Setup properties of the UserControl code omitted // ... //Show the nested Popup this.mpePopupPhone.Show(); } //handler for the gridview selectedIndex event protected void gvPhones_SelectedIndexChanged(object sender, EventArgs e) { //Setup properties of the UserControl code omitted // ... //Show the nested Popup this.mpePopupPhone.Show(); } Please note that: I am using the ModalPopupExtender show/hide behaviors using only server-side code. Also, the ModalPopupExtender objects for nested modal windows does not have the OkControlID & CancelControlID set. As the content of nested modal window is only a single user contro

Sharepoint 2010 views modal popup

Hello, somebody knows how can i launch a modal popup like the normal modal popup that launch sharepoint 2010 when you try to edit or add a new item in to a list or library froma custom list view?, the thing is that i did create a listview with a freeform toolbar and all the sections (view header, view body ...) in it, and add the edit column to it because i want to edit the items from the view, in the other hand the contenttype of the list that have associate the view have its own urlforms developed with silverlight, my problem is when i try to edit the items, i clicked in the edit link column and the custom urlform added to the contentype is open in a blank page and no in the normal popups of sharepoint 2010,, if some body have had this issue i will appreciate your comments.

Modal Popup moving data from popup to parent

I have one page with a panel that makes up my ModalPopup. On the ModalPopup there is an updatepanel with a textbox and a button in it.There is a textbox on the "parent" page and I want to click the button on the modalpopup and move the data from the popup textbox to the parent textbox. So far, no joy. I have a line in the code behind to move the data between textboxes and I have also tried javascript to do the same thing but I am not able to make this happen unless i click the button twice.Any help is appreciated.

Datalist and Ajax control toolkit Modal Popup window

Hi friends I have created list of thumbnail images in datalist and on clicking image i want to pass image name to Ajax control toolkit Modal Popup window which display bigger image.   Please help me.

Problem with Dynamic Controls inside an UpdatePanel

Hello Everybody ,I have this problem,if anyone could help me i'll be so gratefull. I had been created some dynamic radio buttons in a loop inside a dinamy table which is inside an UpdatePanel , but i can not handle the events my code is below:public void MetodoCreacion(){RadioButton RBtn = null;Table table = new Table();TableRow row = null;TableCell cell = null;for (int i = 0; i < 5; i++){row = new TableRow();cell = new TableCell();RBtn = new RadioButton();RBtn.ID = "RBGN_" + i.ToString();RBtn.GroupName = "RBGN1";RBtn.Text = "Opcion " + i.ToString();RBtn.CheckedChanged += new EventHandler(RBtn_CheckedChanged);RBtn.AutoPostBack = true;cell.Controls.Add(RBtn);row.Controls.Add(cell);table.Controls.Add(row);}UpdatePanel1_UpdatePanelAnimationExtender.Controls .Add(table);}public void RBtn_CheckedChanged (object sender, EventArgs e){Label1.Text = ((RadioButton)sender).ID;}and the controls doesent call the event ...thanks a lot
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend