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
297
votes
17 answers

jQuery UI Dialog with ASP.NET button postback

I have a jQuery UI Dialog working great on my ASP.NET page: jQuery(function() { jQuery("#dialog").dialog({ draggable: true, resizable: true, show: 'Transfer', hide: 'Transfer', width: 320, …
Paul
  • 12,359
  • 20
  • 64
  • 101
252
votes
40 answers

Invalid postback or callback argument. Event validation is enabled using ''

I am getting the following error when I post back a page from the client-side. I have JavaScript code that modifies an asp:ListBox on the client side. How do we fix this? Error details below: Server Error in '/XXX'…
Julius A
  • 38,062
  • 26
  • 74
  • 96
173
votes
7 answers

How to use __doPostBack()

I'm trying to create an asyncrhonous postback in ASP.NET using __doPostBack(), but I have no idea how to do it. I want to use vanilla JavaScript. Something simple like a button click can cause the __doPostBack() event to fire. I'm just trying to…
Michael Kerute
  • 1,751
  • 2
  • 11
  • 5
166
votes
11 answers

What is a postback?

I'm making my way into web development and have seen the word postback thrown around. Coming from a non-web based background, what does a new web developer have to know about postbacks? (i.e. what are they and when do they arise?) Any more…
Scott Saad
  • 17,962
  • 11
  • 63
  • 84
118
votes
6 answers

Difference between a Postback and a Callback

I keep on hearing this words 'callback' and 'postback' tossed around. What is the difference between two ? Is postback very specific to the ASP.NET pages ?
Biswanath
  • 9,075
  • 12
  • 44
  • 58
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
74
votes
11 answers

ListItems attributes in a DropDownList are lost on postback?

A coworker showed me this: He has a DropDownList and a button on a web page. Here's the code behind: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ListItem item = new ListItem("1"); …
David Hodgson
  • 10,104
  • 17
  • 56
  • 77
59
votes
5 answers

How can I disable all setTimeout events?

I am using ajax and asp.net. iI have a javascript function which creates many other javascript functions with setTimeout. After asynchronous postback happenes, I want to disable all of these setTimeouted events. How can I do that?
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
56
votes
7 answers

OnclientClick and OnClick is not working at the same time?

I have a button like the following, When I use my button like that, onclick is not firing. When I remove OnClientClick, then…
stckvrflw
  • 1,489
  • 3
  • 22
  • 37
47
votes
11 answers
44
votes
5 answers

What is the difference between Page.IsPostBack and Page.IsCallBack?

I've recently ran into some code that checks Page.IsCallBack but I wasn't sure how it is different from Page.IsPostBack. Can anyone enlighten me? Edit: Are they mutually exclusive or can both occur at the same time in a given situation?
Joe Phillips
  • 49,743
  • 32
  • 103
  • 159
43
votes
5 answers

Which control caused the postback?

I have two buttons: How can I determine on pageLoad which one of this two caused the postback? Is there a short solution as I know…
hhh3112
  • 2,167
  • 10
  • 36
  • 55
38
votes
6 answers

How Do I Post and then redirect to an external URL from ASP.Net?

ASP.NET server-side controls postback to their own page. This makes cases where you want to redirect a user to an external page, but need to post to that page for some reason (for authentication, for instance) a pain. An HttpWebRequest works great…
saalon
  • 3,644
  • 3
  • 33
  • 40
36
votes
3 answers

Retrieving data from a POST method in ASP.NET

I am using ASP.NET. There is a system that needs to POST data to my site and all they asked for is for me to provide them with a URL. So I gave them my URL http://www.example.com/Test.aspx. Now I do not know exactly how they POST it but now on my…
Etienne
  • 7,141
  • 42
  • 108
  • 160
31
votes
12 answers

How to maintain scroll position on autopostback?

How can I get back to the same position of a page on postback. It always seems to get to the top of the page. I've tried using maintainScrollPositionOnPostBack = "true" But its not working.
BobLoblaw
  • 1,873
  • 4
  • 18
  • 27
1
2 3
99 100