.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

Problems Positioning Popup Extender After Postback

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :ASP.Net
Please read this entire post before responding and refer to the supplied screen shots to fully understand the problem. There are multiple layers of Ajax controls invovled. On the main page, I have Modal Popup Extender that displays a User Control. Within the User Control is a Popup Control that displays another User Control. User Control #2 which resides on User Control #1 is comprised of a GridView with sorting capabilities. I've got code in place that displays User Control #1 following a postback generated from within it. I've got additional code that displays User Control #2 (the one with the GridView) following a post back. The result is that when User Control #2 is sorted, it remains visible. The problem is that after the postback for User Control #2 ocurrs, the control is not displayed at the coordinates specified in the markup. If I hide it and then redisplay it, it will appear at the specified location. Protected Sub Page_Load() Handles Me.Load If TextBoxShowCompanyFacilitySelector.Text = "-1" Then Dim PopupControlSelectCompanyFacilityId As Object = FormViewContactDetail.FindControl("PopupControlSelectCompanyFacilityId") PopupControlSelectCompanyFacilityId.Show() End If End Sub These screen shots show the desired and actual behaviors.

View Complete Post

More Related Resource Links

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.

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

Ajax Popup Extender: Crashing the Browser



    I am using Ajax Popup extender as confirmation window. In my page, I am having multiple post backs for different cases. If I display ajax Popup extender, first few times it is working fine. After that, It is crashing the browser and i have to close the browser or it is closing the browser automatically.

Any Idea why it is happening? Did i miss anything?

My App details

IE Version : 6.0

.Net version: 3.5

Ajax version: 3.0.30512.20315



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?  

Problems with item detail popup with ie7 and ie8

I have a new installation of Sharepoint 2010 beta.  This is straight, out of the box, fresh install, no custom code at all.  On several browsers I cannot view several items within sharepoint.  But can view them with other browsers When I open the main root site with one of the offending browser I get an error triangle at the bottom left of the browser (details below).  on these browser I am unable to do basic functionality within the sharepoint site: The Page ribbon does not load Cannot view Detail popup for anything in the site. These browsers fail: XP Desktop - ie7.0.5730.13 XP Laptop - ie8.0.6001.18702 These browsers seem to work: Windows 7 laptop - ie8.0.7600.16385 Sharepoint Server - ie8.0.6001.18882 I've tried to update the XP Laptop.  I've run Windows update several time trying to get all the .net and browser updates I can.  But it's still not working. Am to conclude that: I MUST be on windows 7 to use Sharepoint 2010? I must be on a very specific version of ie8? is this even a client issue?  or is it more of a server component issue? Incidentally, Firefox 3.5 seems to work pretty well. Here is the error details I get : on the ie7 desktop I get an error message that reads : Char: 70125, Object expected Webpage error details on the ie8 laptop. User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.

View Source When Modal Popup Extender is Displayed

I've got some Javascript within a div that's displayed by a Modal Popup Extender. The Javascript is throwing an error. When I go to 'View Source', it appears that the source for the Modal Popup Extender and the Javascript contained therein isn't there. How can I view the source then? The Modal Popup Extender *is* being rendered.

Calendar Extender is not working in IE7 after Postback

We have implemented ajaxtoolkit version: 3.5.40412.0, and my web application is not AJAX enabled. We have included ajaxtoolkit binary reference in our web application. In one of the page, calendar extendar is working fine when it rendar first, after postback it's not working at all in IE7, but it's working fine in Mozilla. The sample code is as below, [ We are not getting any javascript or HTML tag error ]   <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %><asp:Content ID="MyTest" ContentPlaceHolderID="MainContentPlaceHolder" runat="server"><ajaxToolkit:ToolkitScriptManager id="ScriptManager1" runat="server"/><table><td><asp:TextBox ID="txtDate" TabIndex="8" runat="server" Width="144px"></asp:TextBox><ajaxToolkit:CalendarExtender ID="calDate" Format="MM/dd/yyyy" runat="server" TargetControlID="txtDate" PopupPosition="BottomRight" /><asp:RangeValidator ID="DateRangeValidator" runat="server" Display="None" EnableClientScript="false" ControlToValidate="txtDate" ErrorMessage="Selected date is not within range." Type="Date" /><

Modal Loading Popup on Async Postback

Hi everyone, I have a web application that does some complicated data retrieval tasks and so I am trying to show a modal dialog box with a loading message when the tasks begins. I am using ASP.Net 3.5, the jQeury popup I am using is bPopup. Firstly, I have a table where the rows can be clicked. Im am using a script from http://bloggingabout.net/blogs/mveken/archive/2008/01/02/performing-async-postback-from-javascript.aspx to do an async postback from the table row. Here is my functionfunction Server(eventName, eventArgs) { $("#<%=lDiv.ClientID %>").openPopup(); var prm = Sys.WebForms.PageRequestManager.getInstance(); if (!Array.contains(prm._asyncPostBackControlIDs, eventName)) { prm._asyncPostBackControlIDs.push(eventName); } if (!Array.contains(prm._asyncPostBackControlClientIDs, eventName)) { prm._asyncPostBackControlClientIDs.push(eventName); } __doPostBack(eventName, eventArgs); } so the $("#<%=lDiv.ClientID %>").openPopup();  opens up my loading modal and then the server starts doing its thing. When the server finishes though how would I then close the dialog box? I just need to call one line of code like $("#<%=lDiv.ClientID %>").closePopup(); Thanks for your help

Modal Popup Extender: Jscript Runtime Error

I have a master detail aspx page with modal popup. The modal popup has a formview with edit and insert options. Whenever I try to show or hide the popup it always gives the following error. If I ignore it just works fine. Any reason why is this error popping up. Once when I deleted all the breakpoints and debugged it, the error did not show up Error:       Microsoft JScript runtime error: SysArgumentNullException: Value cannot be null       Parameter name:elements. I do not where the error occurs. It shows a break some where as follows: Debug Script Section --------------------------- Sys.UI.DomEvent.prototype = {     preventDefault: Sys$UI$DomEvent$preventDefault,     stopPropagation: Sys$UI$DomEvent$stopPropagation } Sys.UI.DomEvent.registerClass('Sys.UI.DomEvent');     $addHandler = Sys.UI.DomEvent.addHandler = function Sys$UI$DomEvent$addHandler(elements, eventName, handler, autoRemove) {     /// <summary locid="M:J#Sys.UI.DomEvent.addHandler" />     /// <param></param>     /// <param></param>     /// <param></param>     /// <param optional="true" mayBeNull

modal popup extender..session timeout

hi, i actually want to give a popup 2 min before the session timeout, i have actually found out a way to do that but i want to use modal pop up extender instead of javascript....... how should i use this,how do i create the pop up window first and then how do i call it from page load of each page, what should be the targetcontrolid,please help me out.   thank you

AutoCompleteExtender positioning problems

Hi all, I can't seem to find an answer to this anywhere so I am trying here. When I don't apply any CSS styles to the properties CompletionListCssClass,  CompletionListItemCssClass and CompletionListHighlightedItemCssClass the completion list displays a nice dropdownlist right below the targeted textbox. However, I am simply looking for a border and a scrollbar after 100 pixels in height (I am allowing 20 items returned). Initially I was using the CompletionListElementID property and pointing it to a DIV placed right below the target textbox. I applied the styles to the DIV (height:100px; overflow:scroll;) and all was well. Even though that produced exactly what I wanted, I noticed that VS 2008 SP1 with .NET 3.5 SP1 was telling me that the CompletionListElementID property is obsolete and I should use the CSS styles. So now I am in a bind because I don't know CSS that well and using some example CSS, that doesn't seem to refer to ANY positioning, the list shows up in odd places...nowhere near the target TextBox. Can anyone tell me what I should do? Can I use the CompletionListElementID property even though I am being warned it is obsolete? It seems to work just fine. I know that I downloaded the latest ToolKit for .NET 3.5 and VS2008 SP1. Thanks for any help...

Hover extender not working after postback

Hi I bind a hover extender to a cell in a gridview, using following code: Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then  Dim hoverMenu As HoverMenuExtender = CType(e.Row.FindControl("hoverMenu"), HoverMenuExtender)  e.Row.Cells(1).Controls.Item(0).ID = e.Row.RowIndex.ToString()     hoverMenu.TargetControlID = e.Row.Cells(1).Controls.Item(0).ID End If End Sub Now This works perfectly and the panel appear when hovering over the second cell.However after a postback it is no longer working and no panel will show when hovering over the cell. Can anybody help plaese?   Jonas   

PopUp Extender

HEllo i havce user ontrol which is basically contain Login Control and in header.ascx i m calling login user control throught popup extender but while loading the page popup extnder,conrol inside user conrol or pop up extnder get resized   may i know how to avoid this to resize control???? 

Button forces postback in updatepanel inside Popup

I have an update panel which is inside a Modal Popup Extender. When I click the Refresh Report button it always calls a postback. I need to stop it from posting back. Ideas?

Update Gridvew Row inside popup extender control

I have a gridview with popup control extender to show details of the row, it works ok. But I also need to update the fields inside this popup window. How do I get the row ID and pass it to the button click event handler? Please help. 

Ajax Modal Popup extender



I have an ajax modal popup extender in update panel.  The modal popup extender has a label , checkbox and a dropdown list. When i open the popup first time (i.e Page_load) and select something and click on ok the data is populated correctly in another grid. If i open the popup second time and select some data and click on ok  it is populating the grid with the current selected data as well as previously selected data. Please provide me with the solution with this issue..




Modal Popup Extender server side Show() does not work


Hello. Im using a modal popup extender to tell my user that the page has successfully been updated and then redirect them to a new page with the ok button. The thing is that i do NOT want this extender to fire when i press the button. I would rather call the Show() function myself. Right now i have a simple test page with a button that calls the popup extender Show() function but Nothing happens. If i set the targetID to the button it works but Im not able to call it through codebehind.

Any thoughts?

<%@ Page Title="" Language="C#" MasterPageFile="Master.master"
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