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
11
votes
5 answers

ASP:TextBox Value disappears in postback only when password

I have an asp.net textbox like this: It is, as you might have guessed, the text box from an on screen PIN pad. Javascript fills in the…
JessicaB
  • 159
  • 1
  • 1
  • 4
11
votes
4 answers

Jquery - how to open a window and POST to it? (required for bank processing page - doesn't accept querystring)

Is there anyway that i can open a new window in the browser using jquery and post to it. Reason being is my bank requires that i open there payment gateway and pass my values by POST and not GET. I have a bit of workaround at the moment but its not…
mark smith
  • 20,637
  • 47
  • 135
  • 187
10
votes
3 answers

dynamic columns disappears after postback

I have a GridView with some BoundFields and two TemplateFields. In these two TemplateFields, I dynamically create UserControls containing a DropDownList and a TextBox, which users can modify. When I try to get the values of the controls after a…
user874854
  • 115
  • 2
  • 7
10
votes
3 answers

Hidden value assigned in js lost after postback

Here's my problem. I have a hidden field whose value I change through a javascript method. The problem is after postback the value is lost. How can I persist the value after postback? Thanks! .aspx File
Gonzalo
  • 982
  • 6
  • 23
  • 39
10
votes
9 answers

How to check if page is postback within reserved function pageLoad on ASP.NET AJAX

I'm looking for a way to check within pageLoad() if this method is raised during load event because of a postback/async postback or because of being loaded and access the first time. This is similar to Page.IsPostback property within code behind…
Ricky Supit
  • 3,310
  • 5
  • 26
  • 20
10
votes
1 answer

How to prevent postback while pressing enter key from inside html input textbox?

Am using html input textbox in .aspx page, when i change values in that textbox and hit enter key means page get postback. How to prevent this postback other than returning false in "onkeypress" event. Code: textBox[0].setAttribute("onkeydown",…
Karthi Keyan
  • 4,243
  • 5
  • 24
  • 47
10
votes
3 answers

Checkbox in TemplateField in Gridview loses checked on postback

I have a gridview with a template field. In that template field is a checkbox. I have a submit button outside of the gridview to assign the records that were checked. On the postback no checkboxes register as being checked. Here is my…
Jhorra
  • 6,233
  • 21
  • 69
  • 123
10
votes
3 answers

Postback trigger for button inside a usercontrol in Updatepanel

I have a user control placed inside an update panel, ie like this.
Mahesh KP
  • 6,248
  • 13
  • 50
  • 71
9
votes
1 answer

DatePicker disappears after postback

I have an asp:TextBox associated to a jquery DatePicker. This input has a onTextChangedEvent that updates a Literal Control. All this code is inside an UpdatePanel so the Literal Control changes but the page doesn't refresh. The problem I'm facing…
Gonzalo
  • 982
  • 6
  • 23
  • 39
9
votes
6 answers

How to keep data through postbacks?

I am working on a ASP.NET/C# Website. I am reading data from a database, saving it in a Dictionary Dictionary Results and then binding it to a ASP.NET chart PieChart.Series["Series"].Points.DataBind(Results, "Key", "Value",…
Y2theZ
  • 10,162
  • 38
  • 131
  • 200
9
votes
2 answers

Why doesn't returning false from OnClientClick cancel the postback

I have a LinkButton where I use the OnClientClick property to ask the user whether he really wants to perform an action, e.g:
M4N
  • 94,805
  • 45
  • 217
  • 260
9
votes
3 answers

ASP.NET / DataItem of DataList is null after Postback

After postback (click on a button) in my ASP.NET form, all the DataItem of my form are null. Why? What should I do to retrieve the content of the DataList even after postback? protected void buttonAddRecord_Click(object sender, EventArgs e) { …
user356178
9
votes
2 answers

Postback Fails On Default Document

So I've created a Web Application (not Web Site) with ASP.NET (C#) and it compiles just fine in the VS13 environment. But when I publish it on IIS, the Postback on the Default Document fails. The Default Document is called LoginPage.aspx. As soon as…
Drew Kennedy
  • 4,118
  • 4
  • 24
  • 34
9
votes
4 answers

ASP.NET : How can i maintain objects between postbacks?

How can i maintain objects between ASP.NET page post backs ? I have an ASP.NET web page.when i click one asp.net button, I will call my function (Save ) which will create an object of my custom class (UserDetails class) and save the details to…
Shyju
  • 214,206
  • 104
  • 411
  • 497
9
votes
5 answers

How to determine which button caused postback

I have 2 button controls. When I click one i'm trying to determine which one caused a postback in the page load. How to do determine this?
Will
  • 1,084
  • 5
  • 20
  • 42