How can we create custom controls in ASP .NET ?

 Posted by Bharathi Cherukuri on 2/28/2012 | Category: ASP.NET Interview questions | Views: 2595 | Points: 40

We can create user controls using .ASCX in ASP .NET.
Once .ASCX file is created, the two things to be done inprder to use ASCX in your project are:

1. Register the ASCX control in page using <%@ Register directive%> tag.


<%@ Register tagprefix="Accounting" Tagname="footer" Src="Footer.ascx" %>

2. Now to use the above accounting footer in the page tou may use the below directive.

<Accounting:footer runat="server">

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Jish on: 3/7/2012 | Points: 10
I Would like to know whether MVC will support WebForms? reply please........

Login to post response