DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   Ajax post back problem when using GridView with Object Data Source (http://www.daniweb.com/forums/thread194346.html)

cpd May 28th, 2009 12:49 am
Ajax post back problem when using GridView with Object Data Source
 
Hi,

I have a list page which contains few drop down lists and text boxes used for filter and a gridview. The user enters the filter criteria and then clicks on "Search" button, gridview gets loaded based on search criteria and displays it.

I am using object data source with gridview. I have put all filter criteria in one update panel and the gridview in another as i wanted to avoid loading of gridview data each time the drop down list is changed.

But this is not happening! Each time the dropdownlist is changed, post back is happening, then object associated with object data source is getting called and gridview is loaded which takes lot of time.

How can i avoid this unnecessary loading? Note that the drop down lists are depended on each other such as the items of child drop down list is determined based on it's parent selection.so parent changes, child is reloaded.

Pleases suggest me!

Thanks,

cpd

adatapost May 28th, 2009 4:37 am
Re: Ajax post back problem when using GridView with Object Data Source
 
If you wrote something regarding to bind a dropdownlist then please post the code of this fragment.

dnanetwork Jun 27th, 2009 9:45 am
Re: Ajax post back problem when using GridView with Object Data Source
 
put the dropdown selectedIndex event in the Trigger section...

hope it works...worked 4 me.....

else

asp.net/learn


All times are GMT -4. The time now is 4:48 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC