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
15
votes
2 answers

Why does a react onClick event append a question mark to my url?

For some reason my onClick handlers are adding an empty query param to my url when I click them. I was able to fix the issue by adding event.preventDefault to my event handlers but I would like to better understand what actually happened and if this…
Constellates
  • 2,083
  • 3
  • 19
  • 29
15
votes
3 answers

ajax "loading" icon with UpdatePanel postbacks

I have a form that is being dynamically built depending on user selection using Ajax (built in .NET Ajax with UpdatePanel). how can I insert a "standard" ajax loading icon (maybe have it attached to the mouse pointer) while the postback is happening…
Kyle
  • 10,839
  • 17
  • 53
  • 63
13
votes
6 answers

Determine which UpdatePanel causes the partial (asynchronous) PostBack?

In a page contains two UpdatePanels, How can I know which UpdatePanel causes the partial PostBack ? I mean in the Page_Load event handler. This is my code:
Homam
  • 23,263
  • 32
  • 111
  • 187
12
votes
5 answers

Do something javascript before asp.net anypostback

I wanna do something in javascript before page goes for post back. How to run a javascript function before any asp.net postback? $('form').submit(function () { alert('hello'); }); It doesn't work... :(
Emech
  • 611
  • 1
  • 4
  • 16
12
votes
3 answers

ASP.NET postbacks lose the hash in the URL

On an ASP.NET page with a tabstrip, I'm using the hash code in the URL to keep track of what tab I'm on (using the BBQ jQuery plugin). For example: http://mysite.com/foo/home#tab=budget Unfortunately, I've just realized that there are a couple of…
Herb Caudill
  • 50,043
  • 39
  • 124
  • 173
12
votes
3 answers

ASP.NET Ajax CalendarExtender will not update SelectedDate value

For some reason, any CalendarExtenders on an ASP.NET site that is being worked on will not be updated. I have already checked all the obvious places (such as AutoPostBack and AutoEventHandler). The problem is that when I select a date from the…
logain
  • 1,475
  • 1
  • 12
  • 18
12
votes
3 answers

Has form post behavior changed in modern browsers? (or How are double clicks handled by the browser)

Background: We are in the process of writing a registration/payment page, and our philosophy was to code all validation and error checking on the server side first, and then add client side validation as a second step (un-obstructive jQuery). We…
Alex Czarto
  • 3,151
  • 4
  • 28
  • 28
12
votes
6 answers

How to intercept any postback in a page? - ASP.NET

I want to intercept any postbacks in the current page BEFORE it occurs . I want to do some custom manipulation before a postback is served. Any ideas how to do that?
NLV
  • 21,141
  • 40
  • 118
  • 183
12
votes
1 answer

@ViewScoped bean recreated on every postback request when using JSF 2.2

I'm having an issue similar to this post and the answer from @BalusC with 3 solutions but: I'm not using of the mentioned EL expressions I don't want to go with the second solution (it's complex enough for me like this) and partial state saving is…
Rima
  • 457
  • 2
  • 7
  • 18
12
votes
2 answers

How do I make an onclientclick post back using jQuery with asp.net

I want to recreate the the update panel postback without using an update panel to do the postback. What is the generic method for doing this? For example, on Stackoverflow, when you vote up or down on a question it does a postback to update the…
SpoiledTechie.com
  • 10,515
  • 23
  • 77
  • 100
12
votes
5 answers

Maintain scroll position of a div within a page on postback

I have a div within an aspx page with overflow set to auto. The contents of the div are dynamically created and consists of a list of link buttons.
.....
When I scoll down in the div and…
Nikhil
  • 2,028
  • 7
  • 24
  • 33
11
votes
12 answers

Is there a way to clear query string parameters when posting back?

I have a form that sometimes gets linked to with some query string parameters. The problem is that when I post back the form, the query string parameter is still there. It's not really an issue the way I have it setup, but I just don't like it…
John B
  • 20,062
  • 35
  • 120
  • 170
11
votes
5 answers

ASP.NET - Is it possible to trigger a postback from server code?

Is it possible to to programmatically trigger a postback from server code in ASP.NET? I know that it is possible to do a Response.Redirect or Server.Transfer to redirect to a page, but is there a way to trigger a postback to the same page in server…
LJ.
  • 875
  • 2
  • 9
  • 13
11
votes
2 answers

User control inside update panel causing full page postback

I have a user control with linkbuttons (used for paging) and a repeater inside an update panel. The paging works correctly, but is causing a full page postback every time I click through to the next page. The update panel looks like…
Neil
  • 737
  • 1
  • 8
  • 23
11
votes
6 answers

How to let Html Link (anchor) do a postback to be like LinkButton?

I would like to ask how can i make an html anchor (a element) or even any object to do a postback or to execute an server side method? I want to create a custom button (a wrapped with some divs to do some custom them) and i want to implement OnClick…
Ahmed Magdy
  • 5,956
  • 8
  • 43
  • 75