Students asp association management system based on B / S Mode

With the popularity of computers, the information age, schools have been expanding, a sharp increase in the number of associations, a variety of information about the students also doubled. Given the large amount of information necessary to develop community information management system to improve the efficiency of the management of the community. Through this system, communities and teachers can do the standard management of information, statistics and scientific inquiry quickly, thus reducing the workload management. Especially in today's era of digital management prevails, the establishment of their own utility management system has far-reaching significance.
Development of community management system of universities introduced the process function and development of community management system development background, the system to be accomplished, and then describes the connection process to the database system is running, backup, modify and maintain databases, and each community management the basic data and background settings and other functions and design ideas and other modules. Throughout the system design process, database schema design principle of scientific and rational, for each table a detailed analysis and design. In the module process design and programming, as far as possible the high cohesion and low coupling module, laid a good foundation for the smooth operation of the entire system.
The system development using ASP.NET programming language to Microsoft Visual Studio 2012, SQL Server2012 as development tools, Windows 7 as the operating system implementation.

From the organizational structure of the system, functional implementation, technical requirements and other aspects to consider the feasibility of this system based on WEB development, use SQL Server 2012 as the back-end database. Using image processing software designed pages; were made with web authoring tools.

First ASP.NET application as the development environment, the front desk using the popular web authoring tool for Microsoft Visual Studio 2012, background database using Microsoft SQL Server 2012, and finally the whole site integration.

"Student Associations Information Management System" is designed to simplify the management of community affairs, community management to improve efficiency and enhance the quality of community management, developed to "Student Association Information Management System" in order to better promote the community's daily management, Furthermore the community management standardization, ease of operation, thereby greatly improving the management efficiency . From the perspective of saving human and material resources of the departure, in line with the principle of convenient and practical for the school community to design a simple, convenient, easy-to-information management system that provides a good platform for the management of information management community. The main function of "Student Associations Information Management System" is to achieve the above purpose and design and development of the system include:

(1) community management: application associations, community information modify, delete communities, community members statistical information, membership information derived

(2) community affairs management: membership management, event management, community news, community management articles

(3) community information query: Query community information, community activities search, member search

(4) System Management: system administrators to manage, each community administrator management, password changes

The system should be able to clear and intuitive design overall management module, the system of expression focused primarily on ease and efficiency, easy to use for students and community management, complete and easy to use, feature.

As a system administrator complete control over those systems, with full access to the system, the operation can be carried out as follows:

① community information management: auditing associations, community information modify, delete information society; ② community affairs management: community members to modify the information, community members information deleted, added community activities, community

Activities delete, add items societies, associations items deleted; ③ Associations News Management: Add community news, community news modification, community news review, community news deleted; ④ information query: Query community information, member information inquiry; ⑤ System Management: administrator add, and change the password, the administrator deleted; ⑥ statistics: statistical distribution of community members, community members information exported.

Through analysis, the main functions required, including students foreground students registered, station news, Introduction, Feedback, community event information, community bulletin administrator backend system user management (system user is added, the system user view), personal information management ( Change password), station news management (station news added, station news query), message management (reply to messages, delete messages), community activity information management (add community activities, community activities inquiry), community bulletin management (community bulletin add, community Notice query), system management parameters Introduction (system settings, system settings bulletin, data backup, add links, Links queries).

 

protected void the Button1_Click ( Object SENDER, EventArgs E) 

{

 // The following code is a user login 

IF (the Session [ " VaildCode " ] .ToString (). The ToLower () == this.TextBox3.Text.ToLower ()) 

{ 

sqlConn. open (); // open the database connection 

of the SqlCommand sqlcom = new new of the SqlCommand ( " the SELECT * from the WHERE MemberName Member MemberName and MemberPwd = @ = @ MemberPwd " , sqlConn);

 // write SQL statements to obtain user login 

sqlcom.CommandType = the CommandType. Text; // set the database mode of operation for the SQL statement mode 

sqlcom.Parameters.Add ( " @MemberName" , SqlDbType.VarChar, 20 is ) .Value = txtMName.Text.Trim (); 

sqlcom.Parameters.Add ( " @MemberPwd " , SqlDbType.VarChar, 20 is ) .Value = txtMPwd.Text.Trim ();

 // add login account login password two parameters 

SqlDataReader the read = sqlcom.ExecuteReader (); 

IF (read.Read ()) 

{

 // if it means you can read out a successful landing and save the login information to be used in the program SESSION 

table2. the Visible = to true ; 

TABLE1.Visible = to false ; 

MName.Text = txtMName.Text; 

the Session [ " Users "] = TxtMName.Text.Trim (); 

the Session [ " UserSID " ] = Read [ " MemberID " ] .ToString (); 

} 

the else 

{

 // login failed login prompt re 

Response.Write ( " & lt; Script & gt; Alert ( ' user or password you entered is incorrect, please re-enter '); LOCATION =' JavaScript:! history.go (-1) '; & lt; / Script & gt; " ); 

} 

} 

the else 

{

 // this code error prompt 

Response .write ( " & lt; Script & gt; Alert ( 'code is incorrect, please reenter!'); LOCATION = 'JavaScript: history.go (-1)'; & lt; / Script & gt; " ); 

} 

}

 

 

protected void btnRegister_Click ( Object SENDER, EventArgs E) 

{

 // This is the code of user registration 

String The sqltest = " SELECT * WHERE from Member MemberName = ' " + this.txtLoginName.Text + " ' " ;

 // User Registration SQL statements 

sqlconn.Open (); // open database Connectivity 

the SqlCommand sqlcom = new new the SqlCommand (The sqltest, sqlConn); 

the SqlDataReader Read = sqlcom.ExecuteReader (); 

read.Read (); 

iF (read.HasRows) 

{

 // determines whether the user has registered, that is registered account can not be repeated 

if (this.txtLoginName.Text.Trim() == read["MemberName"].ToString().Trim())

{

Response.Write("<script language='javascript'>alert('该会员已经注册过');localtion='Register.aspx'</script>");

return;

}

}

//下面是用户注册的SQL语句

string sqlstr = "insert into Member "

+ "(MemberName,MemberSex,MemberPWD,MemberTName,"

+ "MemberPhone,MemberEmail,MemberCity,MemberAddress,MemberPostCode,MemberWenTi,MemberDaAn)"

+ "values('" + txtLoginName.Text + "','" + ddlSex.SelectedValue

+ "','" + txtPwd.Text + "','" + txtTName.Text + "','" + txtTel.Text + "','" + txtEmail.Text

+ "','" + ddlCity.SelectedValue + "','" + txtAddress.Text + "','" + txtPostCode.Text + "','"+DropDownList1.SelectedValue+"','"txtdanan.Text + + " ') " ; 

data.RunSql (sqlstr);

 // execute SQL statements user registration 

sqlconn.Close (); // close the connection 

the Session [ " regname " ] = txtLoginName.Text.Trim (); 

Alert.AlertAndRedirect ( " Congratulations on becoming a site member " , " Login.aspx " );

 // prompted to register success 

}

 

 

 

 

Guess you like

Origin www.cnblogs.com/lqs11/p/11569360.html