An overview of ASP.NET User Controls

You could have used a lot of controls in your ASP.Net pages, but sometimes you would have felt that a functionality you need is not given by these controls. Under such circumstances you can create your own user control so that you can use it in whatever way you wish.

You can create a user control by combining the html elements and the already existing controls to form a user control that has a different functionality. A user control could be a very simple one or a very complex one. It all depends on the functionalities that you incorporate in it.

The file that is used in creating a user control should have the extension .ascx. After creating such control you have to register it in the .aspx page in which you are going to use that control. The directive used for registering the user control has the following syntax,

<%@ Register TagPrefix="some_prefix" TagName="some_name_for_the_ctrl"
Src="the_.ascx_pagename" %>

After you have registered the user control in the page you can use it within the .aspx page using the following syntax,

<TagPrefix:TagName runat="server" />

You can use the user controls to display functional block of your application in a web page. Even whole page can be converted to a user control if needed!



Product review: .Net comes to WebSphere Portal (InfoWorld via Yahoo! News)
In the beginning, Mainsoft released Visual MainWin for Java EE, which compiled .Net CIL (Common Intermediate Language) code into Java bytecode.

Graphics Toolkits enable Internet application development. (ThomasNet)
With ILOG Diagrammer for .NET 1.5, developers can configure and integrate diagram and dashboard displays inside Windows forms and web forms applications. Windows Presentation Foundation elements ease creation of graphical representations, such as entity-relation diagrams, network topologies, or business processes. With support for ASP.NET Ajax technology, ILOG Gantt for .NET 3.5 facilitates ...

Software offers toolset of web and desktop components. (ThomasNet)
Featuring over 20 controls, RadControls Q1 2008 for ASP.NET AJAX and WinForms provides toolset for building responsive web applications. Program offers shared client-side scripts across all controls, wide cross-browser compatibility, and support for DNN and MOSS, as well as interactive scheduler, HTML editor, and semantic navigation controls. With Q1 2008, Telerik Reporting delivers WYSIWYG ...




______________________________________________________

Recommended Resource



| Converting Web Pages to User Controls in .NET | .Working on .NET User Controls | Overview of ASP.NET User Controls | Web User Controls - Creation and Implementation | Advantages of using User Controls in ASP.NET | Re-usability of User Controls in ASP.NET | Personalizing Web Application by Creating User Controls in .NET | Customizing your Application with VB.net User Controls | Building User Controls in ASP.NET | Examples of User Controls in VB.NET | Example of C# User Controls | Where to use Visual Basic User Controls | Working on User Interface Controls | Creating Dynamic User Controls | Understanding VB .NET User Controls | Creating User Controls VB.NET | How to load user controls dynamically |



_______________

FREE Subscription

Stay Current With the Latest Technology Developments Realted to .NET. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.


 

Privacy Policy for www.dotnet-guide.com