Você está na página 1de 49

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

A PROJECT ON Online Library Management SYSTEM (In ASP.net and Sql Server)

UNDER THE KIND SUPERVISION OF:

MS. Priti BALA Mr. Arman Rasool Faridi Ms. Arshia jalal

SUBMITTED BY: ASHUTOSH SRIVASTAVA 07-MCA -10 Gc-7071

-1 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

CONTENTS
1) ABSTRACT 2) ACKNOWLEDEMENT 3) INTRODUCTION 4) OVERVIEW OF .NET FRAMEWORK 5) OVERVIEW OF THE WEBSITE 6) DESCRIPTON OF TABLES 7) E-R DIAGRAM 8) SYSTEM IMPLEMENTATION 9) FROMS LAYOUT 10) CODING 3 4 5 6 8 10 12 13 14 18

ABSTRACT

-2 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

The e enormous growth of paper works almost in all the Government Office/ University have created a lot of problem to staff members, rate of this growth is posing many problems to office Management and staff. Providing access to an ever growing corpus of information using manual methods has serious limitation. It is impossible for an office/department however big to collect and catalogue every thing that is useful material is difficult due to this volume of newly published of produced information on any subject.

Mostly information in University, institutions or departments is handled manually. In such system it is very difficult task to get the information about all the papers or any material stored by office worker. This website ONLINE LIBRARY MANAGEMENT SYSYTEM provides very quick and accurate information about the students as well books issued, available etc and all the information related to library management.

The present website is especially developed for AMU. But this can be used in any other University or Institution to manage their library as it can fulfill all the requirement of a standard library management system.

ACKNOWLEDGEMENT

-3 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

Many of the ideas that lead us to design and develop the ONLINE LIBRARY MANAGEMENT SYSTEM resulted from a distillation of the experience and opinions of many people. It would be prudent to commence this report with a sincere tribute to all those who have played an indispensable role in the accomplishment of this work providing whenever and wherever their able guidance was required. It is indeed a matter of great pleasure to record my great sense of gratitude towards my teachers Ms. Priti Bala, Mr. Aasim Zafar, Mr. Arman Rasool Faridi and Ms. Arshia Jalal for their valuable help in completion of this project. I would also like to extend my thanks to Mr. S. Maheshwari, the honorable Chairman of Department of Computer Science AMU Aligarh, for regular guidance and encouragement throughout my project. I am also very thankful to my class fellows for their mutual support and helping attitude.

(Ashutosh Srivastava)

INTRODUCTION

-4 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

With the advent of the computer and advance technology, it is said that todays modern and advancing world has entered into a computer age. Computer is a powerful tool that has accelerated, enhanced and improved greatly the process of development, planning and making in nearly all the fields. Today almost all organization has to computerized information and management system of their own, enabling them to utilize all their resources to the resulting in greater efficiency. This website is a step forward towards online computerization of library management. It provides important role in providing the users with detailed and updated information about the library regarding books available, issued, fine details etc. This also helps the management group of the library to add, delete, and modify the details of students as well as books. The website named ONLINE LIBRARY

MANAGEMENT SYSTEM has been designed in such a way that it covers all information needed for the management of library and also efforts has been made to make it self explanatory as far as possible. This website can be accessed through the url http://aspspider.info/OnlineLibrarySystem. For this website ASP.Net has been used as front-end and SQL SERVR 2005 as back-end.

Overview of .NET framework

-5 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore The .NET Framework is a new computing platform that simplifies application development in the highly distributed environment of the Internet. The .NET Framework is designed to fulfill the following objectives:

To provide a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internetdistributed, or executed remotely.

To provide a code-execution environment that minimizes software deployment and versioning conflicts. To provide a code-execution environment that guarantees safe execution of code, including code created by an unknown or semi-trusted third party. To provide a code-execution environment that eliminates the performance problems of scripted or interpreted environments. To make the developer experience consistent across widely varying types of applications, applications. such as Windows-based applications and Web-based

To build all communication on industry standards to ensure that code based on the .NET Framework can integrate with any other code.

The .NET Framework has two main components: the common language runtime and the .NET Framework class library. The common language runtime is the foundation of the .NET Framework. You can think of the runtime as an agent that manages code at execution time, providing core services such as memory management, thread management, and remoting, while also enforcing strict type safety and other forms of code accuracy that ensure security and robustness. In fact, the concept of code management is a fundamental principle of the runtime. Code that targets the runtime is known as managed code, while code that does not target the runtime is known as unmanaged code. The class library, the other main component of the .NET Framework, is a comprehensive, object-oriented collection of reusable types that you can use to develop applications ranging from traditional command-line or graphical user interface (GUI) applications to applications based on the latest innovations provided by ASP.NET, such as Web Forms and XML Web services.

Visual studio.NET
-6 http://aspspider.info/OnlineLibraySystem MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore Visual Studio .NET is the tool for rapidly building enterprise-scale ASP Web applications and high performance desktop applications. Visual Studio includes component-based development tools, such as Visual C#, Visual Basic, and Visual C+ +, as well as a number of additional technologies to simplify team-based design, development, and deployment of your solutions. Visual Studio supports the .NET Framework, which provides a common language runtime and unified programming classes; ASP.NET uses these components to create ASP Web applications and XML Web services. Also included is the MSDN Library, which contains all the documentation for these development tools.

ASP.NET
ASP.NET makes application development much easier than it was with classic ASP, and hence it has dramatically improved developers' productivity. ASP.NET enables you to provide richer functionality to your Web applications by writing the least amount of code.The best part is that ASP.NET enables you to select any of the available .NET programming languages. So, unlike classic ASP, in which you had to depend on interpreted VBScript and JScript languages, ASP.NET provides a wide choice of programming languages. In addition to the usual Web applications, ASP.NET allows you to create other types, which enables you to extend your applications' reach to new customers and business partners. For example, XML Web services enable sharing of data across the Internet regardless of the operating system and the programming language

OVERVIEW OF THE WEBSITE

-7 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore Project is related to library management which provides reading services to its members. Any person can become a member of the library by filling a prescribed form. They can get the book issued, so that they cab take home and return them. It also helps users to trace out the books issued, available etc. Following is given a brief description: --

1. Purpose:
The purposes of this application are as follows: The software is for automation of library. It provides following facilities to

Admin:
Can provide membership to members. Can read and write information about any member. Can update, create, and delete the record of membership as per requirement and implementation plants. Can update, create, and delete the record of books as per requirement. Can view fine details of the all users.

Operator:
Can issue books to members. Can return issued books from members. Can deposit fine of members. Can give fine details to the interested members. Keeps the track of issues and submission of books.

Internal Members:
Can search books, journals, e-books, thesis of their interest. Can check the availability of the book or documents. Can view their fine details. Can know that issued book is issued to which member.

External Members:
Can search e-books, e-journals, e-thesis of their interest. Can register online. Can download the softcopies of the documents.

2.) Scope: The different areas where we can use this application are:
-8 http://aspspider.info/OnlineLibraySystem MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore Any education institute can make use of it for providing information about author, content of the available books. It can be used in offices and modifications can be easily done according to requirements.

3.) Technology Used:


Front End: ASP.NET. Back End: SQL SERVER EXPRESS 2005

4.) Assumptions:
This application is used to convert the manual application to the online application. Customized data will be used in this application. User does not have right to enter information about books

DESCRIPTION OF TABLES: -- According to the need for containing


information about members and books, following tables have been created:--

1.) MemberDetails: -- This table contains details of members of the library:


-9 http://aspspider.info/OnlineLibraySystem MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

Fields
MemberIdY MemberIdClass MemberIdRno Password FName LName DOJ DOE Status Address EmailId PhoneNo

Width
Varchar(4) Varchar(5) Numeric(3,0) Varchar(20) Varchar(50) Varchar(50) Datetime Datetime Varchar(20) Varchar(50) Varchar(50) Numeric(11,0)

2.) BookDetails: -- This table contains details of a book and has following
fields:

Fields
BookIdF BookIdRack BookIdSno Title Author Status Url Type DOA Price IssueStatus

Width
Varchar(3) Varchar(4) Varchar(3) Varchar(50) Varchar(50) Varchar(20) Varchar(75) Varchar(20) Datetime Numeric(5,0) Varchar(20)

3.) BalaneFineDetails: -- This table contains information about the fine not
submitted by members:

Fields
MemberId TotalFine TotalFineDeposited BalanceFine

Width
Varchar(20) Numeric(5,0) Numeric(5,0) Numeric(5,0)

4.) FineDeposited: -- This table contains information about the fine


deposited by the member:

Fields
MemberId FineDeposited Date

Width
Varchar(20) Numeric(5,0) Datetime

- 10 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

5.) FineDetails: -- This table contains fine details of members in accordance


with fine on each book issued to them:

Fields
MemberId FName LName BookId Title AuthorName IssueDate ReturnDate Fine

Width
Varchar(20) Varchar(50) Varchar(50) Varchar(15) Varchar(50) Varchar(50) Datetime Datetime Numeric(5,0)

E-R DIAGRAM

- 11 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

NEED OF COMPUTERIZATION:
Now days each and every field of work need a computerized system due to the following limitations of a manual system:- 12 http://aspspider.info/OnlineLibraySystem MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore Delay in information retrieval. Problem in updating of current information Possible damage of paper carrying the information thereby chances of loosing valuable information. Considerable requirements. Suspect reliability and maintainability of data Secrecy of information may not be maintained due to visible facts on paper Problem in compilation of data in various sorting order to achieve the required requiring complicated sorting is extremely inconvenient. time taken for report generation for periodic

IMPORTANCE OF COMPUTERIZED SYSTEM


Today each and every organization , department, institution, agency, company wants to make their system of work computerized, since a computerized system requires a minimum input and gives more output in minimum possible time. Computerized systems are of great importance due to easy retrieval and updation very quick response of any query report generation with less effort and high accuracy high secrecy and less chance of loss of data

SYSTEM IMPLEMENTATION:
The system has been developed and implemented on the following guidelines: This system is an interactive package. It is based on modular approach. The modular approach incorporates the flexibility in terms of modification of the system. The system is designed in a user friendly manner so that even a novice user of the computer can handle it without much difficulty.

- 13 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

- 14 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

- 15 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

- 16 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

- 17 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

CODING
Default.aspx public partial class _Default : System.Web.UI.Page { SqlConnection myConnection = new SqlConnection(); protected void Page_Load(object sender, EventArgs e) { myConnection = new SqlConnection("server=ashuamu;Trusted_Connection=True;DataBase=Library"); HttpCookie LoginStatus = new HttpCookie("LoginStatus"); LoginStatus.Expires.AddHours(6); if (!IsPostBack) { LoginStatus.Value = "1"; } else {

LoginStatus.Value = "0";

} Response.Cookies.Add(LoginStatus); } protected void btnnewusr_Click(object sender, EventArgs e) { Response.Redirect("NewUserForm.aspx"); } protected void btnlogin_Click(object sender, EventArgs e) { HttpCookie usrname = new HttpCookie("usrname"); usrname.Expires.AddHours(6); usrname.Value = txtusrname.Text; Response.Cookies.Add(usrname); HttpCookie password = new HttpCookie("password"); password.Expires.AddHours(6); password.Value = txtPassword.Text; Response.Cookies.Add(password); myConnection.Open(); DataSet myDataSet=new DataSet(); SqlDataAdapter myDataAdapter=new SqlDataAdapter("Select MemberIdY,MemberIdClass,MemberIdRno,PassWord From MemberDetails",myConnection); myDataAdapter.Fill(myDataSet); for(int count=0;count< myDataSet.Tables[0].Rows.Count;count+ +) if((Convert.ToString(myDataSet.Tables[0].Rows[count][0]) +Convert.ToString(myDataSet.Tables[0].Rows[count][1]) +Convert.ToString(myDataSet.Tables[0].Rows[count] [2])==txtusrname.Text & Convert.ToString(myDataSet.Tables[0].Rows[count]

- 18 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


[3])==txtPassword.Text & Convert.ToString(myDataSet.Tables[0].Rows[count][1])=="ADMIN")) { Response.Redirect("Administrator.aspx"); HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); LoginStatus.Value = "1"; Response.Cookies.Add(LoginStatus); } else if ((Convert.ToString(myDataSet.Tables[0].Rows[count] [0]) + Convert.ToString(myDataSet.Tables[0].Rows[count][1]) + Convert.ToString(myDataSet.Tables[0].Rows[count][2]) == txtusrname.Text & Convert.ToString(myDataSet.Tables[0].Rows[count] [3]) == txtPassword.Text & Convert.ToString(myDataSet.Tables[0].Rows[count][1]) == "OPRTR")) { Response.Redirect("Operators.aspx"); HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); LoginStatus.Value = "1"; Response.Cookies.Add(LoginStatus); } else if ((Convert.ToString(myDataSet.Tables[0].Rows[count] [0]) + Convert.ToString(myDataSet.Tables[0].Rows[count][1]) + Convert.ToString(myDataSet.Tables[0].Rows[count][2]) == txtusrname.Text & Convert.ToString(myDataSet.Tables[0].Rows[count] [3]) == txtPassword.Text)) { Response.Redirect("InternalMember.aspx"); HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); LoginStatus.Value = "1"; Response.Cookies.Add(LoginStatus); } else { }

lbllogin.Visible = true; lbllogin.Text = "Incorrect Login Name or PassWord"; myConnection.Close();

} protected void txtusrname_TextChanged(object sender, EventArgs e) { lbllogin.Visible = false; } protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { } } --------------------------------------------------------------------AddBookDetails.aspx.cs public partial class AddBookDetails : System.Web.UI.Page {

- 19 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


//int flag1,flag2,flag3 , i, j, k; SqlConnection myConnection = new SqlConnection(); protected void Page_Load(object sender, EventArgs e) { HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); if (LoginStatus.Value == "1") { Response.Redirect("Default.aspx"); } myConnection = new SqlConnection("server=ashuamu;Trusted_Connection= True;database=Library"); date.Text = Convert.ToString(System.DateTime.Today) ; } protected void Add_Click(object sender, EventArgs e) { RequiredFieldValidator1.Enabled = true; RequiredFieldValidator2.Enabled = true; RequiredFieldValidator3.Enabled = true; RequiredFieldValidator4.Enabled = true; RequiredFieldValidator5.Enabled = true; lblstatus.Visible = false; lbltype.Visible = false; if (Status.SelectedIndex == 0 || Type.SelectedIndex == 0) { if (Status.SelectedIndex == 0) { lblstatus.Visible = true; lblstatus.Text = "Please Choose Appropriate Choice } if (Type.SelectedIndex == 0) { lbltype.Visible = true; lbltype.Text = "Please Choose Appropriate Choice }

";

";

} else if (BookIdF.SelectedIndex==0|| BookIdRack.SelectedIndex==0||BookIdSno.SelectedIndex==0) { if (BookIdF.SelectedIndex == 0) { lblerror.Visible = true; lblerror.Text = "Please Choose Appropriate Floor "; } else if (BookIdRack.SelectedIndex == 0) { lblerror.Visible = true; lblerror.Text = "Please Choose Appropriate Rack "; } else { lblerror.Visible = true; lblerror.Text = "Please Choose Appropriate Sno "; } }

- 20 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


else { //lblstatus.Text = ""; //lbltype.Text = ""; try { DataSet myDataSet = new DataSet(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.StoredProcedure; myCommand.Connection = myConnection; myCommand.CommandText = "ADD_BOOK_DETAILS"; SqlParameter myParameter1 = myCommand.Parameters.Add("@BookIdF", SqlDbType.VarChar, 3); myParameter1.Value = BookIdF.Text; SqlParameter myParameter2 = myCommand.Parameters.Add("@BookIdRack", SqlDbType.VarChar, 4); myParameter2.Value = BookIdRack.Text; SqlParameter myParameter3 = myCommand.Parameters.Add("@BookIdSno", SqlDbType.VarChar, 3); myParameter3.Value = BookIdSno.Text; SqlParameter myParameter4 = myCommand.Parameters.Add("@Title", SqlDbType.VarChar, 50); myParameter4.Value = Title.Text; SqlParameter myParameter5 = myCommand.Parameters.Add("@AuthorName", SqlDbType.VarChar, 50); myParameter5.Value = AuthorName.Text; SqlParameter myParameter51 = myCommand.Parameters.Add("@Url", SqlDbType.VarChar, 50); myParameter51.Value = txtUrl.Text; SqlParameter myParameter6 = myCommand.Parameters.Add("@Status", SqlDbType.VarChar, 50); myParameter6.Value = Status.Text; SqlParameter myParameter7 = myCommand.Parameters.Add("@Type", SqlDbType.VarChar, 50); myParameter7.Value = Type.Text; SqlParameter myParameter8 = myCommand.Parameters.Add("@DOA", SqlDbType.DateTime); myParameter8.Value = Convert.ToDateTime(date.Text); SqlParameter myParameter9 = myCommand.Parameters.Add("@Price", SqlDbType.Int); myParameter9.Value = Price.Text; SqlDataAdapter myDataAdapter = new SqlDataAdapter(); myConnection.Open(); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); myConnection.Close(); lblerror.Visible = true; lblerror.Text = "Record Has Been Added successfully"; BookIdF.Text = "Floor"; BookIdRack.Text = "Rack";

- 21 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


BookIdSno.Text = "Sno"; clearall(); } catch (Exception) { lblerror.Visible = true; lblerror.Text = "BookId Already Exists "; } } } //catch (Exception error) //{ // throw error protected void BookIdF_SelectedIndexChanged(object sender, EventArgs e) { //BookIdF.Text = "Floor"; //BookIdRack.Text = "Rack"; BookIdRack.Items.Clear(); BookIdRack.Items.Add("Rack"); for (int r = 1; r <= 1000; r++) { if (r < 10) { BookIdRack.Items.Add("000" + r); } else if (r < 99) { BookIdRack.Items.Add("00" + r); } else if (r < 1000) { BookIdRack.Items.Add("0" + r); } else { BookIdRack.Items.Add("1000"); } } BookIdSno.Text = "Sno"; clearall(); DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.Text; myCommand.Connection = myConnection; myCommand.CommandText = "select count(BookIdSno),BookIdRack from BookDetails where BookIdF=@BookIdF group by BookIdRack"; SqlParameter param1 = myCommand.Parameters.Add("@BookIdF",SqlDbType.VarChar,4); param1.Value = BookIdF.Text; myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); //int index = 0; for (int rack = 0; rack < myDataSet.Tables[0].Rows.Count; rack++)

- 22 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


{ >=10)

if (Convert.ToInt32(myDataSet.Tables[0].Rows[rack][0]) {

BookIdRack.Items.Remove(Convert.ToString(myDataSet .Tables[0].Rows[rack][1])); } } } protected void BookIdRack_SelectedIndexChanged(object sender, EventArgs e) { clearall(); BookIdSno.Items.Clear(); BookIdSno.Items.Add("Sno"); for (int s = 1; s <= 10; s++) { if (s < 10) { BookIdSno.Items.Add("00" + s); } else { BookIdSno.Items.Add("0"+s); } } DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.Text; myCommand.Connection = myConnection; myCommand.CommandText = "select BookIdSno from BookDetails where BookIdF=@BookIdF and BookIdRack=@BookIdRack"; SqlParameter param1 = myCommand.Parameters.Add("@BookIdF", SqlDbType.VarChar, 4); param1.Value = BookIdF.Text; SqlParameter param2 = myCommand.Parameters.Add("@BookIdRack", SqlDbType.VarChar, 4); param2.Value = BookIdRack.Text; myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); rack++) for (int rack = 0; rack < myDataSet.Tables[0].Rows.Count; { BookIdSno.Items.Remove(Convert.ToString(myDataSet.Tab les[0].Rows[rack][0])); }

- 23 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

} protected void BookIdSno_SelectedIndexChanged(object sender, EventArgs e) { } protected void Status_SelectedIndexChanged(object sender, EventArgs e) { if (Status.Text == "Soft Copy") { txtUrl.Enabled = true; txtUrl.Text = ""; } else { txtUrl.Text = "Not Required "; txtUrl.Enabled = false; } } protected void clearall() { Title.Text = " "; AuthorName.Text = ""; Status.Text = "Select"; Type.Text = "Select"; date.Text = " "; Price.Text = " "; } } AddMemberDetails.aspx.cs public partial class MemberDetails : System.Web.UI.Page { SqlConnection myConnection=new SqlConnection(); protected void Page_Load(object sender, EventArgs e) { HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); if (LoginStatus.Value == "1") { Response.Redirect("Default.aspx"); } myConnection=new SqlConnection("server=ashuamu;Trusted_Connection= True;database=Library"); txtDOJ.Text=Convert.ToString(System.DateTime.Today); txtDOE.Text = Convert.ToString(System.DateTime.Today.AddYears(1)); try { txtPassword.Text = txtFName.Text.Substring(0, 3) + txtLName.Text.Substring(0, 2)+txtRno.Text.Substring(1,2 ); } catch (Exception) { } //txtRenewal.Text=Convert.ToString(System.DateTime.Today) ; }

- 24 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

protected void btnAdd_Click(object sender, EventArgs e) { if (ddlMemberIdY.Text == "Year") { lblsuccess.Text = "Please Choose Year.."; lblsuccess.Visible = true; } else if (ddlMemberIdClass.Text == "Class") { lblsuccess.Text = "Please Choose Class.."; lblsuccess.Visible = true; } else if (txtRno.Text == "Rno") { lblsuccess.Text = "Please Enter Rno.."; lblsuccess.Visible = true; } else try { DataSet myDataSet = new DataSet(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.StoredProcedure; myCommand.Connection = myConnection; myCommand.CommandText = "ADD_MEMBER_DETAILS"; SqlParameter myParameter1 = myCommand.Parameters.Add("@MemberIdY", SqlDbType.VarChar, 4); myParameter1.Value = ddlMemberIdY.Text; SqlParameter myParameter2 = myCommand.Parameters.Add("@MemberIdClass", SqlDbType.VarChar, 5); myParameter2.Value = ddlMemberIdClass.Text; SqlParameter myParameter3 = myCommand.Parameters.Add("@MemberIdRno", SqlDbType.VarChar, 4); myParameter3.Value = txtRno.Text; SqlParameter myParameter4 = myCommand.Parameters.Add("@PassWord", SqlDbType.VarChar, 20); myParameter4.Value = txtPassword.Text; SqlParameter myParameter5 = myCommand.Parameters.Add("@FName", SqlDbType.VarChar, 50); myParameter5.Value = txtFName.Text; SqlParameter myParameter6 = myCommand.Parameters.Add("@LName", SqlDbType.VarChar, 50); myParameter6.Value = txtLName.Text; SqlParameter myParameter7 = myCommand.Parameters.Add("@DOJ", SqlDbType.DateTime); myParameter7.Value = Convert.ToDateTime(txtDOJ.Text); SqlParameter myParameter8 = myCommand.Parameters.Add("@DOE", SqlDbType.DateTime); myParameter8.Value = Convert.ToDateTime(txtDOE.Text);

- 25 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

SqlParameter myParameter9 = myCommand.Parameters.Add("@Status", SqlDbType.VarChar, 15); myParameter9.Value = ddlStatus.Text; SqlParameter myParameter10 = myCommand.Parameters.Add("@Address", SqlDbType.VarChar, 50); myParameter10.Value = txtAddress.Text; SqlParameter myParameter11 = myCommand.Parameters.Add("@EmailId", SqlDbType.VarChar, 50); myParameter11.Value = txtEmail.Text; SqlParameter myParameter12 = myCommand.Parameters.Add("@PhoneNo", SqlDbType.BigInt, 10); myParameter12.Value = Convert.ToInt64(txtPhoneNo.Text); SqlDataAdapter(); SqlDataAdapter myDataAdapter = new myConnection.Open(); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); myConnection.Close(); DataSet BalanceFine = new DataSet(); SqlDataAdapter BalanceFineAdapter = new SqlCommand BalanceFineCommand= new SqlCommand(); CommandType.Text; BalanceFineCommand.CommandType =

SqlDataAdapter();

BalanceFineCommand.Connection = myConnection; BalanceFineCommand.CommandText = "insert into BalanceFineDetails values(@MemberId,'0','0','0')"; SqlParameter BalanceFinePara = BalanceFineCommand.Parameters.Add("@MemberId",SqlDbType.VarChar,20); BalanceFinePara.Value = ddlMemberIdY.Text + ddlMemberIdClass.Text + txtRno.Text; BalanceFineAdapter.SelectCommand = BalanceFineCommand; BalanceFineAdapter.Fill(BalanceFine); lblsuccess.Visible = true; lblsuccess.Text = "Record Has Been Saved txtPassword.Text = ""; txtFName.Text = ""; txtLName.Text = ""; ddlStatus.Text = "Select"; txtAddress.Text = ""; txtEmail.Text = ""; txtPhoneNo.Text = ""; ddlMemberIdY.Text = "Year"; ddlMemberIdClass.Text = "Class"; txtRno.Text = "Rno";

Successfully...";

} catch (Exception)

- 26 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


{

lblsuccess.Visible = true; lblsuccess.Text = "Member Id Already Exists.....Enter Again"; } } protected void ddlMemberIdClass_SelectedIndexChanged(object sender, EventArgs e) { if (ddlMemberIdClass.SelectedIndex == 7) { ddlStatus.Text = "External"; } else { ddlStatus.Text = "Internal"; } txtRno.Text = ""; } protected void ddlMemberIdY_SelectedIndexChanged(object sender, EventArgs e) { lblsuccess.Visible = false; } protected void txtPassword_TextChanged(object sender, EventArgs e) { } protected void txtLName_TextChanged(object sender, EventArgs e) { txtPassword.Text = txtFName.Text.Substring(0, 3) + txtLName.Text.Substring(0, 3); } } AdminFineFeatils.aspx.cs public partial class AdminFineDetails : System.Web.UI.Page { SqlConnection myConnection = new SqlConnection("server=ashuamu;Trusted_Connection=True;DataBase=Library"); protected void Page_Load(object sender, EventArgs e) { HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); if (LoginStatus.Value == "1") { Response.Redirect("Default.aspx"); } } protected void dgdAdminFinedetails_SelectedIndexChanged(object sender, EventArgs e) { txtMemberId.Text = dgdAdminFinedetails.SelectedRow.Cells[1].Text; DataSet myDataSet = new DataSet();

- 27 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.Text; myCommand.Connection = myConnection; myCommand.CommandText = "Select distinct MemberId,FName,LName from FineDetails where MemberId=@MemberId"; SqlParameter myParam1 = myCommand.Parameters.Add("@MemberId", SqlDbType.VarChar, 20); myParam1.Value = Convert.ToString(dgdAdminFinedetails.SelectedRow.Cells[1].Text); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); [1]); txtFName.Text = Convert.ToString(myDataSet.Tables[0].Rows[0]

txtLName.Text = Convert.ToString(myDataSet.Tables[0].Rows[0] [2]); } protected void txtMemberId_TextChanged(object sender, EventArgs e) { } } AdminSearchBooks.aspx.cs public partial class AdminSearchBooks : System.Web.UI.Page { SqlConnection myConnection = new SqlConnection("server=ashuamu;Trusted_Connection=True;DataBase=Library"); protected void Page_Load(object sender, EventArgs e) { HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); if (LoginStatus.Value == "1") { Response.Redirect("Default.aspx"); } } protected void btnSearch_Click(object sender, EventArgs e) { if (TextBox1.Text != null) { DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand(); myCommand.Connection = myConnection; myCommand.CommandType = CommandType.StoredProcedure; SqlParameter myParameter1 = myCommand.Parameters.Add("@SearchByText", SqlDbType.VarChar, 50); myParameter1.Value = TextBox1.Text; SqlParameter myParameter2 = myCommand.Parameters.Add("@RestrictedBy", SqlDbType.VarChar, 50); myParameter2.Value = ddlRestrictedBy.Text;

- 28 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


SqlParameter myParameter3 = myCommand.Parameters.Add("@Status", SqlDbType.VarChar, 50); myParameter3.Value = DropDownList1.Text; dgdSearch.Visible = true; if (ddlSearchBy.Text == "Title") { myCommand.CommandText = "SearchBooksByTitle"; myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); dgdSearch.DataSource = myDataSet; dgdSearch.DataBind(); } else {

myCommand.CommandText = "SearchBooksByAuthor"; myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); dgdSearch.DataSource = myDataSet; dgdSearch.DataBind();

} } else {

lblRequiredField.Visible = true; lblRequiredField.Text = "Enter Title or Author Name...."; } } protected void dgdSearch_SelectedIndexChanged(object sender, EventArgs e) { try { TextBox2.Text = dgdSearch.SelectedRow.Cells[6].Text; btnOpen.Visible = true; } catch (Exception) { TextBox2.Text = ""; } // Response.Redirect("PHP/Power Programming.pdf"); } protected void btnOpen_Click(object sender, EventArgs e) { if (TextBox2.Text != "") { Response.Redirect(TextBox2.Text); } } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { dgdSearch.Visible = false; //btnOpen.Visible = false; if (DropDownList1.Text == "Soft Copy") { TextBox2.Visible = true; TextBox2.Text = "";

- 29 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


// btnOpen.Visible = true;

} else {

//TextBox2.Text = "Copy And Paste Url of The Book Here And Then Click Open Button "; TextBox2.Visible = false; btnOpen.Visible = false; } } protected void TextBox2_TextChanged(object sender, EventArgs e) { TextBox2.Text = ""; if (TextBox2.Text == "") btnOpen.Visible = false; else btnOpen.Visible = true; } protected void ddlRestrictedBy_SelectedIndexChanged(object sender, EventArgs e) { dgdSearch.Visible = false; TextBox2.Text = ""; dgdSearch.Visible = false; } protected void ddlSearchBy_SelectedIndexChanged(object sender, EventArgs e) { dgdSearch.Visible = false; TextBox2.Text = ""; btnOpen.Visible = false; } } BookDetails.aspx.cs public partial class BookDetails : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); if (LoginStatus.Value == "1") { Response.Redirect("Default.aspx"); } } } ChangeAdminPassword.aspx.cs public partial class Default3 : System.Web.UI.Page { SqlConnection myConnection = new SqlConnection(); protected void Page_Load(object sender, EventArgs e) { HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); if (LoginStatus.Value == "1") { Response.Redirect("Default.aspx");

- 30 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


} HttpCookie usrname = Request.Cookies.Get("usrname"); txtMemberId.Text = usrname.Value; myConnection = new SqlConnection("server=ashuamu;Trusted_Connection=True;DataBase=Library"); lblOldPassword.Visible = false; lblmsg.Visible = false; lblNewPassword.Visible = false; } protected void btnSearch_Click(object sender, EventArgs e) { Response.Redirect("SearchBooks.aspx"); } protected void btnPassWord_Click(object sender, EventArgs e) { } protected void btnLogout_Click(object sender, EventArgs e) { Response.Redirect("Default.aspx"); // WebBrowsableAttribute.No; } protected void btnChange_Click(object sender, EventArgs e) { DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand(); myCommand.Connection = myConnection; myCommand.CommandType = CommandType.Text; myCommand.CommandText = "select MemberIdY,MemberIdClass,MemberIdRno,Password from MemberDetails where MemberIdY=@Param1 and MemberIdClass=@Param2 and MemberIdRno=@Param3 ";

SqlParameter Param1 = myCommand.Parameters.Add("@Param1", SqlDbType.VarChar, 10); Param1.Value = txtMemberId.Text.Substring(0, 4); SqlParameter Param2 = myCommand.Parameters.Add("@Param2", SqlDbType.VarChar, 10); SqlParameter Param3 = myCommand.Parameters.Add("@Param3", SqlDbType.Int); Param2.Value = txtMemberId.Text.Substring(4, 5); Param3.Value = Convert.ToInt32(txtMemberId.Text.Substring(9, txtMemberId.Text.Length - 9)); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); if (txtOldPassword.Text == Convert.ToString(myDataSet.Tables[0].Rows[0][3]) & txtOldPassword.Text != "") { if (txtNewPassword.Text != "")

- 31 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


{

try {

myCommand.CommandText = "Update MemberDetails set Password=@Param4 where MemberIdY=@Param1 and MemberIdClass=@Param2 and MemberIdRno=@Param3 "; SqlParameter Param4 = myCommand.Parameters.Add("@Param4", SqlDbType.VarChar, 20); Param4.Value = txtNewPassword.Text; myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); myConnection.Open(); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); myConnection.Close(); lblmsg.Visible = true; lblmsg.Text = "Your Password has been changed...."; } catch (Exception) { lblmsg.Visible = true; lblmsg.Text = "Unable to change your Password. You may try again..."; } } else { lblNewPassword.Visible = true; lblNewPassword.Text = "Enter New Password "; } } else {

} } protected void txtOldPassword_TextChanged(object sender, EventArgs e) { lblOldPassword.Visible = false; } } ChangePasswrd.aspx.cs public partial class ChangePassWord : System.Web.UI.Page { SqlConnection myConnection = new SqlConnection(); protected void Page_Load(object sender, EventArgs e) { HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus");

lblOldPassword.Visible = true; lblOldPassword.Text = "Incorrect Old Password ";

- 32 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


if (LoginStatus.Value == "1") { Response.Redirect("Default.aspx"); } HttpCookie usrname = Request.Cookies.Get("usrname"); txtMemberId.Text = usrname.Value; if (txtMemberId.Text.Substring(4, 3) == "EXT") { btnFineDetails.Visible = false; btnIssuedBooks.Visible = false; btnIssueBooks.Visible = false; } else if (txtMemberId.Text.Substring(4, 3)== "OPR") { btnSearch.Visible = false; btnIssuedBooks.Visible = false; } else { btnIssuedBooks.Visible = true; btnFineDetails.Visible = true; btnIssueBooks.Visible = false; } myConnection = new SqlConnection("server=ashuamu;Trusted_Connection=True;DataBase=Library"); lblOldPassword.Visible = false; lblmsg.Visible = false; lblNewPassword.Visible = false; } protected void btnSearch_Click(object sender, EventArgs e) { Response.Redirect("SearchBooks.aspx"); } protected void btnPassWord_Click(object sender, EventArgs e) { } protected void btnLogout_Click(object sender, EventArgs e) { Response.Redirect("Default.aspx"); } protected void btnChange_Click(object sender, EventArgs e) { DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand(); myCommand.Connection = myConnection; myCommand.CommandType = CommandType.Text; myCommand.CommandText = "select MemberIdY,MemberIdClass,MemberIdRno,Password from MemberDetails where MemberIdY=@Param1 and MemberIdClass=@Param2 and MemberIdRno=@Param3 ";

SqlParameter Param1 = myCommand.Parameters.Add("@Param1",SqlDbType.VarChar,10); Param1.Value = txtMemberId.Text.Substring(0,4);

- 33 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

SqlParameter Param2 = myCommand.Parameters.Add("@Param2", SqlDbType.VarChar, 10); SqlParameter Param3 = myCommand.Parameters.Add("@Param3", SqlDbType.Int); if (txtMemberId.Text.Substring(4, 3) == "EXT" | txtMemberId.Text.Substring(4, 3) == "OPR") { Param2.Value = txtMemberId.Text.Substring(4, 5); Param3.Value = txtMemberId.Text.Substring(9,txtMemberId.Text.Length-9); } else { Param2.Value = txtMemberId.Text.Substring(4, 3); Param3.Value = txtMemberId.Text.Substring(7, txtMemberId.Text.Length - 7); } // Param3.Value = txtMemberId.Text.Substring(txtMemberId.Text.Length - 2, txtMemberId.Text.Length ); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); if (txtOldPassword.Text == Convert.ToString(myDataSet.Tables[0].Rows[0][3]) & txtOldPassword.Text!="") { if (txtNewPassword.Text!="") { try { myCommand.CommandText = "Update MemberDetails set Password=@Param4 where MemberIdY=@Param1 and MemberIdClass=@Param2 and MemberIdRno=@Param3 "; SqlParameter Param4 = myCommand.Parameters.Add("@Param4",SqlDbType.VarChar,20); Param4.Value = txtNewPassword.Text; myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); myConnection.Open(); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); myConnection.Close(); lblmsg.Visible = true; lblmsg.Text = "Your Password has been changed...."; } catch (Exception) { lblmsg.Visible = true; lblmsg.Text = "Unable to change your Password. You may try again..."; } }

- 34 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


else { lblNewPassword.Visible = true; lblNewPassword.Text = "Enter New Password "; } else { }

lblOldPassword.Visible = true; lblOldPassword.Text = "Incorrect Old Password "; } } protected void txtOldPassword_TextChanged(object sender, EventArgs e) { lblOldPassword.Visible = false; } protected void btnIssuedBooks_Click(object sender, EventArgs e) { Response.Redirect("IssueBooks.aspx"); } protected void btnFineDetails_Click(object sender, EventArgs e) { Response.Redirect("FineDetails.aspx"); } protected void btnIssuedBooks_Click1(object sender, EventArgs e) { Response.Redirect("IssuedBooks.aspx"); } } DeleteBookDetails.aspx.cs public partial class DeleteBookDetails : System.Web.UI.Page { SqlConnection myConnection = new SqlConnection(); protected void Page_Load(object sender, EventArgs e) { HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); if (LoginStatus.Value == "1") { Response.Redirect("Default.aspx"); } lbldelete.Visible = false; // BookIdF.Items.Clear(); //BookIdF.Items.Add("Floor"); myConnection = new SqlConnection("server=ashuamu;Trusted_Connection= True;database=Library"); myConnection.Open(); DataSet myDataSet1 = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter("select distinct BookIdF from BookDetails",myConnection); myDataAdapter.Fill(myDataSet1); if(!IsPostBack) for (int count = 0; count < myDataSet1.Tables[0].Rows.Count; count++) { BookIdF.Items.Add(Convert.ToString(myDataSet1.Tables[0].R ows[count][0]));

- 35 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


} myConnection.Close(); } protected void Delete_Click(object sender, EventArgs e) { lbldelete.Visible = true; DataSet myDataSet = new DataSet(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.StoredProcedure; myCommand.CommandText = "DELETE_BOOK_DETAILS"; myCommand.Connection = myConnection; SqlParameter myParameter1 = myCommand.Parameters.Add("@BookIdF", SqlDbType.Int, 3); myParameter1.Value = BookIdF.Text; SqlParameter myParameter2 = myCommand.Parameters.Add("@BookIdRack", SqlDbType.Int, 4); myParameter2.Value = BookIdRack.Text; SqlParameter myParameter3 = myCommand.Parameters.Add("@BookIdSno", SqlDbType.Int, 3); myParameter3.Value = BookIdSno.Text; SqlDataAdapter myDataAdapter = new SqlDataAdapter(); myConnection.Open(); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); myConnection.Close(); lbldelete.Text = "Book Has Been Deleted Successfully"; BookIdF.Text = "Floor"; BookIdRack.Text = "Rack"; BookIdSno.Text = "Sno"; Title.Text = " "; AuthorName.Text = ""; Status.Text = "Select"; Type.Text = "Select"; Date.Text = " "; Price.Text = " "; Show.Visible = true; Delete.Visible = false; } protected void BookIdSno_SelectedIndexChanged(object sender, EventArgs e) { Delete.Visible = false; Show.Visible = true; Title.Text = " "; AuthorName.Text = ""; Status.Text = "Select"; Type.Text = "Select"; Date.Text = " "; Price.Text = " "; } protected void BookIdF_SelectedIndexChanged(object sender, EventArgs e) { //BookIdRack.Enabled = true;

- 36 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


DataSet myDataSet1 = new DataSet(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.StoredProcedure; myCommand.Connection = myConnection; myCommand.CommandText = "BOOK_ID_RACK"; SqlParameter myParameter1 = myCommand.Parameters.Add("@BookIdF", SqlDbType.VarChar, 3); myParameter1.Value = BookIdF.Text ; SqlDataAdapter myDataAdapter = new SqlDataAdapter(); myConnection.Open(); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet1); myConnection.Close(); BookIdRack.Items.Clear(); BookIdRack.Items.Add("Rack"); BookIdSno.Items.Clear(); BookIdSno.Items.Add("Sno"); for (int count = 0; count < myDataSet1.Tables[0].Rows.Count; {

count++)

BookIdRack.Items.Add(Convert.ToString(myDataSet1.Tables[0 ].Rows[count][0])); } Delete.Visible = false; Show.Visible = true; Title.Text = " "; AuthorName.Text = ""; Status.Text = "Select"; Type.Text = "Select"; Date.Text = " "; Price.Text = " "; } protected void BookIdRack_SelectedIndexChanged(object sender, EventArgs e) { DataSet myDataSet1 = new DataSet(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.StoredProcedure; myCommand.Connection = myConnection; myCommand.CommandText = "BOOK_ID_SNO"; SqlParameter myParameter1 = myCommand.Parameters.Add("@BookIdF", SqlDbType.VarChar , 3); myParameter1.Value = BookIdF.Text ; SqlParameter myParameter2 = myCommand.Parameters.Add("@BookIdRack", SqlDbType.VarChar , 4); myParameter2.Value = BookIdRack.Text ; SqlDataAdapter myDataAdapter = new SqlDataAdapter(); myConnection.Open(); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet1); myConnection.Close(); BookIdSno.Items.Clear(); BookIdSno.Items.Add("Sno");

- 37 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


for (int count = 0; count < myDataSet1.Tables[0].Rows.Count; {

count++)

BookIdSno.Items.Add(Convert.ToString(myDataSet1.Tables[0] .Rows[count][0])); } Delete.Visible = false; Show.Visible = true; Title.Text = " "; AuthorName.Text = ""; Status.Text = "Select"; Type.Text = "Select"; Date.Text = " "; Price.Text = " "; } protected void Show_Click(object sender, EventArgs e) { try { DataSet myDataSet1 = new DataSet(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.StoredProcedure; myCommand.Connection = myConnection; myCommand.CommandText = "BOOK_DETAILS_SHOW"; SqlParameter myParameter1 = myCommand.Parameters.Add("@BookIdF", SqlDbType.VarChar, 3); myParameter1.Value = BookIdF.Text; SqlParameter myParameter2 = myCommand.Parameters.Add("@BookIdRack", SqlDbType.VarChar, 4); myParameter2.Value = BookIdRack.Text; SqlParameter myParameter3 = myCommand.Parameters.Add("@BookIdSno", SqlDbType.VarChar, 3); myParameter3.Value = BookIdSno.Text; SqlDataAdapter myDataAdapter1 = new SqlDataAdapter(); myConnection.Open(); myDataAdapter1.SelectCommand = myCommand; myDataAdapter1.Fill(myDataSet1); myConnection.Close(); Title.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][3]); AuthorName.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][4]); Status.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][5]); Type.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0] [7]); Date.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0] [8]); Price.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][9]); Delete.Visible = true; Show.Visible = false; } catch (Exception) {

- 38 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


}

} }

DeleteMemberDetails.aspx.cs public partial class DeleteMemberDetails : System.Web.UI.Page { SqlConnection myConnection = new SqlConnection("server=ashuamu;Trusted_Connection=True;DataBase=Library"); protected void Page_Load(object sender, EventArgs e) { HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); if (LoginStatus.Value == "1") { Response.Redirect("Default.aspx"); } DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter("select distinct MemberIdY from MemberDetails", myConnection); if (!IsPostBack) { myDataAdapter.Fill(myDataSet); for (int count = 0; count < myDataSet.Tables[0].Rows.Count; count++) { ddlMemberIdY.Items.Add(Convert.ToString(myDataSet.Tab les[0].Rows[count][0])); } btnDelete.Visible = false; } } protected void btnShow_Click(object sender, EventArgs e) { lblsuccess.Visible = false; try { // lblerror.Visible = false; DataSet myDataSet1 = new DataSet(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.StoredProcedure; myCommand.Connection = myConnection; myCommand.CommandText = "Select_Member_Details"; SqlParameter myParameter1 = myCommand.Parameters.Add("@MemberIdY", SqlDbType.VarChar, 4); myParameter1.Value = ddlMemberIdY.Text; SqlParameter myParameter2 = myCommand.Parameters.Add("@MemberIdClass", SqlDbType.VarChar, 5); myParameter2.Value = ddlMemberIdClass.Text; SqlParameter myParameter3 = myCommand.Parameters.Add("@MemberIdRno", SqlDbType.VarChar, 3); myParameter3.Value = ddlRno.Text; SqlDataAdapter myDataAdapter1 = new SqlDataAdapter(); myConnection.Open(); myDataAdapter1.SelectCommand = myCommand; myDataAdapter1.Fill(myDataSet1);

- 39 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


//myConnection.Close(); txtFName.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][4]); txtLName.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][5]); txtDOE.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][7]); ddlStatus.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][8]); txtAddress.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][9]); txtEmail.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][10]); txtPhoneNo.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][11]); btnDelete.Visible = true; btnShow.Visible = false; } catch (Exception) { } } protected void ddlMemberIdY_SelectedIndexChanged(object sender, EventArgs e) { lblsuccess.Visible = false; DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.Text; myCommand.Connection = myConnection; myCommand.CommandText = "select distinct MemberIdClass from MemberDetails where MemberIdY=@MemberIdY"; SqlParameter Param1 = myCommand.Parameters.Add("@MemberIdY", SqlDbType.VarChar, 4); Param1.Value = ddlMemberIdY.Text; myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); ddlMemberIdClass.Items.Clear(); ddlMemberIdClass.Items.Add("Class"); for (int count = 0; count < myDataSet.Tables[0].Rows.Count; count++) ddlMemberIdClass.Items.Add(Convert.ToString(myDataSet.Tab les[0].Rows[count][0])); btnShow.Visible = true; btnDelete.Visible = false; txtFName.Text = ""; txtLName.Text = ""; txtAddress.Text = ""; txtDOE.Text = ""; txtEmail.Text = ""; txtPhoneNo.Text = ""; txtRenewal.Text = ""; ddlStatus.Text = "Select"; }

- 40 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


protected void ddlMemberIdClass_SelectedIndexChanged(object sender, EventArgs e) { DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.Text; myCommand.Connection = myConnection; myCommand.CommandText = "select distinct MemberIdRno from MemberDetails where (MemberIdClass=@MemberIdClass and MemberIdY=@MemberIdY)"; SqlParameter Param1 = myCommand.Parameters.Add("@MemberIdY", SqlDbType.VarChar, 4); Param1.Value = ddlMemberIdY.Text; SqlParameter Param2 = myCommand.Parameters.Add("@MemberIdClass", SqlDbType.VarChar, 5); Param2.Value = ddlMemberIdClass.Text; myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); ddlRno.Items.Clear(); ddlRno.Items.Add("Rno"); count++) for (int count = 0; count < myDataSet.Tables[0].Rows.Count;

ddlRno.Items.Add(Convert.ToString(myDataSet.Tables[0].Row s[count][0])); btnShow.Visible = true; btnDelete.Visible = false; txtFName.Text = ""; txtLName.Text = ""; txtAddress.Text = ""; txtDOE.Text = ""; txtEmail.Text = ""; txtPhoneNo.Text = ""; txtRenewal.Text = ""; ddlStatus.Text = "Select"; } protected void ddlRno_SelectedIndexChanged(object sender, EventArgs e) { txtFName.Text = ""; txtLName.Text = ""; txtAddress.Text = ""; txtDOE.Text = ""; txtEmail.Text = ""; txtPhoneNo.Text = ""; txtRenewal.Text = ""; ddlStatus.Text = "Select"; btnShow.Visible = true; btnDelete.Visible = false; } protected void txtLName_TextChanged(object sender, EventArgs e) { } protected void btnDelete_Click(object sender, EventArgs e) {

- 41 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


if(ddlMemberIdY.Text!="Year" && ddlMemberIdClass.Text! ="Class" &&ddlRno.Text!="Rno") { DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.StoredProcedure; myCommand.Connection = myConnection; myCommand.CommandText = "DELETE_MEMBER_DETAILS"; SqlParameter myParameter1 = myCommand.Parameters.Add("@MemberIdY", SqlDbType.VarChar, 4); myParameter1.Value = ddlMemberIdY.Text; SqlParameter myParameter2 = myCommand.Parameters.Add("@MemberIdClass", SqlDbType.VarChar, 5); myParameter2.Value = ddlMemberIdClass.Text; SqlParameter myParameter3 = myCommand.Parameters.Add("@MemberIdRno", SqlDbType.VarChar, 3); myParameter3.Value = ddlRno.Text; myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); lblsuccess.Visible = true; lblsuccess.Text = "Record Has Been Deleted Successfully....."; ddlMemberIdY.Text = "Year"; ddlMemberIdClass.Text = "Class"; ddlRno.Text = "Rno"; txtFName.Text = ""; txtLName.Text = ""; txtAddress.Text = ""; txtDOE.Text = ""; txtEmail.Text = ""; txtPhoneNo.Text = ""; txtRenewal.Text = ""; ddlStatus.Text = "Select"; btnDelete.Visible = false; btnShow.Visible = true; } else { } } }

lblsuccess.Visible = true; lblsuccess.Text = "Enter MemberId Correctly.....";

ExternalMember.aspx.cs public partial class ExternalMember : System.Web.UI.Page { SqlConnection myConnection = new SqlConnection("server=ashuamu;Trusted_Connection=True;DataBase=Library"); protected void Page_Load(object sender, EventArgs e) {

- 42 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); if (LoginStatus.Value == "1") { Response.Redirect("Default.aspx"); }

} protected void Button1_Click(object sender, EventArgs e) { //int ascii; //ascii = TextBox2.Text; //TextBox3.Text = TextBox2.Text; }

protected void Button1_Click1(object sender, EventArgs e) { TextBox1.Text = TextBox2.Text; DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.Text; myCommand.Connection = myConnection; myCommand.CommandText = "insert into test values(@textbox2)"; SqlParameter param1 = myCommand.Parameters.Add("@textbox2",SqlDbType.VarChar,10); param1.Value = TextBox2.Text; myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); DataSet myDataSet1 = new DataSet(); SqlDataAdapter myDataAdapter1 = new SqlDataAdapter(); SqlCommand myCommand1 = new SqlCommand(); myCommand1.CommandType = CommandType.Text; myCommand1.Connection = myConnection; myCommand1.CommandText = "select * from test"; SqlParameter param2 = myCommand1.Parameters.Add("@textbox2", SqlDbType.VarChar, 10); param2.Value = TextBox2.Text; myDataAdapter1.SelectCommand = myCommand1; myDataAdapter1.Fill(myDataSet1); [0]); TextBox3.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0]

} }

IssueBooks.aspx.cs public partial class IssueBooks : System.Web.UI.Page { SqlConnection myConnection=new SqlConnection ("server=ashuamu;Trusted_Connection=True;Database=Library"); protected void Page_Load(object sender, EventArgs e) {

- 43 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


HttpCookie LoginStatus = Request.Cookies.Get("LoginStatus"); if (LoginStatus.Value == "1") { Response.Redirect("Default.aspx"); } txtBookId.Focus(); } protected void btnSearch_Click(object sender, EventArgs e) { Response.Redirect("SearchBooks.aspx"); } protected void btnLogout_Click(object sender, EventArgs e) { Response.Redirect("Default.aspx"); } protected void btnPassWord_Click(object sender, EventArgs e) { Response.Redirect("ChangePassWord.aspx"); } protected void btnFineDetails_Click(object sender, EventArgs e) { Response.Redirect("FineDetails.aspx"); } protected void btnIssuedBooks_Click(object sender, EventArgs e) { Response.Redirect("IssueBooks.aspx"); } protected void btnReturnBook_Click(object sender, EventArgs e) { Response.Redirect("ReturnBooks.aspx"); } protected void txtBookId_TextChanged(object sender, EventArgs e) { //try //{ DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand(); myCommand.CommandType = CommandType.StoredProcedure; myCommand.Connection = myConnection; myCommand.CommandText = "Select_Book_Details"; SqlParameter Param1 = myCommand.Parameters.Add("@BookIdF", SqlDbType.VarChar, 3); Param1.Value = txtBookId.Text.Substring(0, 3); SqlParameter Param2 = myCommand.Parameters.Add("@BookIdRack", SqlDbType.VarChar, 4); Param2.Value = txtBookId.Text.Substring(3, 4); SqlParameter Param3 = myCommand.Parameters.Add("@BookIdSno", SqlDbType.VarChar, 3); Param3.Value = txtBookId.Text.Substring(7, 3); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet);

- 44 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

txtTitle.Text = Convert.ToString(myDataSet.Tables[0].Rows[0][3]); txtAuthorName.Text = Convert.ToString(myDataSet.Tables[0].Rows[0][4]); txtDate.Text = Convert.ToString(System.DateTime.Today); txtStatus.Text = Convert.ToString(myDataSet.Tables[0].Rows[0][10]); if (Convert.ToString(myDataSet.Tables[0].Rows[0][10]) == "Available") { // btnIssueBook.Visible = true; txtMemberId.Text = "Enter MemberId"; txtMemberId.Enabled = true; btnReturnBook.Visible = false; txtMemberId.Text = ""; txtFName.Text = ""; txtLName.Text = ""; txtMemberId.Focus(); } else { DataSet myDataSet1 = new DataSet(); SqlDataAdapter myDataAdapter1 = new SqlDataAdapter(); SqlCommand myCommand1 = new SqlCommand(); myCommand1.CommandType = CommandType.Text; myCommand1.Connection = myConnection; myCommand1.CommandText = "select MemberId,FName,LName,IssueDate from FineDetails where (BookId=@BookId and ReturnDate=IssueDate)"; SqlParameter Param11 = myCommand1.Parameters.Add("@BookId", SqlDbType.VarChar, 15); Param11.Value = txtBookId.Text; myDataAdapter1.SelectCommand = myCommand1; myDataAdapter1.Fill(myDataSet1); txtMemberId.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][0]); txtFName.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][1]); txtLName.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][2]); btnIssueBook.Visible = false; btnReturnBook.Visible = true; txtMemberId.Enabled= false; ///txtMemberId.Text = "Enter MemberId"; txtDate.Text = Convert.ToString(myDataSet1.Tables[0].Rows[0][3]); } } e) protected void txtMemberId_TextChanged(object sender, EventArgs { btnIssueBook.Visible = true; DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand();

- 45 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore

myCommand.CommandType = CommandType.StoredProcedure; myCommand.Connection = myConnection; myCommand.CommandText = "Select_Member_Details"; SqlParameter Param1 = myCommand.Parameters.Add("@MemberIdY", SqlDbType.VarChar, 15); Param1.Value = txtMemberId.Text; SqlParameter Param2 = myCommand.Parameters.Add("@MemberIdClass", SqlDbType.VarChar, 5); Param2.Value = txtMemberId.Text.Substring(4, 3); SqlParameter Param3 = myCommand.Parameters.Add("@MemberIdRno", SqlDbType.Int); Param3.Value = Convert.ToInt32(txtMemberId.Text.Substring(7,txtMemberId.Text.Length7)); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); try { txtFName.Text = Convert.ToString(myDataSet.Tables[0].Rows[0][4]); txtLName.Text = Convert.ToString(myDataSet.Tables[0].Rows[0][5]); btnIssueBook.Focus(); } catch (Exception) { txtMemberId.Text = "Enter MemberId"; txtFName.Text = ""; txtLName.Text = ""; txtMemberId.Focus(); btnIssueBook.Visible = false; } } protected void btnIssueBook_Click(object sender, EventArgs e) { } protected void btnIssueBook_Click1(object sender, EventArgs e) { DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand(); myCommand.Connection = myConnection; myCommand.CommandType = CommandType.Text; myCommand.CommandText = "insert into FineDetails values(@MemberId,@FName,@LName,@BookId,@Title,@AuthorName,@IssueDate, @IssueDate,0)"; SqlParameter Param1 = myCommand.Parameters.Add("@MemberId", SqlDbType.VarChar, 20); Param1.Value = txtMemberId.Text;

- 46 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


SqlParameter Param2 = myCommand.Parameters.Add("@BookId", SqlDbType.VarChar, 20); Param2.Value = txtBookId.Text; SqlParameter Param3 = myCommand.Parameters.Add("@Title", SqlDbType.VarChar, 50); Param3.Value = txtTitle.Text; SqlParameter Param4 = myCommand.Parameters.Add("@AuthorName", SqlDbType.VarChar, 50); Param4.Value = txtAuthorName.Text; SqlParameter Param5 = myCommand.Parameters.Add("@IssueDate", SqlDbType.DateTime, 20); Param5.Value = Convert.ToDateTime(txtDate.Text); SqlParameter Param6 = myCommand.Parameters.Add("@FName", SqlDbType.VarChar, 50); Param6.Value = txtFName.Text; SqlParameter Param7 = myCommand.Parameters.Add("@LName", SqlDbType.VarChar, 50); Param7.Value = txtLName.Text; myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); DataSet myDataSet1 = new DataSet(); SqlDataAdapter myDataAdapter1 = new SqlDataAdapter(); SqlCommand myCommand1 = new SqlCommand(); myCommand1.Connection = myConnection; myCommand1.CommandType = CommandType.Text; myCommand1.CommandText = "Update BookDetails Set IssueStatus= @IssueStatus where (BookIdF=@BookIdF and BookIdRack=@BookIdRack and BookIdSno=@BookIdSno)"; SqlParameter Param11 = myCommand1.Parameters.Add("@BookIdF", SqlDbType.VarChar, 3); Param11.Value = txtBookId.Text.Substring(0, 3); SqlParameter Param21 = myCommand1.Parameters.Add("@BookIdRack", SqlDbType.VarChar, 4); Param21.Value = txtBookId.Text.Substring(3, 4); SqlParameter Param31 = myCommand1.Parameters.Add("@BookIdSno", SqlDbType.VarChar, 3); Param31.Value = txtBookId.Text.Substring(7, 3); SqlParameter Param41 = myCommand1.Parameters.Add("@IssueStatus",SqlDbType.VarChar,20); Param41.Value = "Issued"; myDataAdapter1.SelectCommand = myCommand1; myDataAdapter1.Fill(myDataSet1); btnIssueBook.Visible = false; txtMemberId.Enabled = false; btnIssueBook.Visible = false; clearall();

} protected void btnReturnBook_Click1(object sender, EventArgs e)

- 47 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


{

DataSet myDataSet = new DataSet(); SqlDataAdapter myDataAdapter = new SqlDataAdapter(); SqlCommand myCommand = new SqlCommand();

myCommand.CommandType = CommandType.Text; myCommand.Connection = myConnection; myCommand.CommandText = "update BookDetails set IssueStatus='Available' where(BookIdF=@BookIdF and BookIdRack=@BookIdRack and BookIdSno=@BookIdSno)"; SqlParameter Param1 = myCommand.Parameters.Add("@BookIdF", SqlDbType.VarChar, 3); Param1.Value = txtBookId.Text.Substring(0, 3); SqlParameter Param2 = myCommand.Parameters.Add("@BookIdRack", SqlDbType.VarChar, 4); Param2.Value = txtBookId.Text.Substring(3, 4); SqlParameter Param3 = myCommand.Parameters.Add("@BookIdSno", SqlDbType.VarChar, 3); Param3.Value = txtBookId.Text.Substring(7, 3); myDataAdapter.SelectCommand = myCommand; myDataAdapter.Fill(myDataSet); DataSet myDataSet1 = new DataSet(); SqlDataAdapter myDataAdapter1 = new SqlDataAdapter(); SqlCommand myCommand1 = new SqlCommand(); myCommand1.CommandType = CommandType.Text; myCommand1.Connection = myConnection; myCommand1.CommandText = "update FineDetails set ReturnDate=@ReturnDate, Fine=@Fine1 where (BookId=@BookId and ReturnDate=IssueDate) update BalanceFineDetails set TotalFine=TotalFine+@Fine1,BalanceFine=BalanceFine+@Fine1 where MemberId=@MemberId"; SqlParameter Param11 = myCommand1.Parameters.Add("@BookId", SqlDbType.VarChar, 15); Param11.Value = txtBookId.Text; SqlParameter Param12 = myCommand1.Parameters.Add("@ReturnDate", SqlDbType.DateTime); Param12.Value = System.DateTime.Today; int Fine1 = Convert.ToInt32(System.DateTime.Today.Subtract(Convert.ToDateTime(txt Date.Text)).Days); SqlParameter Param13 = myCommand1.Parameters.Add("@Fine1", SqlDbType.Int,5); if (Fine1 > 7) { Param13.Value = Convert.ToString((Fine1)-7); } else { Param13.Value ="0"; }

- 48 http://aspspider.info/OnlineLibraySystem

MCA V

DEPARTMENT OF COMPUTER SCIENCE, IIT, Bijnore


SqlParameter Param14 = myCommand1.Parameters.Add("@MemberId",SqlDbType.VarChar,20); Param14.Value = txtMemberId.Text; myDataAdapter1.SelectCommand = myCommand1; myDataAdapter1.Fill(myDataSet1); btnReturnBook.Visible = false; clearall(); } protected void clearall() { txtBookId.Text = "Enter BookId"; txtTitle.Text = ""; txtTitle.Text = ""; txtAuthorName.Text = ""; txtDate.Text = ""; txtMemberId.Text = ""; txtFName.Text = ""; txtLName.Text = ""; txtStatus.Text = ""; } }

- 49 http://aspspider.info/OnlineLibraySystem

MCA V

Você também pode gostar