Try to modify ASP.NET Forums

xiaoxiao2021-03-06  86

Try to modify ASP.NET Forums

Modifying the target: I have only selected "permanent saving" and "don't save" before, I can modify it to select "Don't save", "save a day", "save one month", "save one Year "four options to modify the source code: Baoyu Chinese version, involving parts: a modification of the skin, a modification of the custom control, adding a class from DropDownList, the skin XML modification first part: Modify the skin XML? In ASP.NET Forums' Web / Languages ​​stores different languages ​​used on the skin, we need to modify the resources under / zh-cn directory, find

auto login

After finding the shield, increase

do not save

Save a day

Save in January

Save a year

Part II: Add a class public class cookdownlist (DropDownloadropDownload {? Public cookdownlist () {? // read the resources.xml in ResourceManager.getstring, how to read how to read how to read XML Look at ????? Items.add (New ListItem ("Loginsmall_AutoLogin01))))))))))))))); ????? items.add (new ListItem (" Loginsmall_AutoLogin02))))));?? ??? Items.add (New ListItem ("Loginsmall_AutoLogin03))))); ????? Items.Add (New ListInager.getstring (" Loginsmall_AutoLogin04))))); ?????? ?????}} Although it can also be added directly to the skin, this will lose skin language independence. So still add a new class. ? Part III: Modifications to Skin We use Skin-loginsmall.ascx to add <% @ register tagprefix = "forums" namespace = "forums" namespace = "forums" namespace = "aspnetforums.controls"%> Put the previous

Replace

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

New Post(0)