Preliminarily sorted the ASP.NET Portal Starter Kit code for your reference

xiaoxiao2021-03-05  27

After a few weeks of efforts, I finally passed the code and database of the ASP.NET Portal Starter Kit. The coded code is different from the original: 1. Added my understandability. (If you have any understanding, please point out) 2, organize the code into the model I have habit, such as: it is in the background of the page like this to write: // page class constructor PUBLIC CDEFAULT () {Page.init = new System.EventHandler (Page_Init);} private void Page_Load (object sender, System.EventArgs e) {} private void Page_Init (object sender, EventArgs e) {InitializeComponent ();} private void InitializeComponent () {this.Load = New System.EventHandler (this.page_load);} I am used to writing this (how is the way to be automatically given by VS,? (Eventargs E) {INITIALIZEComponent (); base.onit (e);} private void initializeComponent () {this.load = new system.eventhandler (this.page_load);} 3, on an entered with an announcement I used my date selection control; 4, fix three bugs: 1. The problem that the label item cannot be moved up and down (detailed here); 2. A major security hazard (indicated in this article comment). 3. Check out the document uploaded to the database. 5, there is no code displayed in the browsing device, my mobile simulator can not be used (can be started, the URL said to find the page, why?) 6, the database has not changed, using the original version. The next step is to reconstruct the code, first separate the code accessed by the data, simplify the code with Data Access Block (there are too many redundant code inside, I have annoying); it seems that there is no user to change the password (it is useful The function MS has not considered it), be sure to add; some pages can inherit from a page base class (such as the editing page of the user module), can save a lot of code; there is ..., please give more improvements. . Preliminary collation: Download >> More related content: Click here >>

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

New Post(0)