Questions tagged [postback]

A postback is a technique in web development in which a page sends an HTTP POST back to the same form on the server.

The term postback has two meanings depending on the context, one in relation to web development, and one in relation to open-source software.

In the context of web development, a postback is a page sending an HTTP POST back to the same form on the server.

In the context of open source software, the term "postback" is often used to describe making your changes available in source code form. Questions that would use this meaning of the tag are generally off-topic on Stack Overflow.

2708 questions
8
votes
4 answers

ASP.NET - Control Events Not Firing Inside Repeater

This is a absurdly common issue and having exhausted all of the obvious solutions, I'm hoping SO can offer me some input... I have a UserControl inside a page which contains a repeater housing several controls that cause postback. Trouble is, all of…
Nathan Taylor
  • 24,423
  • 19
  • 99
  • 156
8
votes
1 answer

Force ASP.NET to generate JavaScript for all User Agents

I noticed recently in my ASP.NET web application that if I set my User Agent to an empty string (using a FireFox plug-in to spoof the user agent), then ASP.NET will not generate the javascript required to perform postbacks. More specifically, if you…
Adam
  • 3,063
  • 5
  • 35
  • 49
8
votes
9 answers

Refresh a page, without resending POST data(ASP.NET)

How to refresh and reload the page without resending the POST data? I have tried location.reload() which works absolutely fine on Chrome(which was the testing environment while development). But IE and Firefox went into an Infinite Loop in JS -…
Mr Lonely
  • 111
  • 2
  • 2
  • 3
8
votes
3 answers

ASP.NET private member field loses value on postback

Consider the following code: public partial class TeacherControlPanel : System.Web.UI.Page { protected string username = string.Empty; protected void Page_Load(object sender, EventArgs e) { username =…
user366312
  • 16,949
  • 65
  • 235
  • 452
8
votes
8 answers

ASP.Net: User controls added to placeholder dynamically cannot retrieve values

I am adding some user controls dynamically to a PlaceHolder server control. My user control consists of some labels and some textbox controls. When I submit the form and try to view the contents of the textboxes (within each user control) on the…
Steve Horn
  • 8,818
  • 11
  • 45
  • 60
7
votes
1 answer

How can I stop a postback from refreshing the page at the client

When I start a postback using __doPostBack, a file is created and going back to the user to download in the HttpContext.Current.Response. Because I change the Response, the page including its javascript values is not modified But when I have no file…
Erik Dekker
  • 2,395
  • 5
  • 33
  • 55
7
votes
2 answers

Callback after __doPostBack()?

I am refreshing an UpdatePanel with Javscript by calling a method like so: reloadDropDown = function (newValue) { __doPostBack("DropDown1", ""); selectNewValueInDropDown(newValue); } Inside my UpdatePanel is a