Ajax post back problem when using GridView with Object Data Source

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2008
Posts: 1
Reputation: cpd is an unknown quantity at this point 
Solved Threads: 0
cpd cpd is offline Offline
Newbie Poster

Ajax post back problem when using GridView with Object Data Source

 
0
  #1
May 28th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,612
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 463
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: Ajax post back problem when using GridView with Object Data Source

 
0
  #2
May 28th, 2009
If you wrote something regarding to bind a dropdownlist then please post the code of this fragment.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 164
Reputation: dnanetwork has a little shameless behaviour in the past 
Solved Threads: 24
dnanetwork's Avatar
dnanetwork dnanetwork is offline Offline
Junior Poster

Re: Ajax post back problem when using GridView with Object Data Source

 
0
  #3
Jun 27th, 2009
put the dropdown selectedIndex event in the Trigger section...

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

else

asp.net/learn
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC