daelmo wrote:
Yeah, the Page_Load is a good place. Remember to surround the expression with an IF block checking for the IsPostBack status.
thanks for your reply!
if I sorrund it in a if block that cheks for IsPostBask, do the datasource2 reload it at every postback or at every callback?
I ask it, because I got a strange resultset when I use PrefetchPath2 in my Asp.Net page.
I have a LLBLGenDataSource2, that has got a Session SelectParameter (live persistence ON) On page load i pass to the DataSource2 a prefetch path.
If load the page WITHOUT passing prefetchpath2, i got the right resultset.
If I pass the PrefetchPath2, my DataSource2 builds a query with some SELECT ... IN statement that returns a strange resultset.
Can you provide me a best practice example for Asp.Net that shows how can I use: LLBLGenDataSource2 (live persistence ON), Session SelectParameter (for now i set it via Designer) and PrefetchPath2.
thanks for your patience!