Questions tagged [autopostback]

autopostback is an attribute set on asp.NET web controls, indicating that interacting with them causes a post action in the browser.

312 questions
45
votes
9 answers

Difference between AutoPostBack=True and AutoPostBack=False?

What's the difference between AutoPostBack=True and AutoPostBack=False?
bindu
  • 459
  • 1
  • 4
  • 4
21
votes
4 answers

C# How to set the autopostback property when using asp.net mvc?

I am using asp.net MVC framework. On my page i have a dropdwonbox and when an option is clicked i want to go to another page. But i can't find how/where to set the autopostback property to true. This is the code i'm using: Aspx: <%=…
Martijn
  • 24,441
  • 60
  • 174
  • 261
12
votes
2 answers

How to avoid UpdatePanel scrolling on AutoPostBack?

I have an ASP.NET FormView within an updatepanel. I'm auto-saving the form by setting AutoPostBack=true for each of the items within the FormView. This means the user can click a few elements in quick succession and fire off a few async postbacks…
Joe Niland
  • 885
  • 1
  • 14
  • 31
12
votes
6 answers

Asp.Net, DropDownList, AutoPostBack and Google Chrome

I've a simple asp.net page (framework 3.5) and an UpdatePanel with a series of dropdownlist I want to populate asyncronously. All works fine in all major browsers (Opera, Safari, IE6, IE7, FF3), but not in Chrome. Chrome seems to ignore the…
tanathos
  • 5,566
  • 4
  • 34
  • 46
12
votes
6 answers

Have to click button twice in asp.net (after autopostback textbox)

On a page I have: In EmailTextBox_Changed, it counts up…
Paul
  • 9,409
  • 13
  • 64
  • 113
8
votes
8 answers

Asp.NET DropDownList Resets SelectedIndex after PostBack

After doing a lot of research online I'm still stumped by this problem. I have a page that loads the names and count of categories into a drop down list. I only do this if !(Page.IsPostBack). When AutoPostBack fires the SelectedIndex = 0. I've…
Tyler Ferraro
  • 3,753
  • 1
  • 21
  • 28
7
votes
4 answers

Why SelectedIndexChanged fires for a DropDownList when a button is clicked?

I have an ASP.NET DropDownList with AutoPostBack=true and EnableViewState=false. I have a button on the page that does nothing. If I change the selection in the ddl, it posts back , which is expected. If I click the button, the page posts back and…
Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374
7
votes
3 answers

AutoPostback with TextBox loses focus

A TextBox is set to AutoPostback as changing the value should cause a number of (display-only) fields to be recalculated and displayed. That works fine. However, when the field is tabbed out of, the focus briefly moves on to the next field, then…
Little JB
  • 153
  • 2
  • 2
  • 8
6
votes
3 answers

DropDownList SelectedIndex value not updating on AutoPostback

It looks like this question was addressed here, but his solution did not work for me. I am creating a dynamic dropdown menu system that populates a secondary dropdownlist with the results of a query based on the selected item in the first…
Anders
  • 12,088
  • 34
  • 98
  • 146
6
votes
1 answer

Doing a postback without AutoPostBack

I've got a WebForm with two drop down lists, where the contents of the second one depend on the first. So if the user changes the category, the second dropdown needs to be filled with the list of subcategories. This sounds like a typical job for…
Mr Lister
  • 45,515
  • 15
  • 108
  • 150
5
votes
5 answers

ASP .Net Textbox Textchanged event

I have a webpage. I show records from table, lets say, students in my page. I query all the students and show them in grid. I want to use a textbox for filtering the datagridview results. For example if the user types a in the textbox the grid will…
Ozgur Dogus
  • 911
  • 3
  • 14
  • 38
5
votes
2 answers

C# Webform file upload with button postback not with POST

I have a Webform(aspx) page. In it we basically have this form that we "post" when pressing a button, but in reality it is not a true httpPOST, it is actually just a postback onclick event on that button. Within that event we get all information we…
HenrikP
  • 844
  • 5
  • 16
  • 37
5
votes
6 answers

postback when scrolling ListBox in chrome

with scrolling list box, the page will refresh(unwanted). this problem is only in chrome (Version 27). In other browsers it works properly. .aspx file:
sohrab
  • 53
  • 5
4
votes
3 answers

Autopostback is working only for the first time in ASP.NET?

Here i am using a radio button to calculate the date difference between two textboxes and i am showing it in another textbox.It is working only for the first time when i click the radio button after that it is not working..Here is my…
bala3569
  • 10,832
  • 28
  • 102
  • 146
4
votes
4 answers

Listbox Scrolling to Top on autopostback

Why does asp.net listbox always scroll to top upon selecting an item when autopostback is on? How can I prevent this from happening?
Troy Mitchel
  • 1,790
  • 11
  • 50
  • 88
1
2 3
20 21