Working with a Grid View in an Update Panel is pretty quick and simple for many reasons, but when you require a full postback instead of an asynchronous one you can run into some trouble.I have a form with several dropdownlist boxes and a couple text boxes.I have read the documentation here which states "By default, any postback control inside an Update Panel control causes an asynchronous postback and refreshes the panel's content." yet, when I place a Grid View and a Button control inside the element, unless the button has a defined On Click event to do grid1. Also, I have tried by specifying an Async Post Back Trigger on the Update Panel for the Button, but again I got the same behaviour.Now, I noticed that the Update Panel DOES refresh when I press a Button without On Click event, however the Grid View inside it does not. Must I always have that call to code behind to explicitly refresh it? Config There is nothing wrong with update-panel code - issue is that grid-view will not demand the data again from data-source on post-back.I'm not sure what I'm missing here, but I've run out of ideas...Here's my code: you've got autopostback set to true on the ddl so it sounds like your request must be coming back. are you explicitly calling databind() on the gridview?
would be invoked automatically - see the documentation for Data Bind, quote from doc: The Data Bind method is called automatically if the Data Source ID property of the Grid View control refers to a valid data source control..In my latest job, I've been doing a lot of work with Microsoft and ASP. I've recently started using the AJAX library for ASP.Net 2.0 and, while it has gone surprising well for the most part, there was one problem in general I couldn't find an answer for online so I thought I'd post my solution.What I found is that the Update button on the gridview uses the Web Form_Do Post Back With Options function instead of the __do Post Back function when a Validation Group is not assigned to the validation control.When it uses the Web Form_Do Post Back With Options function, it fails to do anything.This saves you a few lines of code (configuring the triggers) but will also help if you dynamically add controls to your Grid View that will also trigger postback events on your page. I'm implementing ATLAS into my current web application. Everything is great, except I have a Button Field that executes some server-side code and causes a Post Back. The Button Field, before I added the Update Panel, caused a Post Back and changed the Visible property of other controls on the page. I'm basically trying to figure out if I can override the Client Call Back processing of the Update Panel for this individual Button Field or if there are some alternative methods for this. Now when I click the Select button, I want a Panel later on in the page to change the Visible property from FALSE to TRUE.Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site. I set them all (except the text boxes of course) to Auto Postback, but when any of the dropdownlists are changed the query is not sent to the database and the gridview continues to display the empty dataset message.So I wrote a small event handler that reinitializes the databinding for the datasource and the gridview itself and attached it to all of the controls Selected Index Changed events, but still no database interaction happens.]]