954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

cpd
Newbie Poster
2 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

If you wrote something regarding to bind a dropdownlist then please post the code of this fragment.

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

put the dropdown selectedIndex event in the Trigger section...

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

else

asp.net/learn

dnanetwork
Practically a Master Poster
Banned
633 posts since May 2008
Reputation Points: 28
Solved Threads: 106
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You