Questions tagged [updatepanel]

UpdatePanel is an ASP.NET AJAX control which allows page content to be updated asynchronously.

When adding an UpdatePanel control to your page, you can achieve a partial-page update of your page on a postback. Only the content in the UpdatePanel is refreshed, the other parts of the page remain unchanged. Use triggers for refreshing when it fires.

Documentation on MSDN
UpdatePanel Control Overview
Introduction to the UpdatePanel control
UpdatePanel Class

3281 questions
21
votes
4 answers

Maintain Panel Scroll Position On Partial Postback ASP.NET

I have a gridview that putted in ASP.NET Panel. both of panel and Gridview are in an UpdatePanel. there is a column in gridview that Causes Partial PostBacks. i want to Maintain Panel Scroll position on those postbacks. Is there any way? regards.
Shahin
  • 12,543
  • 39
  • 127
  • 205
20
votes
3 answers

How to do AsyncPostBackTrigger for the LinkButton in the Repeater

In my page, I have an LinkButton inside repeater, but the UpdatePanel cannot find the LinkButton to AsyncPostBackTrigger. Here is mycode.aspx
user1128331
  • 707
  • 4
  • 10
  • 20
20
votes
3 answers

Performance deteriorating after async postback - scrolling becomes horrendous

I've been tasked to help improve performance on an asp.net (4.5) webforms application that unfortunately uses updatepanels. They are really evil. But getting rid of them isn't so simple as the system is tied up to a whole slew of things. I've…
JonH
  • 32,732
  • 12
  • 87
  • 145
19
votes
6 answers

File uploading in AJAX updatepanel without full postback

I have a update panel, in the update panel I have fileupload control and button control, On button click, I need the file that I have upload in the fileupload control in updatepanel. Exact scenario, I have 8 tabs on page, each tab contains too much…
Muhammad Akhtar
  • 51,913
  • 37
  • 138
  • 191
19
votes
7 answers

FileUpload control inside an UpdatePanel without refreshing the whole page?

According to Microsoft the FileUpload control is not compatible with an AJAX UpdatePanel. I am aware that a PostBackTrigger can be added to the submit button of the form like this:
JMcCon
  • 457
  • 1
  • 9
  • 19
19
votes
1 answer

How can you tell if a method is being run in UpdatePanel postback?

How can I tell if a method is running in the context of an AJAX postback (i.e as the result of a UpdatePanel (asynchronous) postback)? According to egoldin Page.IsAsync is a very common confusion that has absolutely nothing to do with AJAX. The…
rohancragg
  • 5,030
  • 5
  • 36
  • 47
18
votes
2 answers

Uploading a file to server automatically inside an update panel does not work the first time

Requirements I am trying to upload a file, as soon as a user selects it. I have to fulfill the following requirements: The button looks like other buttons in the application. The file is uploaded as soon as the user selects it. I need it to be in…
Ozair Kafray
  • 13,351
  • 8
  • 59
  • 84
18
votes
3 answers
18
votes
2 answers

How do I use updatePanel in asp.net without refreshing all page?

I want to design a website which contains sub-categories of a product in asp.net(c#). When I clicked a sub-category, then an image of product must be shown and the main page shouldn't be refreshed. How can I succeed it?
Mehmet Ince
  • 4,059
  • 12
  • 45
  • 65
17
votes
6 answers

How to stop UpdatePanel from causing whole page postback?

I am using .NET 3.5 and building pages inside of the Community Server 2008 framework. On one of the pages, I am trying to get an UpdatePanel working. I took a sample straight from ASP.NET website, update a time in an UpdatePanel to current time by…
user53885
  • 3,809
  • 11
  • 33
  • 43
17
votes
1 answer

RegisterStartupScript doesn't appear to be working on page postback within update panel

OK - so am working on a system that uses a custom datepicker control (I know there are other ones out there.. but for consistency would like to understand why my current issue is happening and fix it). So its a custom user control with a textbox and…
Jen
  • 1,964
  • 9
  • 33
  • 59
17
votes
3 answers

UpdatePanel Exception Handling

Where exceptions occur in the UpdatePanels I've implemented in the ASP.NET web app I'm building, they cause a JavaScript error on the page with some high level error output available in the alert. This is OKish for development, but as soon as the…
Chris
  • 1,324
  • 5
  • 18
  • 29
16
votes
3 answers

Call a Javascript Function after UpdatePanel Postback Issue

I basically have in my UpdatePanel a literal that generates a Javascript array based on a method in my codebehind. I don't have an issue when it comes to loading my content on page load. But if I try and carry out a search to update my Javascript…
R100
  • 471
  • 1
  • 10
  • 25
16
votes
8 answers

Update an UpdatePanel manually using JavaScript or jQuery

Is it possible to update an UpdatePanel manually using JavaScript or jQuery? What I have is a TextBox at the top of my page. When a user leaves that TextBox I want to run some server code (it will add a record to my database) then at the bottom of…
Rush Frisby
  • 11,388
  • 19
  • 63
  • 83
15
votes
3 answers

The type or namespace name UpdatePanel does not exist in the namespace System.Web.UI

I'm working on a website built by another developer that targets ASP.NET 3.5. I'm trying to add an update panel around a bit of code, but whenever I attempt to do so I get the error posted in the title. I've tried including the ajaxcontroltoolkit…
Kyle
  • 680
  • 1
  • 7
  • 16