ascx

 Rate It (0)

Web User controls in ASP.NET end with the extension .ascx. They can be used in an ASP.NET page by registering them either on the page with the Register tag or in the web.config file.  User Controls are very useful when reusing logic. Custom server controls are used in a situations where the code will be reused through a DLL.

Example

<%@ Register src="~/Controls/LatestPosts.ascx" TagName="LatestPosts" TagPrefix="pageElements" %>
<pageElements:LatestPosts ID="latest1" runat="server"></pageElements:LatestPosts>

Links

Revision number 5, Thursday, July 10, 2008 6:00:08 PM by
This is not the most up to date version of this article. The most recent version can be found here.

Comments

Related Articles

File Types

Here is a list of file extensions which are configured by default to be handled byASP.NET 2.0. asax used for application level logic (global.asax) ascx used for creating a web user control. ashx used to create a custom httphandler asmx used to create web services

Authentication and Authorization

Authentication means figuring out who you are and Authorization means figuring out what you can do. Both are fundamental parts of the ASP.NET Security Model. An Overview of Authentication and Authorization - This is a good place to start. Samples and Quickstarts

Composite Controls

Composite controls are controls thatcombine multiple controls together to forma new reusable control. For example, a simple composite control could consist of both aLabel control and a TextBox control. You can use UserControls (.ascx) files to create some

Shortcuts

Table of Contents

Top Wiki Contributors

(last 30 days)

  1. mbanavige (5)
  2. SGWellens (4)
  3. maartenba (2)
  4. rami_nassar (2)
  5. stiansol (2)
  6. MisterFantastic (2)
  7. satish1.v (1)
  8. raklos (1)
  9. mosessaur (1)
  10. Jos Branders (1)

Advertise Here

Microsoft Communities
Page view counter