Tuesday 8 November 2011

How to register the component or server page

Question Received:
        How to use the AjaxControlToolkit or Control WebPages into ActiveServerPages(.aspx)

Solution:
       First, Register the controls into asp by,
       For any Toolkit,
           <%@ Register 
                           Assembly="AjaxControlToolkit" 
                           Namespace="AjaxControlToolkit" 
                           TagPrefix="asp" %>
       For any Control page,
           <%@ Register 
                           Src="~/MessageBox.ascx" 
                           TagName="uscMsgBox" 
                           TagPrefix="usc" %>

TagName:
      'TagName' is the class that implements the necessary methods.
       For Toolkit,
                  Menu, TabContainer, TabPanel,... are predefined
       For Control page,
                   It is the object created to class implemented in the ctrl page.
              Methods should be implemented for using it explicitly.

No comments:

Post a Comment