title: Converting a Page to a User Control
body: <p>If we want to convert a Page to user control then we should also do the following:</p>
  
  <p>“If you aren’t using the code-behind model, make sure you still include a class name in the Control directive by supplying the ClassName attribute. This way, the web page that consumes the control can be strongly typed, which allows it to access properties and methods you’ve added to the control..”</p>
  
  <p><br /></p>
  
  <p>I’m not sure I understand the above quote:</p>
  
  <p>Namely, if we  don’t use code behind class, then ascx class will derive directly from UserControl class! 
  Thus if we don’t use code behind class, then there won’t be any methods or properties added to a control, so why would web page have problems accessing any of user control’s properties and methods? So why would we need to include a class name in Control directive?</p>
  
  <p>thanx</p>