Quantcast
Channel: CodeProject Latest postings for ASP.NET
Viewing all articles
Browse latest Browse all 3938

filterexpression objectdatasource change results into empty list

$
0
0
Hi,
so I have a radiobuttonlist with 2 options: look for a certain object by 2 categories of criteria.
If I change the category, I have an autopostback to change the filterexpression of an objectdatasource and do a databind on the gridview connected to the objectdatasource. However, this results into an empty list. If the user clicks on a button after the postback that does another databind, the list is filled again. I'm hoping to remove the need for the second postback just so I can view my results.
I have 3 controlparameters:
1 parameter connected to the first criteria, 2 parameters connected to the second criteria. Both criteria work just fine, it's the transition from onee category to the other one that is giving me problems as described above.
I added an eventhandler to check if the filterexpression was changed when the filtering is happening, and it had indeed changed to the new filterexpression.
 
Can someone help me out here? Don't want to bother the visitor with 2 postbacks for making 1 choice.

Viewing all articles
Browse latest Browse all 3938

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>