Sunday, June 14, 2009

USER CONTROL

· Have an ascx extension.
· Are compiled at runtime when the page is loaded.
· Visual design is possible, just like an aspx page and uses the ASP.Net page model with code behind file.
· Can only be used on a host aspx page or another user control.
· Cannot be added to the ToolBox.
· Can only be used in the current web application (source must be copied to another application to use).

  • We can’t add to toolbox
  • Just drag and drop from solution explorer to page (aspx)
  • U can register user control to. Aspx page by Register tag
  • A separate copy of the control is required in each application
  • Good for static
  • Easier to create8)
  • Not complied into DLL
  • Here page (user page) can be converted as control then We can use as control in aspx
  • Reusability web page

No comments:

Post a Comment