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
89
votes
8 answers

ASP.NET postback with JavaScript

I have several small divs which are utilizing jQuery draggable. These divs are placed in an UpdatePanel, and on dragstop I use the _doPostBack() JavaScript function, where I extract necessary information from the page's form. My problem is that when…
ErnieStings
  • 6,333
  • 19
  • 47
  • 54
81
votes
9 answers

Rebinding events in jQuery after Ajax update (updatepanel)

I have several input and option elements on my page, each (well almost) have an event attached to update some text on the page once they change. I use jQuery which is really really cool :) I also use Microsofts Ajax framework, utilizing the…
Per Hornshøj-Schierbeck
  • 15,097
  • 21
  • 80
  • 101
72
votes
5 answers

How to have a javascript callback executed after an update panel postback?

I'm using a jQuery tip plugin to show help tips when the user hovers certain elements of the page. I need to register the plugin events after the page is loaded using css selectors. The problem is I'm using an ASP.NET Update Panel and after the…
tsbnunes
  • 1,003
  • 2
  • 10
  • 11
65
votes
5 answers

How can I run some javascript after an update panel refreshes?

I have a pageLoad function that sets some CSS on a .ascx control that I cannot change. On page load everything is fine, but when an update panel updates the control, my CSS is no longer applied. How can I rerun my function after the page updates? …
Hcabnettek
  • 12,678
  • 38
  • 124
  • 190
58
votes
7 answers

ASP.NET UpdatePanel Time Out

I'm making a request from an UpdatePanel that takes more then 90 seconds. I'm getting this timeout error: Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out. Does anyone know if there…
ctrlShiftBryan
  • 27,092
  • 26
  • 73
  • 78
47
votes
6 answers

RegisterStartupScript doesn't work with ScriptManager,Updatepanel. Why is that?

protected void timer1_Tick(object sender, EventArgs e) { foreach (RepeaterItem item in rpChat.Items) { TextBox txt = item.FindControl("txtChatMessage") as TextBox; if (txt != null) { …
sly_Chandan
  • 3,437
  • 12
  • 54
  • 83
44
votes
8 answers

ModalPopupExtender OK Button click event not firing?

I have a Button inside an UpdatePanel. The button is being used as the OK button for a ModalPopupExtender. For some reason, the button click event is not firing. Any ideas? Am I missing something?
Kyle Trauberman
  • 25,414
  • 13
  • 85
  • 121
38
votes
8 answers

Full postback triggered by LinkButton inside GridView inside UpdatePanel

I have a GridView inside of a UpdatePanel. In a template field is a button I use for marking items. Functionally, this works fine, but the button always triggers a full page postback instead of a partial postback. How do I get the button to trigger…
Kevin Albrecht
  • 6,974
  • 7
  • 44
  • 56
34
votes
10 answers

Can't get ScriptManager.RegisterStartupScript in WebControl nested in UpdatePanel to work

I am having what I believe should be a fairly simple problem, but for the life of me I cannot see my problem. The problem is related to ScriptManager.RegisterStartupScript, something I have used many times before. The scenario I have is that I have…
Chris
  • 3,487
  • 3
  • 25
  • 37
34
votes
3 answers

ASP.NET Display "Loading..." message while update panel is updating

Hello I am creating an ASP.NET/C# application I have an update panel that takes time to update. Is there a way to display a "Loading... Please Wait" Message during the time of the calculations? Currently I am using AJAX panel animation fade in/fade…
Y2theZ
  • 10,162
  • 38
  • 131
  • 200
32
votes
3 answers

How to call a client side javascript function after a specific UpdatePanel has been loaded

How is it possible to call a client side javascript method after a specific update panel has been loaded? Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler) does not work for me because this will fire after ANY update…
James
28
votes
4 answers

What is the difference between AsyncPostBackTrigger & PostBackTrigger?

What is the difference between AsyncPostBackTrigger & PostBackTrigger?
vmahdavi
  • 399
  • 1
  • 4
  • 9
26
votes
4 answers

How do I make a Textbox Postback on KeyUp?

I have a Textbox that changes the content of a dropdown in the OnTextChanged event. This event seems to fire when the textbox loses focus. How do I make this happen on the keypress or keyup event? Here is an example of my code
Russ Bradberry
  • 10,705
  • 17
  • 69
  • 85
25
votes
6 answers

ASP.NET - UpdatePanel and JavaScript

Is there a way to execute script when an UpdatePanel process is finished. I have a page that allows "inserting", "copying", and "editing" of a record. This is all done on an UpdatePanel to prevent a page navigation. Somewhere else on the page I…
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
24
votes
4 answers

jQuery AJAX vs. UpdatePanel

We've got a page with a ton of jQuery (approximately 2000 lines) that we want to trim down b/c it is a maintenance nightmare, and it might be easier to maintain on the server. We've thought about using UpdatePanel for this. However, we don't like…
Macho Matt
  • 1,286
  • 4
  • 16
  • 32
1
2 3
99 100