Most of the developer knows, how to implement the Custom Control or User Control an ASP.NET Page. we have well experience in using the directive tag.
if we need to use the Custom Control or User Control on numbers of pages, it is possible to register in web.config file. It is reduce the redundancy code and we don’t need to implement the directives.
the web.config section is
<-controls->
<-add src="~/Controls/FlashNews.ascx" tagprefix="skm" tagname=" FlashNews "->
<-controls->
Once we register the control here we can access the User Control on number of pages using following syntax
skm:flashnews id="cusFlash" runat="server" cssclass="small-tab"/
Friday, December 19, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment