Tuesday, May 06, 2008

Creating/Setting properties of User Control in ASP.NET

You might have came across a situation where you need to pass a value from your .aspx page to the user control (.ascx). This is possible in several ways including storing values into session or database and again retrieving at the user controls.

However, the easiest and optimized way is to create a properties of the user control and set it into the .aspx page and access it from the user control.

Today, I am going to describe you a step-wise process of creating, setting and retrieving properties of the user control.

For more visit http://www.dotnetfunda.com/articles/article16.aspx

No comments: