Alumni Communication Information Management System (1)

Source: Internet
Author: User
The production of the Alumni Communication Data Management program took me 4 days time, encountered a lot of problems, fortunately, I got the help of classmates and netizens. After a few days of study and practice, the program was completed.


This program is the first application program I have written. Learning asp.net for two months, because of time and curriculum has not tried to write an application of the small program, and now, I finally finished my first time. In fact, there is the opportunity to contact the development of the application and further study asp.net, is because this semester I joined the College website Studio, in the studio I am a programmer role, mainly responsible for the development of the basic Web site application under. NET Platform. A newcomer, I faced is a learning process, using 10.1 of the holiday, learned the basic knowledge of C #, later programming I decided to use C # instead of VB. Then I wanted to warm up, so I wrote this alumni Communication Data management program. The following time I will share with you my production work these days, as well as the problems encountered and solutions, if you are also known as ASP.net novice.





<!--Day1--->





everyone has their first time, and so does the programmer. In the process of compiling the Alumni Communication Data Management program, I left the first time to learn more. The first day of work was the layout, which was the first time I laid out. One evening self-study time, the pen on the work table paper on the continuous writing. At first, I divided the program into two pages, a data Display leaf page, which is used to filter the sorted database data and display it, and the other is to edit the page to provide the user with the operation function. It seems that the writing is done with the form of a DataGrid with an edit, you can take into account the security of the data, this approach is not feasible, the data security requirements of the user's operation has strict supervision and verification. Then I list the methods that are used for each page. The data display page is simpler and contains a DataGrid control and a connection button to navigate. Editing pages is a bit more complicated.


I divided the editing page into four modes, which were placed in four panel controls, and were displayed in code-controlled mode. Page load is the default for welcome mode, welcome mode contains friendly reminders, and to the update and insert mode of the Jump button, the bottom is the Jump button to the navigation page. Then the update mode contains the DropDownList control with the QQ number, which has two methods, which is the binding of the Database QQ number field and the onSelectedIndexChange event method of the DropDownList control when the page is loaded. The latter method is used to automatically load the original data into a few textbox on the page when the user chooses the QQ number, which corresponds to the different fields of the database alumni data respectively. After entering the updated data, click the OK button and then verify that the control begins to work, the page is validated to execute the Update method, in the Update method uses the SQL statement to implement the database data update. If you click on the Exit page, skip to the edit page Welcome mode. Ok and exit button I used a parameter LinkButton, the code wrote a method to use the switch statement to detect parameters, and then call the appropriate method. Insert mode and update mode different point is to bind the QQ number of the DropDownList into a textbox, so less binding and choice of methods, however, the increase is to enter the QQ number is already existing detection methods.


said there's not a fourth model, but the fourth mode is automatically invoked after the execution of the more rows and inserted SQL methods, and the fourth mode can be called whether to continue editing mode, with a label and two LinkButton buttons on the page. The button is specified to jump to the appropriate page by using the parameter detection method previously written. Call, finally finished, seemingly simple a program, the implementation of user requests is so cumbersome, I was surprised. However, the implementation of the method is very fine to provide the efficiency of the method, reduce the garbage code.







Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.