Saturday, February 6, 2010

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.Is it possible to pass values between a page and the Web User Control in the page in ASP.Net?
You can do what the above user suggested, or even just use a querystring or session variable.

No comments:

Post a Comment