Needless to say about the user control ~!. Net friends all know ~!
Umbraco is originally developed by. net, so it is easy to reference a user control that you write yourself.
First, you can write your own user controls in vs2005. For example, my website needs an online message function.
We can use the tables in the database. If you do not like the tables, you can also press your own keys, which is very convenient.
CodeNo more explanation ~! It is the same as our usual development.
After the configuration is completed
Copy the file to our project --- For example: C: \ Inetpub \ wwwroot \ gbkj \ usercontrols
Directory. The \ usercontrols directory is required.
Then open the. ascx file in notepad and add
<Form ID = "form1" runat = "server"> </form> label
Because in.. net, the user control must be in. this set of tags is available on the ASPX page, but we do not have them here. ASPX page, so we add the above Code to the user control;
Save.
Go to the background and create a file in developer --> macros. You don't need to press the XSLT file here,
Here, the user control can be found and saved.
Then, call the file where we need to use the control.
For example, <? Umbraco_macro macroalias = "leavetext"> </? Umbraco_macro>
Save ~! You can browse again ~! Effect.
Isn't it easy? Well, you can add some specific features as needed ~!