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.
You must Login to comment.
Revision #10
Sat, Nov 15, 2008 12:27 PM
by
|
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
|
Revision #2
Mon, Feb 4, 2008 8:00 AM
by
|
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
|
Revision #6
Fri, Jul 4, 2008 10:50 AM
by
|
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
|