I have a page Products.aspx. User control ucProd is inside Products.aspx. ucPager is another user control inside ucProd.
On product page load I bind ucProd as: uProd.dataSource = dtProd to bind a lsitview inside ucProd.
When the user clicks a link button inside ucPager, I need to be able to rebind data to ucProd from Product.aspx. But when I try to do uProd.dataSource = dtProd , ucProd evaluates to Nothing. Please help.
Session("dtProd") = dtProd;
When you bind, instead of:
uProd.dataSource = dtProd
Use this:
uProd.dataSource = Session("dtProd");