| You don't need to read this, it is an explanation of what is happening under the hood then you drag a 3. party Server Control from the Toolbox to the Designer (design-view), especially what is happening then you drag the SlidingMenu. |
|
| Then you drag the SlidingMenu icon from the Toolbar to
the Designer (design-view) of your Web Form page, the following will happen
automatically: |
| 1. |
The Webmodelling.SlidingMenu.dll will be copied to
your web project bin folder and added to your web project reference list - if not already there. |
| 2. |
a @Register directive will be written at the top of your
Web Form page - if not already there
<%@ Register TagPrefix="wm"
Namespace="Webmodelling.Controls.Menues"
Assembly="Webmodelling.SlidingMenu" %> |
| 3. |
Namespace enabling IntelliSense XSD background for SlidingMenu will be written to the BODY tag of your Web Form page - if not already there.
<body
xmlns:wm="http://www.menulab.com/schemas/SlidingMenu-v-2-0-IntelliSense"
...> |
| 4. |
The SlidingMenu will be declared in the
code-behind file of your Web Form page
protected Webmodelling.Controls.Menues.SlidingMenu
slidingmenu1; |
| 5. |
An xml-tag will be inserted at your Web Form page
(html-view)
<wm:SlidingMenu
id="slidingmenu1"
runat="server"
style="[some style]">[Some simple run-ready SlidingMenu markup for beginners]</wm:SlidingMenu> |
|
|
| 1) will happen only once for a whole
project (if the project contain one or more SlidingMenus |
| 2) and 3) will happen once for each page (if
the page contain one or more SlidingMenus) |
| 4) and 5) will happen for each SlidingMenu |
|
| Note: The xmlns attribute is only for
IntelliSense support, if you don't want the namespace to appear in your online
code, you can simply just delete it after use (remember! if you write in the
namespace manually that namespaces are case sensitive). |