ASP.NET Forums Scribing Process

xiaoxiao2021-03-06  82

The big until the process is as follows: Skin-DisplayUserwelcome.ascx as an example (this is the login status display) 1. The view-forumgroupview.ascx file is introduced into the ASPNETforums.Controls alias fororms2, which is displayed in the "Whether to log in" Local use

Use AspNetForums.Controls.DisplayUserWelcome3, in DisplayUserWelcome do class A, set the name of the skin skinFilename B, rewriting InitializeSkin (Control skin) function, for realizing the control C on the skin, and if the CreateChildControls SkinnedForumWebControl class () of The operation is different, but also needs to overwrite CreateChildControls (), but only the distinction section is written, and then call it with BASE. D. If the control has an event, you also need to write events 4, which need to set the layout of the control display in the skin, and the control name should be the same as the control name implemented in the DisplayUSerwelCome class. SkinnedforumWebControl class is a crucial class. He distinguishes the control by rewriting CreateChildControls () by rewriting CreateChildControls () by rewriting CreateChildControls (). Note: CreateChildControls () will be called by OnPrender () by the overprender () by default, and call on () / * will call * / FindControl () / * to find a control * / At present, I only discover three categories of skin, 1, masterpage.ascx represented by Aspnetforum, Skin Container 3, Skin-DisplayUSerwelcome.ascx represented by Skin-DisplayUSerwelcome.ascx if they represented You want to change a block in a page, then you should modify skin containers, if you want to change the layout of a piece of inside, you need to modify the function of the skin in Default.aspx, which uses the following user control Delfault. Aspx view-forumgroupview.ascx // Home's overall cloth Skin-loginsmall.ascx // That Skin-NavigationMenu.ascx // Skin-banner.ascx // Custom, the location is on the menu SKIN-DISPLAYUSERWELCOME .ascx // state SKIN-DisplayTitle.ascx // Declaration SKIN-Statistics.ascx // Statistics SKIN-WHOISONLINE.ASCX // Online Information Skin-Displaylegendforum.ascx // Forum Masterpage.ASCX

转载请注明原文地址:https://www.9cbs.com/read-124209.html

New Post(0)