Wednesday, July 15, 2009

Is it possible to pass values between a page and the Web User Control in the page in ASP.Net?

The WUC exists in a DataList, and it needs to get an ID var from the datalist for filtering.

Is it possible to pass values between a page and the Web User Control in the page in ASP.Net?
yes you can.





Just declare the id as a property in the WUC. Then you can access it through an object of the WUC.
Reply:You can do what the above user suggested, or even just use a querystring or session variable.


No comments:

Post a Comment