updatepanel

How do I execute javascript in a dynamically-added User Control

I have a GridView of thumbnail photos within an UpdatePanel, with clickable icons in each row which each load a User Control containing a small Google Map into the relevant row. The idea is that the user can geotag (by clicking on the map) any photo in the GridView. In the map User Control, there is some Javascript initialising the map...

Triggering UpdatePanel on a button contained within a UserControl situated on the webpage

I would like an UpdatPanel to update it's content once a button is clicked - this button is contained within a UserControl placed on the webpage. However, I cannot just simply reference it using the AsyncPostBackTrigger's ControlID property, because the button is not situated directly on the webpage. Is there any way to reference it to...

How to avoid multiple Page Load event on the pages with History Points?

Hello, I have page with UpdatePanel, ListView, ScriptManager and Navigate event. It shows a list of companies depending on the country selected. I've added HistoryPoint with the selected country. When I try to load this page with history point in new browser window (i.e. country/browse.aspx#&&location=1) Page Load event fires before...

Update Panel trigger Not firing

I have a simple update panel with a button that refreshes a radio button control, I recently noticed a few days now that some of the pages generated by ASP.Net containing my control the trigger does not firing to perform the post back. I have notice this behavior on my cache pages because if I load the same page not cached the update pan...

UpdatePanel and Repeater render page unresponsive after post-back

I have a page with an UpdatePanel that contains a Repeater and a text box with the number of items in the repeater. When I change the value, the page is supposed to post back and redraw the Repeater with the updated number of items. This works in principle, but the page ends up frozen after post-backs and does not accept any input - in I...

C# UpdatePanel Update seems to be working in Firefox but not IE

I've got a page with several Update Panels on it. The first has a panel with a gridview which has an event to close the panel and update the UpdatePanel - then populate a control in a second updatepanel. It seems to work fine in firefox but in IE the panel appears to not respect the visible=false. The gridview is not databound so it do...

jQuery Events on Elements in an UpdatePanel

I have some elements inside an UpdatePanel which may or may be displayed, depending on various conditions. <asp:UpdatePanel ID="MyUpdatePanel" runat="server"> <ContentTemplate> <asp:Panel ID="MyPanel" runat="server"> <img id="clickableImage" src="/path/to/image.png" alt="Clickable Image" /> <span id="...

ASP.NET 3.5 UpdatePanel with Validation Control. Validation runs unexpectedly.

I've got a ASP.NET 3.5 sp1 site, and on one page I have two UpdatePanels. The first has a CustomValidator, and the second does not. I want the validation to run ONLY when the button is pressed. Currenlty, when the Gridview in the second updatepanel is edited, it also causes the validation. I've read a lot about how the validation control...

DropDownList in ModalPopup/UpdatePanel intermittently does not fire SelectedIndexChanged

I've got a UserControl that's used inside of an UpdatePanel. The UserControl is a fairly simple form that appears via a ModalPopupExtender (which is also part of the UserControl). There are four DropDownLists, as well as some other UI elements. Three of the four DropDownLists have AutoPostBack="true", with SelectedIndexChanged events ...

Cannot catch an error on assync postback (asp.net page with updatepanel)

I use an updatepanel and I register a handler for endRequest to catch errors: Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); On the server an exception is thrown to test the client side. The problem is that in IE and FireFox EndRequestHandler is never called! It works as expected in Opera and Safari....

How to use Server.Transfer or Response.Redirect from ajax UpdatePanel?

How to use Server.Transfer or Response.Redirect from ajax UpdatePanel? ...

Dynamically generating download from UpdatePanel fails with PageRequestManagerParserErrorException

I am new to ASP.NET AJAX and am encountering a problem. The page uses an UpdatePanel and Timer to check for new results of a batch processing queue. When results are available, it should show links to download results files. I'm using a repeater to format the links, which use LinkButtons: <asp:LinkButton ID="linkOutputFile" runat="se...

Memory Leak with jQuery UI inside UpdatePanel in ie7

I have a fairly complex asp.net page based on UpdatePanels and jQuery UI. Unfortunately, when the panels update, the jQuery UI widgets leak memory like crazy in ie7, even if I manually 'destroy' them. Does anyone know a technique/patch to prevent these leaks? I've created a simple example page with a slider inside an UpdatePanel. Jus...

Wrong state in Server Controls with same ID's when dynamically adding UserControl to UpdatePanel

Here is what I am trying to do. I have a page with two link buttons and an updatepanel (the two linkbuttons trigger the updatepanel). I have two usercontrols which have labels with same ID's. When I click the first link button, I add the first usercontrol to the updatepanel and set the label value to datetime.now when i click the second...

Button command firing twice with ButtonField inside GridView inside UpdatePanel with FireFox

I have an update panel which contains a GridView, inside which is a ButtonField. Whenever I press the button I see Firefox doing two POST's (via Firebug). One gets aborted right away, but does reach the server. This causes problems on my server side code as the command (a copy) gets executed twice. IE6 and IE8 do not exhibit this behavi...

Can't Delete Image File while using TinyMCE

Hi i am using TinyMCE AND AsyncFileUpload AND an Update Panel After Uploading , i cannot delete the Images while Adding them to tinymce content because it is being used by another process. lock (this) { if (File.Exists(_FILE_HANDLER_)) { Fil...

jQuery $(document).ready? and UpdatePanels - some issues

I have referenced this existing query here regarding jQuery $(document).ready? and UpdatePanels I am getting a Javascript error on line... var prm = Sys.WebForms.PageRequestManager.getInstance(); The error is : Microsoft JScript runtime error: 'Sys' is undefined Any resolution for this? What could I be missing? ...

UpdatePanel doesn't do partial-page update, and IsInAsyncPostBack is always false

I'm attempting to use an UpdatePanel, but can't get partial-page updates to work. When I look at the ScriptManager's IsInAsyncPostBack property, it's always false. Here's a page that reproduces the issue. It has a ScriptManager, an UpdatePanel, a LinkButton within the update panel, and a Button wired up to the UpdatePanel via the Trigg...

ASP.Net ScriptManager and UpdatePanel ignoring javascript once posted back.

Hi, I am having major issues using UpdatePanels on a website. The problem is that when i use a ScriptManager, all client side JavaScript that was active when the page was originally loaded is lost once an update panel posts back. Here's what i'm trying to do... I have a number of .net calender controls on the same page each within i...

ScriptManager.AddHistoryPoint - page is displaying original page state first, then saved state

I'm using an UpdatePanel and the ScriptManager's AddHistoryPoint method to save my page state in the browser's history. The page is a simple search/results page with 2 states: STATE 1 - showing search filters STATE 2 - showing search results When I navigate back to the page (by clicking the back button in my browser), the page shows...