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
21
votes
6 answers

jQueryUI Dialog + Firefox + ASP.Net = access to strict mode caller function is censored

I have a page that works great in IE and Chrome, but doesn't work in Firefox and Opera. When I say it doesn't work I mean that the Submit button doesn't do anything at all. It is a page with several nested UpdatePanels on it and a couple of jQueryUI…
cjbarth
  • 4,189
  • 6
  • 43
  • 62
20
votes
8 answers

Implementation of IsPostBack in page load

The more I use ASP.NET, the more if (!IsPostBack) {} seems pointless... First example: For example, I just Googled an issue, they said use this as part of the solution: if (!Page.IsPostBack) { Page.LoadComplete += new…
Yerg
  • 277
  • 1
  • 3
  • 8
20
votes
7 answers

How to prevent a password input from clearing after submit?

If you have a page with an . How can you keep the value after a postback? This is my problem: At the registration screen of my app you need to enter a password. Then you click submit, a postback occurs and the…
user29964
  • 15,740
  • 21
  • 56
  • 63
19
votes
3 answers

How to know if I am in a postback?

I've read in JSF docs that ResponseStateManager has a isPostBack() method. How (and where) can I have an instance of ResponseStateManager?
Pier Luigi
  • 7,871
  • 9
  • 36
  • 46
19
votes
3 answers

ASP.NET MVC doesn't work with ViewState and Postback?

Perhaps this is a naive question. In my understanding, ASP.NET MVC cannot work with ViewState and Postback which is fundamentals of ASP.NET forms. Is that correct? If that's it, then all ASP.NET Web Controls depending on ViewState & Postback cannot…
Morgan Cheng
  • 73,950
  • 66
  • 171
  • 230
18
votes
7 answers

Refresh the page after a postback action in asp.net

I have command button added in my asp.net grids. After performing an action using that button, we refresh the grid to reflect the new data. (basically this action duplicates the grid row). Now when user refresh the page using F5, an alert message is…
MOZILLA
  • 5,862
  • 14
  • 53
  • 59
18
votes
2 answers

ASP.NET DropDownList not retaining selected item on postback

I have an ASP DropDownList that gets populated on the Page_Load event, after i select an item and hit a button the selected item gets cleared and the first item in the DropDownList gets selected. (The DropDownList is only populated when the page is…
mattgcon
  • 4,768
  • 19
  • 69
  • 117
18
votes
3 answers

Partial postback with Javascript

I couldn't find something similar in SO. In ASP.NET, is there any way that on cue I can cause a partial postback with Javascript in an UpdatePanel? I tried __doPostBack() but it does a full postback. I can trick it with a dummy button and fire…
BeemerGuy
  • 8,139
  • 2
  • 35
  • 46
17
votes
8 answers

Forcing a postback

Is there a way to force a postback in code? I'm looking to force the raising of a postback from a method in the c# code behind my asp.net web application.
shaun.breach
  • 229
  • 1
  • 3
  • 11
17
votes
3 answers

JavaScript: Multiple parameters in __doPostBack

First of all, the only post (calling-multiple-dopostback-from-javascript) I found about this didn't help my problem, so I don't belive this post is a duplicate. I have this JavaScript function in my ASPX webpage that includes a __doPostBack…
Gunnar
  • 2,585
  • 4
  • 21
  • 22
16
votes
8 answers

After postback my JavaScript function doesn't work in ASP.NET

I have common functions and I collapse it on CommonFunctions.js in Scripts folder. I include it on my master page and use it on my pages. When I do any post back on a page, my function doesn't work. My CommonFunctions.js: $(function () { gf(); …
Mennan
  • 4,451
  • 13
  • 54
  • 86
16
votes
1 answer

Is it possible to disable f:event type="preRenderView" listener on postback?

Is it possible to "disable" triggering of this action when doing postback?
LuckyLuke
  • 47,771
  • 85
  • 270
  • 434
16
votes
6 answers

ASP.NET postback with jQuery?

I have a ASP.NET button but recently, I replaced it with a standard HTML button ... What I need to do is a postback to an ASP.NET page and ensure a method is called. The previous button was an ASP.NET button, so I had this event: Protected Sub…
mark smith
  • 20,637
  • 47
  • 135
  • 187
16
votes
4 answers

ASP.NET dynamically created controls and Postback

I know this question has been asked thousands of times, and I've struggled with it before, but for some reason, I can't accomplish what I want to accomplish... I have a dynamically added LinkButton that when clicked will dynamically add a control…
Honus Wagner
  • 2,830
  • 13
  • 44
  • 61
15
votes
5 answers

Base class includes field but type not compatible with type of control

The base class includes the field 'lbl', but its type (web.App_Code.CustomLabelControl) is not compatible with the type of control (web.App_Code.CustomLabelControl). I had done many custom controls before the same way but today I ran into this…
Deeptechtons
  • 10,945
  • 27
  • 96
  • 178