LIBRA LIBRARY FINAL

 

PROJECT SETUP

    

 

WEB CONFIG FILE

<?xml version="1.0"?>

<configuration>

  <connectionStrings>

    <add name="LIBRA_LIBDB" connectionString="Data Source=.;Initial Catalog=LIBRA_LIB;Integrated Security=True"/>

  </connectionStrings>

  <system.web>

    <compilation debug="true" targetFramework="4.5">

      <assemblies>

        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

      </assemblies>

    </compilation>

    <httpRuntime targetFramework="4.5"/>

  </system.web>

  <appSettings>

    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>

  </appSettings>

</configuration>

 

CLASSES USED

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Data;

using System.Data.SqlClient;

using System.Configuration;

 

/// <summary>

/// Summary description for ClsAdminLogic

/// </summary>

public class ClsAdminLogic

{

    ClsConnectionString Connect = new ClsConnectionString();

    public SqlConnection conn;

    public SqlCommand cmd;

 

 

    public string username, password;

    public string branchname, subject, course, downloadLink;

    public int studentID, ppid, branchID, cmpId;

    public string firstname, contatcnumber, semailid, spassword;

    public string publication, publicationyear;

 

 

 

    public DateTime entrydate;  // instance variable

    public DateTime expiryDate; // instance variable

 

 

 

    public string Course

    {

        get { return course; }

        set { course = value; }

    }

 

    public string DownloadLink

    {

        get { return downloadLink; }

        set { downloadLink = value; }

    }

 

 

    public int CmpId

    {

        get { return cmpId; }

        set { cmpId = value; }

    }

 

 

 

    public int Ppid

    {

        get { return ppid; }

        set { ppid = value; }

    }

 

    public int BranchID

    {

        get { return branchID; }

        set { branchID = value; }

    }

 

    public DateTime Entrydate

    {

        get { return entrydate; }

        set { entrydate = value; }

    }

 

 

    public string Publication

    {

        get { return publication; }

        set { publication = value; }

    }

 

    public string Publicationyear

    {

        get { return publicationyear; }

        set { publicationyear = value; }

    }

 

 

    public string Firstname

    {

        get { return firstname; }

        set { firstname = value; }

    }

 

    public string Contatcnumber

    {

        get { return contatcnumber; }

        set { contatcnumber = value; }

    }

 

    public string Semailid

    {

        get { return semailid; }

        set { semailid = value; }

    }

 

    public string Spassword

    {

        get { return spassword; }

        set { spassword = value; }

    }

 

 

 

    public int StudentID

    {

        get { return studentID; }

        set { studentID = value; }

    }

 

 

 

    public string Username

    {

        get { return username; }

        set { username = value; }

    }

 

    public string Password

    {

        get { return password; }

        set { password = value; }

    }

    public string BranchName

    {

        get { return branchname; }

        set { branchname = value; }

    }

    public string Subject

    {

        get { return subject; }

        set { subject = value; }

    }

 

 

    public void AdminLogin()

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("ADMIN_SELECT_FOR_LOGIN", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@username", username);

        cmd.Parameters.AddWithValue("@password", password);

        cmd.ExecuteNonQuery();

    }

 

    public void AddBranch()

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("BRANCH_INSERT", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@BranchName", BranchName);

        cmd.Parameters.AddWithValue("@Subject", Subject);

        cmd.Parameters.AddWithValue("@EntryDate"DateTime.Now);

        cmd.ExecuteNonQuery();

        conn.Close();

 

    }

 

 

    public ClsAdminLogic()

    {

        entrydate = DateTime.Today; // Set the entry date when object is created

        expiryDate = entrydate.AddDays(30); // Add 30 days to entry date for expiry date

    }

 

 

    public void StudentDeletebyAdmin(int studentID)

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("STUDENT_DELETE", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@SID", studentID);

        cmd.ExecuteNonQuery();

        conn.Close();

    }

 

    public void BranchDelete(int branchID)

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("BRANCH_DELETE", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@BranchID", branchID);

        cmd.ExecuteNonQuery();

        conn.Close();

    }

 

 

    public void PublicationDelete(int ppid)

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("PUBLICATION_DELETE", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@PID", ppid);

        cmd.ExecuteNonQuery();

        conn.Close();

    }

 

 

 

 

    public void AddStudentbyAdmin()

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("STUDENT_INSERT_BY_ADMIN", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@FirstName", firstname);

        cmd.Parameters.AddWithValue("@ContactNo", contatcnumber);

        cmd.Parameters.AddWithValue("@Email", semailid);

        cmd.Parameters.AddWithValue("@Password", spassword);

        cmd.Parameters.AddWithValue("@EntryDate", entrydate.ToString("dd-MMMM-yyyy"));

        cmd.Parameters.AddWithValue("@ExpiryDate", expiryDate.ToString("dd-MMMM-yyyy"));

        //cmd.Parameters.AddWithValue("@ExpiryDate", DateTime.Today.ToString("dd-MMMM-yyyy"));

        cmd.ExecuteNonQuery();

        conn.Close();

 

    }

 

    public void UpdatePublication()

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("PUBLICATION_IPDATE", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@PID", ppid);

        cmd.Parameters.AddWithValue("@PublicationYear", publicationyear);

        cmd.Parameters.AddWithValue("@Publication", publication);

        cmd.Parameters.AddWithValue("@EntryDate", entrydate);

        cmd.ExecuteNonQuery();

        conn.Close();

    }

 

    public void UpdateBranch()

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("BRANCH_UPDATE", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@BranchID", branchID);

        cmd.Parameters.AddWithValue("@BranchName", branchname);

        cmd.Parameters.AddWithValue("@Subject", subject);

        cmd.Parameters.AddWithValue("@EntryDate", entrydate);

        cmd.ExecuteNonQuery();

        conn.Close();

 

    }

 

 

    public DataSet LoadStudentDetails(int studentID)

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("STUDENT_SELECT_BY_SID", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@SID", studentID);

        DataSet ds = new DataSet();

        SqlDataAdapter da = new SqlDataAdapter(cmd);

        da.Fill(ds);

        return ds;

    }

 

 

    public void UpdateComplaintStatus(int cmpId)

    {

        using (SqlConnection conn = new SqlConnection(Connect.CS))

        {

            using (SqlCommand cmd = new SqlCommand("COMPLAINT_UPDATE_BYID", conn))

            {

                cmd.CommandType = CommandType.StoredProcedure;

                cmd.Parameters.AddWithValue("@CmpID", cmpId);

 

                conn.Open();

                cmd.ExecuteNonQuery();

                conn.Close();

            }

        }

    }

 

 

    public void SyllabusAdd()

    {

        using (SqlConnection conn = new SqlConnection(Connect.CS))

        {

            using (SqlCommand cmd = new SqlCommand("SYLLABUS_INSERT", conn))

            {

                cmd.CommandType = CommandType.StoredProcedure;

                cmd.Parameters.AddWithValue("@Subject", subject);

                cmd.Parameters.AddWithValue("@Course", course);

                cmd.Parameters.AddWithValue("@Downloadlnk", downloadLink);

                cmd.Parameters.AddWithValue("@EntryDate", entrydate);

                conn.Open();

                cmd.ExecuteNonQuery();

            }

        }

    }

 

}

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Data;

using System.Data.SqlClient;

using System.Configuration;

 

/// <summary>

/// Summary description for ClsBook

/// </summary>

public class ClsBook

{

    ClsConnectionString connect = new ClsConnectionString();

    public SqlConnection conn;

    public SqlCommand cmd;

 

    public string bookname, author, detail, publicationyear, branch, copyRight, bookImagePath;

    public string studentName;

    public float price;

    public int quantities, bid, studentID, quantityRemain, bookID;

 

 

    public DateTime issueDate;  // instance variable

    public DateTime returnDate; // instance variable

 

 

 

    public int BookID

    {

        get { return bookID; }

        set { bookID = value; }

    }

 

    public DateTime IssueDate

    {

        get { return issueDate; }

        set { issueDate = value; }

    }

 

    public DateTime ReturnDate

    {

        get { return returnDate; }

        set { returnDate = value; }

    }

 

 

    public string StudentName

    {

        get { return studentName; }

        set { studentName = value; }

    }

 

    public int QuantityRemain

    {

        get { return quantityRemain; }

        set { quantityRemain = value; }

    }

    public int StudentID

    {

        get { return studentID; }

        set { studentID = value; }

    }

 

 

    public int Bid

    {

        get { return bid; }

        set { bid = value; }

    }

 

    public string BookName

    {

        get { return bookname; }

        set { bookname = value; }

    }

 

    public string BookImagePath

    {

        get { return bookImagePath; }

        set { bookImagePath = value; }

 

    }

 

    public string Author

    {

        get { return author; }

        set { author = value; }

 

    }

 

    public string Detail

    {

        get { return detail; }

        set { detail = value; }

 

    }

 

    public float Price

    {

        get { return price; }

        set { price = value; }

    }

 

 

    public string PublicationYear

    {

        get { return publicationyear; }

        set { publicationyear = value; }

    }

 

    public string Branch

    {

        get { return branch; }

        set { branch = value; }

    }

 

    public int Quantities

    {

        get { return quantities; }

        set { quantities = value; }

    }

 

 

    public string CopyRight

    {

        get { return copyRight; }

        set { copyRight = value; }

    }

 

    //public byte[] BookImage

    //{

    //    get { return bookImage; }

    //    set { bookImage = value; }

    //}

 

    public void BookInsert()

    {

        conn = new SqlConnection(connect.CS);

        conn.Open();

        cmd = new SqlCommand("BOOK_INSERT", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@bookname", bookname);

        cmd.Parameters.AddWithValue("@author", author);

        cmd.Parameters.AddWithValue("@detail", detail);

        cmd.Parameters.AddWithValue("@publicationyear", publicationyear);

        cmd.Parameters.AddWithValue("@branch", branch);

        cmd.Parameters.AddWithValue("@copyRight", copyRight);

        cmd.Parameters.AddWithValue("@BookImages", bookImagePath);

        cmd.Parameters.AddWithValue("@price", price);

        cmd.Parameters.AddWithValue("@quantities", quantities);

        cmd.Parameters.AddWithValue("@EntryDate"DateTime.Now);

        cmd.ExecuteNonQuery();

        conn.Close();

    }

 

    public ClsBook()

    {

        //

        // TODO: Add constructor logic here

        //

    }

 

 

    public void IssueBooksbyStudent()

    {

        using (SqlConnection conn = new SqlConnection(connect.CS))

        {

            using (SqlCommand cmd = new SqlCommand("ISSUEBOOK_INSERT", conn))

            {

                cmd.CommandType = CommandType.StoredProcedure;

                cmd.Parameters.AddWithValue("@StudentID", studentID);

                cmd.Parameters.AddWithValue("@StudentName", studentName);

                cmd.Parameters.AddWithValue("@BookName", bookname);

                cmd.Parameters.AddWithValue("@Author", author);

                cmd.Parameters.AddWithValue("@Price", price);

                cmd.Parameters.AddWithValue("@Details", detail);

                cmd.Parameters.AddWithValue("@PublicationYear", publicationyear);

                cmd.Parameters.AddWithValue("@QuantityRemain", quantityRemain);

                cmd.Parameters.AddWithValue("@BookID", bookID);

                cmd.Parameters.AddWithValue("@IssueDate", issueDate);

                cmd.Parameters.AddWithValue("@ReturnDate", returnDate);

                conn.Open();

                cmd.ExecuteNonQuery();

            }

        }

    }

 

 

 

    public DataSet LoadStudentDetails(int studentID)

    {

        conn = new SqlConnection(connect.CS);

        conn.Open();

        cmd = new SqlCommand("STUDENT_SELECT_BY_SID", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@SID", studentID);

        DataSet ds = new DataSet();

        SqlDataAdapter da = new SqlDataAdapter(cmd);

        da.Fill(ds);

        return ds;

    }

 

 

    //public DataSet GetBookQuantity(int bookID)

    //{

    //    using (SqlConnection conn = new SqlConnection(connect.CS))

    //    {

    //        conn.Open();

    //        using (SqlCommand cmd = new SqlCommand("ISSUE_BOOK_QTY_BYID", conn))

    //        {

    //            cmd.CommandType = CommandType.StoredProcedure;

    //            cmd.Parameters.AddWithValue("@BookID", bookID);

    //            DataSet ds = new DataSet();

    //            SqlDataAdapter da = new SqlDataAdapter(cmd);

    //            da.Fill(ds);

    //            return ds;

    //        }

    //    }

    //}

 

 

 

 

    //Helper Method

    public int GetBookQuantity(int bookID)

    {

        int quantity = 0;

        using (SqlConnection conn = new SqlConnection(connect.CS))

        {

            conn.Open();

            using (SqlCommand cmd = new SqlCommand("ISSUE_BOOK_QTY_BYID", conn))

            {

                cmd.CommandType = CommandType.StoredProcedure;

                cmd.Parameters.AddWithValue("@BookID", bookID);

                using (SqlDataReader reader = cmd.ExecuteReader())

                {

                    if (reader.Read())

                    {

                        quantity = Convert.ToInt32(reader["Quantities"]);

                    }

                }

            }

        }

 

        return quantity;

    }

 

 

    //Helper Method

    public void UpdateBookQuantity(int bookID, int newQuantity)

    {

        using (SqlConnection conn = new SqlConnection(connect.CS))

        {

            using (SqlCommand cmd = new SqlCommand("ISSUE_BOOK_UPDATE_QTY_BYID", conn))

            {

                cmd.CommandType = CommandType.StoredProcedure;

                cmd.Parameters.AddWithValue("@BookID", bookID);

                cmd.Parameters.AddWithValue("@NewQuantity", newQuantity);

                conn.Open();

                cmd.ExecuteNonQuery();

            }

        }

    }

 

 

    public bool HasStudentIssuedBook(int studentID, int bookID)

    {

        bool hasIssued = false;

        using (SqlConnection conn = new SqlConnection(connect.CS))

        {

            conn.Open();

            using (SqlCommand cmd = new SqlCommand("ISSUE_CHECK_BOOKISSUED_BYID", conn))

            {

                cmd.CommandType = CommandType.StoredProcedure;

                cmd.Parameters.AddWithValue("@StudentID", studentID);

                cmd.Parameters.AddWithValue("@BookID", bookID);

                var result = cmd.ExecuteScalar();

                if (result != null && Convert.ToInt32(result) > 0)

                {

                    hasIssued = true// Student has already issued the book

                }

            }

        }

        return hasIssued;

    }

 

 

 

 

    //public bool HasStudentIssuedBook(int studentID, int bookID)

    //{

    //    bool hasIssued = false;

    //    using (SqlConnection conn = new SqlConnection(connect.CS))

    //    {

    //        conn.Open();

    //        using (SqlCommand cmd = new SqlCommand("CHECK_BOOK_ISSUED", conn))

    //        {

    //            cmd.CommandType = CommandType.StoredProcedure;

    //            cmd.Parameters.AddWithValue("@StudentID", studentID);

    //            cmd.Parameters.AddWithValue("@BookID", bookID);

 

    //            object result = cmd.ExecuteScalar();

    //            if (result != null && Convert.ToInt32(result) > 0)

    //            {

    //                hasIssued = true;

    //            }

    //        }

    //    }

    //    return hasIssued;

    //}

 

}

 

 

 

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Data;

using System.Data.SqlClient;

using System.Configuration;

 

/// <summary>

/// Summary description for ClsConnectionString

/// </summary>

public class ClsConnectionString

{

    public string CS = ConfigurationManager.ConnectionStrings["LIBRA_LIBDB"].ConnectionString;

    public ClsConnectionString()

    {

        //

        // TODO: Add constructor logic here

        //

    }

}

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Data;

using System.Data.SqlClient;

using System.Configuration;

 

/// <summary>

/// Summary description for ClsPublication

/// </summary>

public class ClsPublication

{

    ClsConnectionString Connect = new ClsConnectionString();

    public SqlConnection conn;

    public SqlCommand cmd;

    public string Publication, publicationyear;

    public string PublicationName

    {

        get { return Publication; }

        set { Publication = value; }

    }

    public string PublicationYear

    {

        get { return publicationyear; }

        set { publicationyear = value; }

    }

 

    public void Publish()

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("PUBLICATION_INSERT", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@Publication", PublicationName);

        cmd.Parameters.AddWithValue("@PublicationYear", PublicationYear);

        //cmd.Parameters.AddWithValue("@PublicationName", PublicationName);

        //cmd.Parameters.AddWithValue("@PublicationYear", PublicationYear);

        cmd.Parameters.AddWithValue("@Entrydate"DateTime.Now);

        cmd.ExecuteNonQuery();

    }

 

    public ClsPublication()

    {

        //

        // TODO: Add constructor logic here

        //

    }

}

 

 

 

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Configuration;

using System.Data;

using System.Data.SqlClient;

 

/// <summary>

/// Summary description for ClsStudentLogic

/// </summary>

public class ClsStudentLogic

{

    ClsConnectionString Connect = new ClsConnectionString();

    public SqlConnection conn;

    public SqlCommand cmd;

 

 

    public string email, password, sFirstName, sMiddleName, sLastName, sFathersName, sMothersName;

    public string sDOB, sIDCardNo, sInstitute, sImage, sContactNo, sEmail, sPassword, sLocalAddress;

    public string sPermanentAddress, sCity, sPincode, sBranchName, sGender, sEntryDate;

    public int studentID, sSID, cmpID;

    public string subject, messge, ActionTaken, peding;

    public DateTime Entrydate;

 

 

 

    public string Peding

    {

        get { return peding; }

        set { peding = value; }

    }

 

    public string Subject

    {

        get { return subject; }

        set { subject = value; }

    }

 

    public string Messge

    {

        get { return messge; }

        set { messge = value; }

    }

 

    public int CmpID

    {

        get { return cmpID; }

        set { cmpID = value; }

    }

 

    public string SFirstName

    {

        get { return sFirstName; }

        set { sFirstName = value; }

    }

 

    public string SMiddleName

    {

        get { return sMiddleName; }

        set { sMiddleName = value; }

    }

    public string SLastName

    {

        get { return sLastName; }

        set { sLastName = value; }

    }

    public string SFathersName

    {

        get { return sFathersName; }

        set { sFathersName = value; }

    }

    public string SMothersName

    {

        get { return sMothersName; }

        set { sMothersName = value; }

    }

    public string SDOB

    {

        get { return sDOB; }

        set { sDOB = value; }

    }

    public string SIDCardNo

    {

        get { return sIDCardNo; }

        set { sIDCardNo = value; }

    }

    public string SInstitute

    {

        get { return sInstitute; }

        set { sInstitute = value; }

    }

    public string SImage

    {

        get { return sImage; }

        set { sImage = value; }

    }

    public string SContactNo

    {

        get { return sContactNo; }

        set { sContactNo = value; }

    }

    public string SEmail

    {

        get { return sEmail; }

        set { sEmail = value; }

    }

    public string SPassword

    {

        get { return sPassword; }

        set { sPassword = value; }

    }

    public string SLocalAddres

    {

        get { return sLocalAddress; }

        set { sLocalAddress = value; }

    }

    public string SPermanentAddress

    {

        get { return sPermanentAddress; }

        set { sPermanentAddress = value; }

    }

    public string SCity

    {

        get { return sCity; }

        set { sCity = value; }

    }

 

    public string SPincode

    {

        get { return sPincode; }

        set { sPincode = value; }

    }

 

    public string SBranchName

    {

        get { return sBranchName; }

        set { sBranchName = value; }

    }

 

    public string SGender

    {

        get { return sGender; }

        set { sGender = value; }

    }

 

    public string SEntryDate

    {

        get { return sEntryDate; }

        set { sEntryDate = value; }

    }

 

    public int SSID

    {

        get { return sSID; }

        set { sSID = value; }

    }

 

    public string Email

    {

        get { return email; }

        set { email = value; }

    }

 

    public string Password

    {

        get { return password; }

        set { password = value; }

    }

    public void StudentLogin()

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("SELECT_STUDENT_FOR_LOGIN", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@email", email);

        cmd.Parameters.AddWithValue("@password", password);

        cmd.ExecuteNonQuery();

    }

    public ClsStudentLogic()

    {

        //

        // TODO: Add constructor logic here

        //

    }

 

    public DataSet LoadStudentDetails(int studentID)

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("STUDENT_SELECT_BY_SID", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@SID", studentID);

        DataSet ds = new DataSet();

        SqlDataAdapter da = new SqlDataAdapter(cmd);

        da.Fill(ds);

        return ds;

    }

 

 

    public void UpddateStudentInformation(int sSID)

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("STUDENT_UPDATE", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@FirstName ", sFirstName);

        cmd.Parameters.AddWithValue("@MiddleName", sMiddleName);

        cmd.Parameters.AddWithValue("@LastName", sLastName);

        cmd.Parameters.AddWithValue("@FathersName", sFathersName);

        cmd.Parameters.AddWithValue("@MothersName", sMothersName);

        cmd.Parameters.AddWithValue("@IDCardNo", sIDCardNo);

        cmd.Parameters.AddWithValue("@Institute", sInstitute);

        cmd.Parameters.AddWithValue("@Image", sImage);

        cmd.Parameters.AddWithValue("@ContactNo", sContactNo);

        cmd.Parameters.AddWithValue("@Email", sEmail);

        cmd.Parameters.AddWithValue("@Password", sPassword);

        cmd.Parameters.AddWithValue("@LocalAddress", sLocalAddress);

        cmd.Parameters.AddWithValue("@PermanentAddress", sPermanentAddress);

        cmd.Parameters.AddWithValue("@City", sCity);

        cmd.Parameters.AddWithValue("@DOB", sDOB);

        cmd.Parameters.AddWithValue("@Pincode", sPincode);

        cmd.Parameters.AddWithValue("@BranchName", sBranchName);

        cmd.Parameters.AddWithValue("@Gender", sGender);

        cmd.Parameters.AddWithValue("@SID", sSID);

        cmd.ExecuteNonQuery();

        conn.Close();

    }

 

    public void ComplaintRegister()

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("COMPLAINT_INSERT", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@StudentName ", sFirstName);

        cmd.Parameters.AddWithValue("@Student_ID", sSID);

        cmd.Parameters.AddWithValue("@EntryDate"DateTime.Now);

        cmd.Parameters.AddWithValue("@Subject", subject);

        cmd.Parameters.AddWithValue("@Messge", messge);

        cmd.Parameters.AddWithValue("@ActionTaken", peding);

        cmd.ExecuteNonQuery();

        conn.Close();

 

    }

 

    public DataSet ComplaintSelectbyStudentID(int sSID)

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("COMPLAINT_SELECT_BY_STUDENTID", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@Student_ID", sSID);

        DataSet ds = new DataSet();

        SqlDataAdapter da = new SqlDataAdapter(cmd);

        da.Fill(ds);

        return ds;

    }

 

 

 

    public DataSet ViewMembershipByID(int sSID)

    {

        conn = new SqlConnection(Connect.CS);

        conn.Open();

        cmd = new SqlCommand("STUDENT_MEMBERSHIP_SELECT_BYID", conn);

        cmd.CommandType = CommandType.StoredProcedure;

        cmd.Parameters.AddWithValue("@SID", sSID);

        DataSet ds = new DataSet();

        SqlDataAdapter da = new SqlDataAdapter(cmd);

        da.Fill(ds);

        return ds;

    }

 

    public DataSet ViewPenalityStatusByStudentID(int sSID)

    {

        DataSet ds = new DataSet();

        using (SqlConnection conn = new SqlConnection(Connect.CS))

        {

            using (SqlCommand cmd = new SqlCommand("PENALITY_STATUS_BY_STUDENTID", conn))

            {

                conn.Open();

                cmd.CommandType = CommandType.StoredProcedure;

                cmd.Parameters.AddWithValue("@StudentID", sSID);

                SqlDataAdapter ad = new SqlDataAdapter(cmd);

                ad.Fill(ds);

            }

        }

        return ds;

    }

 

 

 

 

}

 

frmDefault.aspx

 

 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <title>LIBRA LIBRARY</title>

    <link href="StyleSheet.css" rel="stylesheet" />

    <link rel="icon" href="img/Libras_Logo.ico" type="image/icon" /> 

    <style type="text/css">

        .auto-style4 {

            width100%;

            border-stylesolid;

            border-width1px;

        }

 

        .auto-style5 {

            width410px;

        }

 

        .auto-style6 {

            width613px;

        }

 

        .auto-style7 {

            width486px;

            height320px;

        }

    </style>

</head>

<body>

    <form id="form1" runat="server">

        <div>

           <center><div class="Container">

            <div class="headerbg" style="height: 103px; width:1000px;">

                <%--<center><img src="img/libralogo.png" width="1000px" height="200px" /></center>--%>

                <center><img src="img/libralogos.png" width="1000px" height="180px" style="background-image: -webkit-linear-gradient(top,#fff,#0094ff);" /></center>

              <%--  <center><img src="img/imh.png" width="1000px" height="200px" /></center>--%>

            </div>

            <div class="Area">

                <table align="center" class="auto-style4">

                    <tr>

                        <td class="auto-style5" colspan="0">

                            <br />

                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                   <asp:Label ID="Label1" runat="server" BorderColor="Blue" Font-Bold="True" Font-Size="XX-Large" ForeColor="Blue" Text="Login with Your Details"></asp:Label>

                            &nbsp;&nbsp;&nbsp;

            <br />

                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                            <asp:Label ID="lblmsg" runat="server" ClientIDMode="Static" Style="color: #FF0000; font-size: medium; font-weight: 700"></asp:Label>

                            <br />

                            <strong>

                                <span class="auto-style1">&nbsp;

                   <br />

                                    &nbsp;&nbsp;&nbsp;</span><span class="auto-style2">&nbsp;&nbsp;&nbsp;</span><span class="auto-style3">&nbsp;&nbsp;&nbsp; User Name*</span></strong><br />

                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                   <asp:TextBox ID="txtUserName" runat="server" BorderStyle="None" Height="37px" Width="350px" placeholder="Enter valid username" Font-Size="Medium"></asp:TextBox>

                            <br />

                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName" ErrorMessage="Please enter Username*" ForeColor="Red" SetFocusOnError="True" ValidationGroup="log"></asp:RequiredFieldValidator>

                            <br />

                            <br />

                            <strong>

                                <span class="auto-style1">&nbsp;</span><span class="auto-style3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Password*</span></strong><br />

                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                   <asp:TextBox ID="txtPassword" runat="server" BorderStyle="None" Height="37px" Width="350px" TextMode="Password" placeholder="Enter valid password" Font-Size="Medium"></asp:TextBox>

                            <br />

                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword" ErrorMessage="Please enter Password*" ForeColor="Red" SetFocusOnError="True" ValidationGroup="log"></asp:RequiredFieldValidator>

                            <br />

                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                   <asp:RadioButton ID="rdolibrarian" runat="server" Font-Bold="True" Font-Size="Large" GroupName="usergroup" Text="Librarian" ValidationGroup="log" />

                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                   <asp:RadioButton ID="rdostudent" runat="server" Font-Bold="True" Font-Size="Large" GroupName="usergroup" Text="Student" ValidationGroup="log" />

                            <br />

                            <br />

                            <br />

 

                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                   <asp:Button ID="btnlogin" runat="server" CssClass="btn" BackColor="#FF9933" Height="35px" Text="LOG IN" Width="105px" ValidationGroup="log" OnClick="btnlogin_Click" Font-Bold="True" />

                            <br />

                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/frmAdminContact.aspx">Not a member yet click here to register! <span><img src="Img/gif_registration.gif" style="width:9%" /></span></asp:LinkButton>

 

                        &nbsp;</td>

                        <td class="auto-style6" colspan="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                        <img alt="Ms" class="auto-style7" src="img/Libras_Logo.png" /></td>

                    </tr>

                </table>

 

                <br />

                <marquee><h3 style="color:red"> Copyright all right reserved and Welcome to Libra Library, home of Books. If you have any complaint or suggetion please email to : admin@libralibray.com or login to www.libralibrary.com</h3></marquee>

                <div class="copyright">

                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

 

                   @ Copyright all rights reserved Libra Library 2020-2021

                </div>

 

            </div>

                </div></center> 

        </div>

    </form>

</body>

</html>

 

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data;

using System.Data.SqlClient;

using System.Configuration;

 

 

public partial class _Default : System.Web.UI.Page

{

    ClsConnectionString Conect = new ClsConnectionString();

    ClsAdminLogic AdminLogic = new ClsAdminLogic();

    ClsStudentLogic StudentLogic = new ClsStudentLogic();

   //string CS = ConfigurationManager.ConnectionStrings["LIBRA_LIBDB"].ConnectionString;

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!IsPostBack)

        {

            ViewState.Clear();

        }

    }

    protected void btnlogin_Click(object sender, EventArgs e)

    {

        if (rdolibrarian.Checked == true)

        {

            AdminLogic.username = txtUserName.Text;

            AdminLogic.password = txtPassword.Text;

            AdminLogic.AdminLogin();

            DataSet ds = new DataSet();

            SqlDataAdapter da = new SqlDataAdapter(AdminLogic.cmd);

            da.Fill(ds);

            if (ds.Tables[0].Rows.Count > 0)

            {

                Session["AID"] = ds.Tables[0].Rows[0]["aid"].ToString();

                Session["User"] = txtUserName.Text;

                Response.Redirect("frmAdminHome.aspx");

            }

            else

            {

                lblmsg.Text = "Invalid credentials!";

                txtUserName.Focus();

            }

         

        }

        else if (rdostudent.Checked == true)

        {

            StudentLogic.Email = txtUserName.Text;

            StudentLogic.password = txtPassword.Text;

            StudentLogic.StudentLogin();

            DataSet ds = new DataSet();

            SqlDataAdapter da = new SqlDataAdapter(StudentLogic.cmd);

            da.Fill(ds);

            if (ds.Tables[0].Rows.Count > 0)

            {

                Session["STUDSID"] = ds.Tables[0].Rows[0]["SID"].ToString();

                Session["STUDUSERNAME"] = ds.Tables[0].Rows[0]["FirstName"].ToString();

                Session["STUDLASTNAME"] = ds.Tables[0].Rows[0]["LastName"].ToString();

                Session["StudentPHOTO"] = ds.Tables[0].Rows[0]["Image"].ToString();

                Session["User"] = txtUserName.Text;

                Response.Redirect("~/Student/frmStudentHome.aspx");

            }

            else

            {

                lblmsg.Text = "Invalid credentials!";

                txtUserName.Focus();

            }

    

        }

        else if (rdostudent.Checked || rdolibrarian.Checked == false)

        {

            lblmsg.Text = "Please select User type!";

            txtUserName.Focus();

        }

    }

}

 

AdminMaster.Master

 

 

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="AdminMasterPage.master.cs" Inherits="MasterPage" %>

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <title>Libra Library</title>

    <link href="StyleSheet.css" rel="stylesheet" />

    <asp:ContentPlaceHolder id="head" runat="server">

    </asp:ContentPlaceHolder>

    <style type="text/css">

        .auto-style4 {

            width16%;

            floatleft;

            height462px;

        }

        .auto-style7 {

            height38px;

        }

        .auto-style8 {

            height6px;

        }

        .auto-style9 {

            height23px;

        }

        .auto-style10 {

            height22px;

        }

        .auto-style11 {

            height26px;

        }

        .auto-style12 {

            height12px;

        }

        .auto-style13 {

            height10px;

        }

        .auto-style14 {

            height19px;

        }

        .auto-style15 {

            height16px;

        }

        .auto-style16 {

            height33px;

        }

        </style>

</head>

<body>

    <form id="form1" runat="server">

        <div>

 

 

 

 

 

                <div class=" head">

                    

                    <%--<img src="img/Libra_ Library.png" width="800px;" style="height: 127px" />--%>

                   <%--  <img src="img/libralogo.png" width="800px;" style="height: 127px" />--%>

                    <img src="img/libralogos.png" width="800px;" style="height: 127px" />

                </div>

                <table align="left" class="auto-style1">

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                </table>

                <table align="left" class="auto-style4">

                    <tr>

                          <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

                        <td>Welcome:

                                

                            <asp:Label ID="lblName" runat="server" style="color: #FF0000; font-weight: 700; font-size: large"></asp:Label>

                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                        <img src="Img/animated-book-image-0045.gif" width="14%" /></td>

                    </tr>

                    <tr>

                        <td class="auto-style7">Your Login ID:<asp:Label ID="lblID" runat="server" style="color: #FF0000; font-weight: 700; font-size: large"></asp:Label>

                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                        <img src="Img/animated-book-image-0045.gif" width="14%" /></td>

                        &nbsp;</td>

                    </tr>

                    <tr>

                        <td class="auto-style9">

                            <asp:Button ID="Button1" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="ADD PUBLICATION" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button1_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td>

                            <asp:Button ID="Button2" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="ADD BOOKS" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button2_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style8">

                            <asp:Button ID="Button3" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="BOOK REPORT" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button3_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style10">

                            <asp:Button ID="Button4" CssClass="btnmenu" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="ADD BRANCH" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button4_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td style="font-weight: 700" class="auto-style11">

                            <asp:Button ID="Button14" CssClass="btnmenu" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="STUDENT REGISTRATION" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button14_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style12">

                            <asp:Button ID="Button15" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="STUDENT REPORT" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button15_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style13">

                            

                            <asp:Button ID="Button17" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="BOOK ISSUE REPORT" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button17_Click" />

                            

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style12">

                            <asp:Button ID="Button19" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="PENALITY REPORT" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button19_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style14">

                    <asp:Button ID="Button34" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button34_Click" Text="TASK MANAGER"  />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style15">

                    <asp:Button ID="Button22" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="VIEW COMPLAINT" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button22_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td>

                            <asp:Button ID="Button20" runat="server" BackColor="Red" BorderStyle="None" Height="37px" Text="LOG OUT" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button20_Click" />

                        </td>

 

 

                </table>

                <%--        <br />   

        <br />--%>

            

                <div class="details">

                   <%-- <img src="Img/LoginLogo.gif" width="100%" height="100%" />--%>

                    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

                    </asp:ContentPlaceHolder>

                </div>

                &nbsp;

        <table align="left" class="auto-style4">

            <tr>

                <td>&nbsp;Date:

                    <asp:Label ID="lblDate" runat="server" style="color: #FF0000; font-weight: 700; font-size: large"></asp:Label>

                </td>

            </tr>

            <tr>

                <td class="auto-style7">Time:&nbsp;

                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

                        <ContentTemplate>

                          <asp:Label ID="lblTime" runat="server" style="color: #FF0000; font-weight: 700; font-size: large"></asp:Label>

                         <asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick" />

                        </ContentTemplate>

                    </asp:UpdatePanel>

                  

                &nbsp;</td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button21" runat="server" BackColor="Lime" BorderStyle="None" Height="37px" Text="HOME SCREEN" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button21_Click" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button33" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" Text="ADVANCE SEARCH" OnClick="Button33_Click"  />

                </td>

            </tr>

            <tr>

                <td class="auto-style16">

                    <asp:Button ID="Button23" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="CALENDER" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button23_Click" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button24" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="MODULE" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

            <tr>

                <td style="font-weight: 700">

                    <asp:Button ID="Button25" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="SYLLABUS" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button25_Click" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button26" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="TIME TABLE" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button27" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="RETURN POLICY" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button27_Click" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button28" runat="server" BackColor="#FFFF66" BorderStyle="None" Height="37px" Text="ADMINISTRATORS" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="Black" OnClick="Button28_Click" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button29" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="UPGRADE" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button29_Click" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button30" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="SEND EMAIL" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button30_Click" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button31" runat="server" BackColor="Red" BorderStyle="None" Height="37px" Text="LOG OUT" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

 

 

        </table>

 

 

            </div>

 

    </form>

</body>

</html>

 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
 
public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        { 
        
        }
        if (Session["AID"] == null)
        {
            Response.Redirect("Default.aspx");
        }
        else
        {
            lblName.Text = Session["User"].ToString();
            lblID.Text = Session["AID"].ToString();
            lblDate.Text = DateTime.Today.ToString("dd-MMMM-yyyy");
            lblTime.Text = DateTime.Now.ToString("HH:mm:ss");
        }
    }
 
    protected void Button20_Click(object sender, EventArgs e)
    {
        Session["AID"] = null;
        Session["User"] = null;
        Response.Redirect("Default.aspx");
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmPublication.aspx");
    }
    protected void Button21_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmAdminHome.aspx");
    }
    protected void Button4_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmAddBranch.aspx");
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmAddBook.aspx");
    }
    protected void Button28_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmAdministrators.aspx");
    }
    protected void Button14_Click(object sender, EventArgs e)
    {
        Response.Redirect("FrmAddStudent.aspx");
    }
    protected void Button23_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmViewCalander.aspx");
    }
    protected void Button15_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmStudentReport.aspx");
    }
 
 
    protected void Button3_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmBookReport.aspx");
    }
 
    protected void Button34_Click(object sender, EventArgs e)
    {
 
    }
 
    protected void Button27_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmReturnPolicy.aspx");
    }
 
    protected void Timer1_Tick(object sender, EventArgs e)
    {
        lblTime.Text = DateTime.Now.ToString("HH:mm:ss");
    }
 
    protected void Button30_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmSendEmail.aspx");
    }
 
    protected void Button29_Click(object sender, EventArgs e)
    {
        Response.Write("<script>alert('Upgrade is not avialble, once it is available that will be updated!')</script>");
    }
 
    protected void Button22_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmViewStudentComplaint.aspx");
    }
 
    protected void Button33_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmAdvanceStudentSearch.aspx");
    }
 
    protected void Button25_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmUploadSyllabusCourse.aspx");
    }
 
    protected void Button17_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmBookIssueReport.aspx");
    }
 
    protected void Button19_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmPenalityReport.aspx");   
    }
}

 

frmAddBooks.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmAddBook.aspx.cs" Inherits="FrmBook" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <style type="text/css">

        .auto-style30 {

            text-decorationunderline;

        }

        .auto-style34 {

            width100%;

        }

        .auto-style35 {

            width207px;

        text-aligncenter;

    }

        .auto-style36 {

            width19px;

        }

        .auto-style37 {

            width144px;

        }

        .auto-style38 {

            height21px;

        }

        .auto-style39 {

            width207px;

            height21px;

        text-aligncenter;

    }

        .auto-style40 {

            width19px;

            height21px;

        }

        .auto-style41 {

            width144px;

            height21px;

        }

        .auto-style42 {

        }

        .auto-style43 {

            height21px;

            width129px;

        }

    </style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <h1 style="text-align:center">&nbsp;</h1>

    <h1 style="text-align:center" class="auto-style30">ADD BOOK DETAILS </h1>

                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                    <asp:Label ID="lblmsg" runat="server" style="color: #FF0000; font-size: large; font-weight: 700; text-align: center;" Font-Size="Small"></asp:Label>

                        <br />

                        <table align="center" class="auto-style34">

                            <tr>

                                <td class="auto-style42"><strong>&nbsp;Book Name :</strong></td>

                                <td class="auto-style35">

                                    <asp:TextBox ID="txtBookName" runat="server" Font-Size="Large" Height="30px" Width="232px" style="text-align: left"></asp:TextBox>

                                </td>

                                <td class="auto-style36">&nbsp;</td>

                                <td class="auto-style37"><strong>Publication Year :</strong></td>

                                <td>

                                    <asp:TextBox ID="txtPublicationYear" runat="server" Font-Size="Large" Height="30px" Width="232px"></asp:TextBox>

                                </td>

                            </tr>

                            <tr>

                                <td class="auto-style42">&nbsp;</td>

                                <td class="auto-style35">

                    <asp:RequiredFieldValidator ID="reqBookName" runat="server" ControlToValidate="txtBookName" ErrorMessage="This field is required*" style="font-weight: 700; color: #FF0000" ValidationGroup="AddBook"></asp:RequiredFieldValidator>

                                </td>

                                <td class="auto-style36">&nbsp;</td>

                                <td class="auto-style37">&nbsp;</td>

                                <td style="text-align: center">

                    <asp:RequiredFieldValidator ID="reqPublicationYear" runat="server" ControlToValidate="txtPublicationYear" ErrorMessage="This field is required*" style="font-weight: 700; color: #FF0000" ValidationGroup="AddBook"></asp:RequiredFieldValidator>

                                </td>

                            </tr>

                            <tr>

                                <td class="auto-style42"><strong>&nbsp;Auther Name :</strong></td>

                                <td class="auto-style35">

                                    <asp:TextBox ID="txtAutherName" runat="server" Font-Size="Large" Height="30px" Width="232px" style="text-align: left"></asp:TextBox>

                                </td>

                                <td class="auto-style36">&nbsp;</td>

                                <td class="auto-style37"><strong>Price of Book :</strong></td>

                                <td>

                                    <asp:TextBox ID="txtBookPrice" runat="server" Font-Size="Large" Height="30px" Width="232px"></asp:TextBox>

                                </td>

                            </tr>

                            <tr>

                                <td class="auto-style42">&nbsp;</td>

                                <td class="auto-style35">

                    <asp:RequiredFieldValidator ID="reqAutherName" runat="server" ControlToValidate="txtAutherName" ErrorMessage="This field is required*" style="font-weight: 700; color: #FF0000" ValidationGroup="AddBook"></asp:RequiredFieldValidator>

                                </td>

                                <td class="auto-style36">&nbsp;</td>

                                <td class="auto-style37">&nbsp;</td>

                                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                    <asp:RequiredFieldValidator ID="reqBookPrice" runat="server" ControlToValidate="txtBookPrice" ErrorMessage="Please enter price*" style="font-weight: 700; color: #FF0000; text-align: center;" ValidationGroup="AddBook"></asp:RequiredFieldValidator>

                                </td>

                            </tr>

                            <tr>

                                <td class="auto-style42"><strong>&nbsp;Qty of Books :</strong></td>

                                <td class="auto-style35">

                                    <asp:TextBox ID="txtQuantity" runat="server" Font-Size="Large" Height="30px" Width="232px" style="text-align: left"></asp:TextBox>

                                </td>

                                <td class="auto-style36">&nbsp;</td>

                                <td class="auto-style37"><strong>Copyright Yes/No :</strong></td>

                                <td>

                                    <asp:DropDownList ID="ddlCopyright" runat="server" Height="36px" Width="236px" Font-Size="Medium" OnSelectedIndexChanged="ddlCopyright_SelectedIndexChanged">

                                        <asp:ListItem>SELECT</asp:ListItem>

                                        <asp:ListItem>Yes</asp:ListItem>

                                        <asp:ListItem>No</asp:ListItem>

                                    </asp:DropDownList>

                                </td>

                            </tr>

                            <tr>

                                <td class="auto-style42">&nbsp;</td>

                                <td class="auto-style35">

                    <asp:RequiredFieldValidator ID="reqQty" runat="server" ControlToValidate="txtQuantity" ErrorMessage="Please enter Quantity*" style="font-weight: 700; color: #FF0000" ValidationGroup="AddBook"></asp:RequiredFieldValidator>

                                </td>

                                <td class="auto-style36">&nbsp;</td>

                                <td class="auto-style37">&nbsp;</td>

                                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                    <asp:RequiredFieldValidator ID="reqCopyright" runat="server" ControlToValidate="ddlCopyright" ErrorMessage="Select Copyright status*" style="font-weight: 700; color: #FF0000" ValidationGroup="AddBook" InitialValue="SELECT"></asp:RequiredFieldValidator>

                                </td>

                            </tr>

                            <tr>

                                <td class="auto-style42"><strong>Publication Name:</strong></td>

                                <td class="auto-style35">

                                    <asp:DropDownList ID="ddlpublicationName" runat="server" Height="36px" Width="236px" OnSelectedIndexChanged="ddlpublicationName_SelectedIndexChanged">

                                    </asp:DropDownList>

                                </td>

                                <td class="auto-style36">&nbsp;</td>

                                <td class="auto-style37"><strong>Branch Select :</strong></td>

                                <td>

                                    <asp:RadioButtonList ID="rdoBranchSelect" ValidationGroup="AddBook" runat="server" RepeatDirection="Horizontal">

                                    </asp:RadioButtonList>

                                </td>

                            </tr>

                            <tr>

                                <td class="auto-style43"></td>

                                <td class="auto-style39">

                    <asp:RequiredFieldValidator ID="reqPublication" runat="server" ControlToValidate="ddlpublicationName" ErrorMessage="Select publisher name*" style="font-weight: 700; color: #FF0000" ValidationGroup="AddBook"></asp:RequiredFieldValidator>

                                </td>

                                <td class="auto-style40"></td>

                                <td class="auto-style41"></td>

                                <td class="auto-style38"></td>

                            </tr>

                            <tr>

                                <td class="auto-style42"><strong>Book Image: </strong></td>

                                <td class="auto-style35">

                                    <asp:FileUpload ID="FileUpload1" runat="server" />

                                </td>

                                <td class="auto-style36">&nbsp;</td>

                                <td class="auto-style37"><strong>Details/Comments:</strong></td>

                                <td>

                                    <asp:TextBox ID="txtBookdetails" runat="server" Font-Size="Large" Height="72px" Width="232px" TextMode="MultiLine"></asp:TextBox>

                                </td>

                            </tr>

                            <tr>

                                <td class="auto-style42">&nbsp;</td>

                                <td class="auto-style35">&nbsp;</td>

                                <td class="auto-style36">&nbsp;</td>

                                <td class="auto-style37">&nbsp;</td>

                                <td>&nbsp;</td>

                            </tr>

                            <tr>

                                <td class="auto-style42">&nbsp;</td>

                                <td class="auto-style35">&nbsp;</td>

                                <td class="auto-style36">&nbsp;</td>

                                <td class="auto-style37">&nbsp;</td>

                                <td>&nbsp;</td>

                            </tr>

                            <tr>

                                <td class="auto-style42" colspan="5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;

                    <asp:Button ID="btnCancel" runat="server" BackColor="#66FF66" Font-Size="Large" ForeColor="Black" Height="37px" Text="CLEAR" ValidationGroup="AddPubli" Width="146px" OnClick="btnCancel_Click"/>

                                &nbsp;

                    <asp:Button ID="btnAddBook" runat="server" BackColor="#66FF66" Font-Size="Large" ForeColor="Black" Height="37px" Text="ADD BOOK" ValidationGroup="AddBook" Width="146px" OnClick="btnAddBook_Click1"/>

                                </td>

                            </tr>

                            <tr>

                                <td class="auto-style42">&nbsp;</td>

                                <td class="auto-style35">&nbsp;</td>

                                <td class="auto-style36">&nbsp;</td>

                                <td class="auto-style37">&nbsp;</td>

                                <td>&nbsp;</td>

                            </tr>

    </table>

    <br />

    <br />

    <br />

    <br />

    <h1>&nbsp;</h1>

</asp:Content>

 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.IO;
 
public partial class FrmBook : System.Web.UI.Page
{
    ClsConnectionString connect = new ClsConnectionString();
    ClsBook objbook = new ClsBook();
    ClsPublication objpublication = new ClsPublication();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
 
            DataSet dss = new DataSet();
            SqlDataAdapter daa = new SqlDataAdapter("BRANCH_SELECT", connect.CS);
            daa.Fill(dss);
            rdoBranchSelect.DataSource = dss;
            rdoBranchSelect.DataTextField = "BranchName";
            rdoBranchSelect.DataValueField = "BranchID";
            rdoBranchSelect.DataBind();
 
            DataSet ds = new DataSet();
            SqlDataAdapter da = new SqlDataAdapter("PUBLICATION_SELECT", connect.CS);
            da.Fill(ds);
            ddlpublicationName.DataSource = ds;
            ddlpublicationName.DataTextField = "Publication";
            ddlpublicationName.DataValueField = "PID";
            ddlpublicationName.DataBind();
            ddlpublicationName.Items.Insert(0, "----------SELECT PUBLICATION---------");
        }
 
    }
 
    protected void btnAddBook_Click1(object sender, EventArgs e)
    {
        if (FileUpload1.HasFile)
        {
            for (int i = 0; i < rdoBranchSelect.Items.Count; i++)
            {
                if (rdoBranchSelect.Items[i].Selected == true)
                {
                    string folderpath = Server.MapPath("~/Book/");
                    string filepath = Path.Combine(folderpath, FileUpload1.FileName);
                    FileUpload1.SaveAs(filepath);
                    objbook.bookname = txtBookName.Text;
                    objbook.author = txtAutherName.Text;
                    objbook.detail = txtBookdetails.Text;
                    objbook.publicationyear = txtPublicationYear.Text;
                    objbook.branch = rdoBranchSelect.Items[i].Text;
                    objbook.copyRight = ddlCopyright.SelectedItem.Text;
                    objbook.bookImagePath = "~/Book/" + FileUpload1.FileName;
                    objbook.price = float.Parse(txtBookPrice.Text);
                    objbook.quantities = int.Parse(txtQuantity.Text);
                    objbook.BookInsert();
                    Response.Write("<script>alert('Book details added successfully!')</script>");
                }
                else
                {
                    lblmsg.Text = "Please select branch!";
                }
 
            }
        }
        else
        {
            lblmsg.Text = "Please upload bookimage!";
        }
    }
 
    protected void ddlCopyright_SelectedIndexChanged(object sender, EventArgs e)
    {
 
    }
 
    protected void ddlpublicationName_SelectedIndexChanged(object sender, EventArgs e)
    {
 
    }
 
    protected void btnCancel_Click(object sender, EventArgs e)
    {
        ClearAll();
    }
 
    private void ClearAll()
    {
        txtBookName.Text = "";
        txtAutherName.Text = "";
        txtBookdetails.Text = "";
        txtBookPrice.Text = "";
        txtPublicationYear.Text = "";
        txtQuantity.Text = "";
        FileUpload1.Dispose();
        ddlCopyright.ClearSelection();
        ddlpublicationName.ClearSelection();
        rdoBranchSelect.ClearSelection();
    }
}

 

frmAddPublication.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmPublication.aspx.cs" Inherits="Publication" EnableEventValidation="false"    %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .auto-style8 {
            width100%;
        }
 
        .auto-style9 {
        }
 
        .auto-style10 {
            font-sizex-large;
            width211px;
        }
 
        .auto-style11 {
        }
 
        .auto-style12 {
            width191px;
        }
 
        .auto-style13 {
            text-decorationunderline;
        }
 
        .auto-style14 {
            width55px;
            height36px;
        }
 
        .auto-style15 {
            font-sizex-large;
            width211px;
            height36px;
        }
 
        .auto-style16 {
            width191px;
            height36px;
        }
 
        .auto-style17 {
            height36px;
        }
 
        .auto-style18 {
            width55px;
            height1px;
        }
 
        .auto-style19 {
            width211px;
            height1px;
        }
 
        .auto-style21 {
            height1px;
        }
 
        .auto-style22 {
            width191px;
            height43px;
        }
 
        .auto-style25 {
            width191px;
            height1px;
        }
 
        .auto-style26 {
            width55px;
            height19px;
        }
 
        .auto-style27 {
            height23px;
            width55px;
        }
 
        .auto-style28 {
            width55px;
        }
        .auto-style29 {
            width100%;
        }
        .auto-style30 {
            margin-left671px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <%--    <div class="HeadBack">
        <h1 style="text-align:center; color:#ffffff;">Add Publication Details</h1>
 
    </div>--%>
    <div>
        <div class="bgforecontent">
            <br />
            <br />
            <br />
            <h1 style="text-align: center" class="auto-style13">Add Publication Details</h1>
            <div>
 
                <table align="right" class="auto-style29">
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>
                            <asp:Button ID="btnExport" runat="server" BackColor="#FF3399" CssClass="auto-style30" Height="25px" OnClick="btnExport_Click1" Text="Export Data" Width="88px" />
                        </td>
                    </tr>
                </table>
 
            </div>
            <br />
            <br />
            <br />
            <table align="center" class="auto-style8">
                <tr>
                    <td class="auto-style26"></td>
                    <td class="auto-style15"><strong>Publication Name :</strong></td>
                    <td class="auto-style16">
                        <asp:TextBox ID="txtPublicationName" runat="server" Font-Size="Large" Height="30px" Width="232px" OnTextChanged="txtPublication_TextChanged"></asp:TextBox>
                    </td>
                    <td class="auto-style17">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPublicationName" ErrorMessage="*Field is mandatory" ForeColor="Red" ValidationGroup="AddPublicationGroup"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style18"></td>
                    <td class="auto-style19">&nbsp;</td>
                    <td class="auto-style25"></td>
                    <td class="auto-style21"></td>
                </tr>
                <tr>
                    <td class="auto-style27">&nbsp;</td>
                    <td class="auto-style10"><strong>Publication Year :</strong></td>
                    <td class="auto-style12">
                        <asp:TextBox ID="txtPublicationYear" runat="server" Font-Size="Large" Height="30px" Width="232px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPublicationYear" ErrorMessage="*Field is mandatory" ForeColor="Red" ValidationGroup="AddPublicationGroup"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style27">&nbsp;</td>
                    <td class="auto-style11" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Label ID="lblmsg" runat="server" Style="color: #FF0000; font-size: large; font-weight: 700;" Font-Size="Small"></asp:Label>
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style28"></td>
                    <td class="auto-style6"></td>
                    <td class="auto-style22">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnAddPublication" runat="server" BackColor="#00FF99" Height="38px" OnClick="btnAddPublication_Click1" Text="Add Publication" Width="141px" ValidationGroup="AddPublicationGroup" />
                    </td>
                    <td class="auto-style6"></td>
                </tr>
                <tr>
                    <td class="auto-style9" colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    
                     <%--   <asp:GridView ID="GridView1" AutoGenerateColumns="False" runat="server"
                            BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px"
                            CellPadding="4" GridLines="Horizontal" Height="16px" HorizontalAlign="Center"
                            PageSize="5" Style="font-size: large" Width="795px" AllowPaging="True"
                            OnPageIndexChanging="GridView1_PageIndexChanging"
                            OnRowEditing="GridView1_RowEditing" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
                            OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting"
                            OnRowUpdating="GridView1_RowUpdating" DataKeyNames="PID">
 
                            <Columns>
 
                                <asp:TemplateField HeaderText="Publication Name">
                                    <ItemTemplate>
                                        <%# Eval("Publication") %>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtPublicationName" runat="server" Text='<%# Eval("Publication") %>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>
 
                                <asp:TemplateField HeaderText="Publication Year">
                                    <ItemTemplate>
                                        <%# Eval("PublicationYear") %>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtPublicationYear" runat="server" Text='<%# Eval("PublicationYear") %>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>
 
 
                                <asp:TemplateField HeaderText="Date of Entry">
                                    <ItemTemplate>
                                        <%# Eval("EntryDate", "{0:yyyy-MM-dd}") %>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtEntryDate" runat="server" Text='<%# Eval("EntryDate", "{0:yyyy-MM-dd}") %>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>
 
 
                                <asp:CommandField HeaderText="Update" ShowEditButton="True" />
                                <asp:CommandField HeaderText="Delete" ShowDeleteButton="True" />
                                <asp:CommandField HeaderText="Select" ShowSelectButton="True" />
                            </Columns>
 
                            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                            <RowStyle BackColor="White" ForeColor="#003399" />
                            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                            <SortedAscendingCellStyle BackColor="#EDF6F6" />
                            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                            <SortedDescendingCellStyle BackColor="#D6DFDF" />
                            <SortedDescendingHeaderStyle BackColor="#002876" />
                        </asp:GridView>--%>
 
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="PID" Height="161px" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating1" Width="768px" AllowPaging="True" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" PageSize="7" >
                            <Columns>
                                <asp:BoundField DataField="PID" HeaderText="ID" />
                                <asp:BoundField DataField="Publication" HeaderText="Publication Name" />
                                <asp:BoundField DataField="PublicationYear" HeaderText="Publication Year" />
                                <asp:BoundField DataField="EntryDate" HeaderText="Entry Date" DataFormatString="{0:dd-MMM-yyyy}" />
                                <asp:CommandField HeaderText="Edit" ShowEditButton="True" />
                                <asp:CommandField HeaderText="Delete" ShowDeleteButton="True" />
                            </Columns>
                            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                            <PagerSettings Mode="NumericFirstLast" />
                            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                            <RowStyle BackColor="White" ForeColor="#003399" />
                            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                            <SortedAscendingCellStyle BackColor="#EDF6F6" />
                            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                            <SortedDescendingCellStyle BackColor="#D6DFDF" />
                            <SortedDescendingHeaderStyle BackColor="#002876" />
                        </asp:GridView>
 
                        <br />
                    </td>
                </tr>
            </table>
            <br />
        </div>
    </div>
</asp:Content>
 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.IO;
 
public partial class Publication : System.Web.UI.Page
{
    string CS = ConfigurationManager.ConnectionStrings["LIBRA_LIBDB"].ConnectionString;
    ClsConnectionString connect = new ClsConnectionString();
    ClsAdminLogic AdminLogic = new ClsAdminLogic();
    ClsPublication Pub = new ClsPublication();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ViewState.Clear();
            GridFill();
        }
 
    }
    public void GridFill()
    {
        SqlDataAdapter ad = new SqlDataAdapter("PUBLICATION_SELECT", connect.CS);
        DataSet ds = new DataSet();
        ad.Fill(ds);
        GridView1.DataSource = ds;
        GridView1.DataBind();
    }
 
 
    protected void txtPublication_TextChanged(object sender, EventArgs e)
    {
 
    }
 
 
    public void TextFieldClear()
 
    {
 
        txtPublicationName.Text = "";
        txtPublicationYear.Text = "";
 
    }
 
 
    protected void btnAddPublication_Click1(object sender, EventArgs e)
    {
        //SqlConnection conn = new SqlConnection(CS);
        //SqlCommand cmd = new SqlCommand("PUBLICATION_INSERT", conn);
        //conn.Open();
        //SqlDataAdapter ad = new SqlDataAdapter(cmd);
        //DataSet ds = new DataSet();
        //ad.Fill(ds);
        //cmd.ExecuteNonQuery();
        //GridView1.DataSource = ds;
        //GridView1.DataBind();
        Pub.Publication = txtPublicationName.Text;
        Pub.publicationyear = txtPublicationYear.Text;
        Pub.Publish();
 
        Response.Write("<script>alert('Publication details Add Successfully!')</script>");
        TextFieldClear();
    }
 
    protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
    {
        GridView1.EditIndex = -1;
        GridFill();
    }
 
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        GridFill();
    }
 
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        AdminLogic.ppid = Convert.ToInt32((GridView1.DataKeys[e.RowIndex].Value));
        AdminLogic.PublicationDelete(AdminLogic.ppid);
        GridFill();
    }
 
    protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
    {
        GridView1.EditIndex = e.NewEditIndex;
        GridFill();
    }
 
    protected void GridView1_RowUpdating1(object sender, GridViewUpdateEventArgs e)
    {
        try
        {
            GridViewRow row = GridView1.Rows[e.RowIndex];
            int tempID;
            tempID = Convert.ToInt32(GridView1.DataKeys[e.RowIndex].Value);
            TextBox txtPublicationName = GridView1.Rows[e.RowIndex].Cells[1].Controls[0] as TextBox;
            TextBox txtPublicationYear = GridView1.Rows[e.RowIndex].Cells[2].Controls[0] as TextBox;
            TextBox txtEntryDate = GridView1.Rows[e.RowIndex].Cells[3].Controls[0] as TextBox;
            if (string.IsNullOrWhiteSpace(txtPublicationName.Text) || string.IsNullOrWhiteSpace(txtPublicationYear.Text) || string.IsNullOrWhiteSpace(txtEntryDate.Text))
            {
                lblmsg.Text = "Please fill in all fields!";
                return;
            }
 
            AdminLogic.ppid = tempID;
            AdminLogic.publication = txtPublicationName.Text.Trim();
            AdminLogic.publicationyear = txtPublicationYear.Text.Trim().ToString();
            AdminLogic.entrydate = DateTime.Parse(txtEntryDate.Text.Trim());
            AdminLogic.UpdatePublication();
            GridView1.EditIndex = -1;
            lblmsg.Text = "Publication updated successfully!";
            GridFill();
 
        }
        catch (Exception ex)
        {
            lblmsg.Text = ex.Message;
        }
 
    }
 
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
 
    }
 
 
    protected void btnExport_Click1(object sender, EventArgs e)
    {
        // Clear the response and set headers
        Response.Clear();
        Response.Buffer = true;
        Response.AddHeader("content-disposition""attachment;filename=StudentDetails.xls");
        Response.Charset = "";
        Response.ContentType = "application/vnd.ms-excel";
 
        using (StringWriter sw = new StringWriter())
        {
            HtmlTextWriter hw = new HtmlTextWriter(sw);
 
            // Remove any paging if necessary
            GridView1.AllowPaging = false;
 
            // (Re)Bind the data to the grid if needed
            // GridView1.DataSource = yourDataSource;
            // GridView1.DataBind();
 
            // Render the grid
            GridView1.RenderControl(hw);
 
            // Output the content
            Response.Output.Write(sw.ToString());
            Response.Flush();
            Response.End();
        }
 
    }
 
 
 
    // This is needed to allow the grid to render
    public override void VerifyRenderingInServerForm(Control control)
    {
        // Required for Export to Excel
    }
}

 

 

frmBookReport.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmBookReport.aspx.cs" Inherits="frmBookReport" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <br />
        <h1 style="text-align: center" class="auto-style30">Book Report </h1>
        <br />
    </div>
    <div>
 
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" ForeColor="Black" Height="144px" Width="797px" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="4" HorizontalAlign="Center">
            <Columns>
                <asp:BoundField DataField="BookName" HeaderText="Books Name" />
                <asp:BoundField DataField="Author" HeaderText="AutherName" />
                <asp:BoundField DataField="Price" HeaderText="Price of Book" />
                <asp:BoundField DataField="Branch" HeaderText="Branch Name" />
                <asp:BoundField DataField="Quantities" HeaderText="Quantity Available" />
                <asp:TemplateField HeaderText="Book Cover Page">
                    <ItemTemplate>
                        <asp:Image ID="Image1" runat="server" Height="100px" Width="100px" ImageUrl='<%# Eval("BookImages"%>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#CCCCCC" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
            <RowStyle BackColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#808080" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#383838" />
        </asp:GridView>
 
    </div>
</asp:Content>
 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.IO;
 
public partial class frmBookReport : System.Web.UI.Page
{
    ClsConnectionString Conect = new ClsConnectionString();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Gridfill();
        }
 
    }
 
    public void Gridfill()
    {
        SqlDataAdapter ad = new SqlDataAdapter("BOOK_SELECT",Conect.CS);
        DataSet ds = new DataSet();
        ad.Fill(ds);
        GridView1.DataSource = ds;
        GridView1.DataBind();
    }
 
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        Gridfill();
    }
}

 

frmAddBranch.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmAddBranch.aspx.cs" Inherits="FrmAddBook" EnableEventValidation="false" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    
<style type="text/css">
        .auto-style8 {
            width100%;
        }
        .auto-style9 {
        }
        .auto-style10 {
            font-sizex-large;
            width211px;
        }
        .auto-style11 {
        }
        .auto-style12 {
            width191px;
        }
        .auto-style13 {
            text-decorationunderline;
        }
        .auto-style14 {
            width55px;
            height36px;
        }
        .auto-style15 {
            font-sizex-large;
            width211px;
            height36px;
        }
        .auto-style16 {
            width191px;
            height36px;
        }
        .auto-style17 {
            height36px;
        }
        .auto-style18 {
            width55px;
            height1px;
        }
        .auto-style21 {
            height1px;
        }
        .auto-style22 {
            width191px;
            height43px;
        }
        .auto-style25 {
            width191px;
            height1px;
        }
        .auto-style26 {
            font-sizex-large;
            width182px;
            height16px;
        }
        .auto-style27 {
            font-sizex-large;
            width182px;
            height22px;
        }
        .auto-style28 {
            width182px;
        }
        .auto-style29 {
            width182px;
            height1px;
        }
    .auto-style30 {
        width100%;
    }
    .auto-style31 {
        width663px;
    }
    </style>
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="bgforecontent">
        <br />
        <br />
        <br />
     <h1 style="text-align:center" class="auto-style13">Add Branch Details </h1>
        <div>
 
            <table class="auto-style30">
                <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td class="auto-style31">&nbsp;</td>
                    <td>
                    <asp:Button ID="btnExport"  runat="server" BackColor="#FF66CC" Height="23px" Text="Export Data" Width="96px" OnClick="btnExport_Click" />
                    </td>
                </tr>
            </table>
 
        </div>
        <br />
        <br />
        <br />
        <table align="center" class="auto-style8">
            <tr>
                <td class="auto-style14"></td>
                <td class="auto-style26"><strong>Branch Name :</strong></td>
                <td class="auto-style16">
                    <asp:TextBox ID="txtBranchName" runat="server" Font-Size="Large" Height="30px" Width="232px"></asp:TextBox>
                </td>
                <td class="auto-style17">
                    <asp:RequiredFieldValidator ID="rfvBranchName" runat="server" ControlToValidate="txtBranchName" ErrorMessage="You must enter branch name*" style="font-weight: 700; color: #FF0000" ValidationGroup="AddBranch"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style18"></td>
                <td class="auto-style29">&nbsp;</td>
                <td class="auto-style25"></td>
                <td class="auto-style21"></td>
            </tr>
            <tr>
                <td class="auto-style9">&nbsp;</td>
                <td class="auto-style27"><strong>Subject  :</strong></td>
                <td class="auto-style12">
                    <asp:TextBox ID="txtSubject" runat="server" Font-Size="Large" CssClass="CapitalLetters" Height="30px" Width="232px"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rfvSubject" runat="server" ControlToValidate="txtSubject" ErrorMessage="Subject is mandetory*" style="font-weight: 700; color: #FF0000" ValidationGroup="AddBranch"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style9">&nbsp;</td>
                <td class="auto-style11" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
                    <asp:Label ID="lblmsg" runat="server" style="color: #FF0000; font-size: large; font-weight: 700;" Font-Size="Small"></asp:Label>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style6"></td>
                <td class="auto-style28"></td>
                <td class="auto-style22" style="display:flex; justify-content:space-between"><asp:Button ID="btnAddBranch0" runat="server" BackColor="#66FF66" Font-Size="Large" ForeColor="Black" Height="37px" Text="Add Branch" ValidationGroup="AddBranch" Width="145px" OnClick="btnAddBranch_Click"/>
                &nbsp;</td>
                <td class="auto-style6">&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style9" colspan="4">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:GridView ID="GridView1" AutoGenerateColumns="False" runat="server" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" Height="16px" HorizontalAlign="Center" PageSize="5" style="font-size: large" Width="795px" AllowPaging="True" OnRowEditing="GridView1_RowEditing" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowUpdated="GridView1_RowUpdated" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="BranchID" OnPageIndexChanging="GridView1_PageIndexChanging">
                        <Columns>
                            <asp:BoundField DataField="BranchID" HeaderText="Branch ID" />
                            <asp:BoundField DataField="BranchName" HeaderText="Branch Name" SortExpression="BranchName"/>
                            <asp:BoundField DataField="Subject" HeaderText="Subject" SortExpression="Subject" />
                            <asp:BoundField DataField="EntryDate" HeaderText="Date of Entry" SortExpression="EntryDate" DataFormatString="{0:dd-MMM-yyyy}" />
                            <asp:CommandField HeaderText="Edit Info" ShowEditButton="True" />
                            <asp:CommandField HeaderText="Delete Info" ShowDeleteButton="True" />
                        </Columns>
                        <FooterStyle BackColor="#99CCCC" ForeColor="#FF3300" BorderStyle="Solid" />
                        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Center" />
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <SortedAscendingCellStyle BackColor="#EDF6F6" />
                        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                        <SortedDescendingCellStyle BackColor="#D6DFDF" />
                        <SortedDescendingHeaderStyle BackColor="#002876" />
                    </asp:GridView>
                    <br />
                </td>
            </tr>
        </table>
        <br />
        </div>
</asp:Content>
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;
using System.IO;
 
public partial class FrmAddBook : System.Web.UI.Page
{
    ClsConnectionString Conect = new ClsConnectionString();
    ClsAdminLogic AdminLogic = new ClsAdminLogic();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GridFill();
        }
    }
    public void GridFill()
    {
        SqlDataAdapter ad = new SqlDataAdapter("BRANCH_SELECT",Conect.CS);
        DataSet ds = new DataSet();
        ad.Fill(ds);
        GridView1.DataSource = ds;
        GridView1.DataBind();
 
 
    }
 
    protected void btnAddBranch_Click(object sender, EventArgs e)
    {
 
        AdminLogic.BranchName = txtBranchName.Text;
        AdminLogic.Subject = txtSubject.Text;
        AdminLogic.AddBranch();
 
        Response.Write("<script>alert('Branch details Add Successfully!')</script>");
        ClearFields();
 
    }
 
    public void ClearFields()
 
    {
        txtBranchName.Text = "";
        txtSubject.Text = "";
 
    }
 
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        GridFill();
    }
 
    protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
    {
        GridView1.EditIndex = -1;
        GridFill();
    }
 
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        AdminLogic.branchID = Convert.ToInt32((GridView1.DataKeys[e.RowIndex].Value));
        AdminLogic.BranchDelete(AdminLogic.branchID);
        GridFill();
    }
 
    protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
    {
        GridView1.EditIndex = e.NewEditIndex;
        GridFill();
    }
 
    protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
    {
 
    }
 
    protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        try
        {
            GridViewRow row = GridView1.Rows[e.RowIndex];
            int tempID;
            tempID = Convert.ToInt32(GridView1.DataKeys[e.RowIndex].Value);
            TextBox txtBranchName = GridView1.Rows[e.RowIndex].Cells[1].Controls[0] as TextBox;
            TextBox txtSubject = GridView1.Rows[e.RowIndex].Cells[2].Controls[0] as TextBox;
            TextBox txtEntryDate = GridView1.Rows[e.RowIndex].Cells[3].Controls[0] as TextBox;
            if (string.IsNullOrWhiteSpace(txtBranchName.Text) || string.IsNullOrWhiteSpace(txtSubject.Text) || string.IsNullOrWhiteSpace(txtEntryDate.Text))
            {
                lblmsg.Text = "Please fill in all fields!";
                return;
            }
 
            AdminLogic.branchID = tempID;
            AdminLogic.branchname = txtBranchName.Text.Trim();
            AdminLogic.subject = txtSubject.Text.Trim().ToString();
            AdminLogic.entrydate = DateTime.Parse(txtEntryDate.Text.Trim());
            AdminLogic.UpdateBranch();
            GridView1.EditIndex = -1;
            lblmsg.Text = "Branch updated successfully!";
            GridFill();
 
        }
        catch (Exception ex)
        {
            lblmsg.Text = ex.Message;
        }
    }
 
    protected void btnExport_Click(object sender, EventArgs e)
    {
        // Clear the response and set headers
        Response.Clear();
        Response.Buffer = true;
        Response.AddHeader("content-disposition""attachment;filename=StudentDetails.xls");
        Response.Charset = "";
        Response.ContentType = "application/vnd.ms-excel";
 
        using (StringWriter sw = new StringWriter())
        {
            HtmlTextWriter hw = new HtmlTextWriter(sw);
 
            // Remove any paging if necessary
            GridView1.AllowPaging = false;
 
            // (Re)Bind the data to the grid if needed
            // GridView1.DataSource = yourDataSource;
            // GridView1.DataBind();
 
            // Render the grid
            GridView1.RenderControl(hw);
 
            // Output the content
            Response.Output.Write(sw.ToString());
            Response.Flush();
            Response.End();
        }
    }
 
    // This is needed to allow the grid to render
    public override void VerifyRenderingInServerForm(Control control)
    {
        // Required for Export to Excel
    }
 
 
}

 

frmAddStudent.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="FrmAddStudent.aspx.cs" Inherits="FrmAddBook" EnableEventValidation="false" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    

<style type="text/css">

        .auto-style8 {

            width100%;

        }

        .auto-style9 {

        }

        .auto-style10 {

            font-sizex-large;

            width211px;

        }

        .auto-style11 {

        }

        .auto-style12 {

            width191px;

        }

        .auto-style13 {

            text-decorationunderline;

        }

        .auto-style14 {

            width55px;

            height36px;

        }

        .auto-style15 {

            font-sizex-large;

            width211px;

            height36px;

        }

        .auto-style16 {

            width191px;

            height36px;

        }

        .auto-style17 {

        width100%;

    }

    .auto-style18 {

        width128px;

    }

    .auto-style19 {

        width135px;

    }

    .auto-style21 {

        width184px;

    }

    .auto-style23 {

        width684px;

    }

    .auto-style24 {

        width75px;

    }

    </style>

 

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div class="bgforecontent">

        <br />

        <br />

        <br />

     <h1 style="text-align:center" class="auto-style13">Register Student Details </h1>

        <div>

 

            <table class="auto-style17">

                <tr>

                    <td>&nbsp;</td>

                    <td>&nbsp;</td>

                    <td>&nbsp;</td>

                    <td>&nbsp;</td>

                    <td>&nbsp;</td>

                    <td class="auto-style23">&nbsp;</td>

                    <td>

                            <asp:Button ID="btnExport" runat="server" BackColor="#FF3399" CssClass="auto-style30" Height="25px" OnClick="btnExport_Click1" Text="Export Data" Width="88px" />

                        </td>

                </tr>

            </table>

 

        </div>

        <br />

        <table  class="auto-style17">

            <tr>

                <td class="auto-style18"><strong>Student&#39;s Name :</strong></td>

                <td class="auto-style19">

                    <asp:TextBox ID="txtStudentName" runat="server" Height="21px" Width="188px"></asp:TextBox>

                </td>

                <td class="auto-style24">

                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtStudentName" ErrorMessage="*Mandatory " ForeColor="Red" ValidationGroup="StudRegister"></asp:RequiredFieldValidator>

                </td>

                <td><strong>Email ID :</strong></td>

                <td class="auto-style21">

                    <asp:TextBox ID="txtEmailID" runat="server" Height="21px" Width="192px"></asp:TextBox>

                </td>

                <td>

                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEmailID" ErrorMessage="*Mandatory " ForeColor="Red" ValidationGroup="StudRegister"></asp:RequiredFieldValidator>

                </td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td class="auto-style18"><strong>Contact Number:</strong></td>

                <td class="auto-style19">

                    <asp:TextBox ID="txtMobileNumber" runat="server" Height="21px" Width="188px"></asp:TextBox>

                </td>

                <td class="auto-style24">

                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtMobileNumber" ErrorMessage="*Mandatory " ForeColor="Red" ValidationGroup="StudRegister"></asp:RequiredFieldValidator>

                </td>

                <td><strong>Password :</strong></td>

                <td class="auto-style21">

                    <asp:TextBox ID="txtPassowrd" runat="server" Height="21px" Width="192px"></asp:TextBox>

                </td>

                <td>

                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPassowrd" ErrorMessage="*Mandatory " ForeColor="Red" ValidationGroup="StudRegister"></asp:RequiredFieldValidator>

                </td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td class="auto-style18">&nbsp;</td>

                <td class="auto-style19">&nbsp;</td>

                <td class="auto-style24">&nbsp;</td>

                <td>&nbsp;</td>

                <td class="auto-style21">&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td class="auto-style18">&nbsp;</td>

                <td class="auto-style19">&nbsp;</td>

                <td class="auto-style24">&nbsp;</td>

                <td>&nbsp;</td>

                <td class="auto-style21">&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td class="auto-style18">&nbsp;</td>

                <td class="auto-style19">&nbsp;</td>

                <td class="auto-style24">

                    <asp:Button ID="btnAddStudent" runat="server" BackColor="#FF3300" Height="33px" Text="Add Student" Width="97px" ValidationGroup="StudRegister" OnClick="btnAddStudent_Click" />

                </td>

                <td>&nbsp;</td>

                <td class="auto-style21">&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td class="auto-style18">&nbsp;</td>

                <td class="auto-style19">&nbsp;</td>

                <td class="auto-style24">&nbsp;</td>

                <td>&nbsp;</td>

                <td class="auto-style21">&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td colspan="8">

                    <center>

                    <asp:GridView ID="GridView1" runat="server" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" Width="789px" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging1">

                        <Columns>

                            <asp:BoundField DataField="FirstName" HeaderText="Student's Name" />

                            <asp:BoundField DataField="FathersName" HeaderText="Father's Name" />

                            <asp:BoundField DataField="Email" HeaderText="Registred Email ID" />

                            <asp:BoundField DataField="ContactNo" HeaderText="Contact No." />

                            <asp:BoundField DataField="Password" HeaderText="Password" />

                                    <asp:HyperLinkField DataNavigateUrlFields="SID" 

                            DataNavigateUrlFormatString="~/frmStudentDetails.aspx?SID={0}" 

                            HeaderText="View Details" 

                            Text="View Info" />

                        </Columns>

                        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />

                        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />

                        <PagerSettings Mode="NumericFirstLast" />

                        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />

                        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />

                        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />

                        <SortedAscendingCellStyle BackColor="#FFF1D4" />

                        <SortedAscendingHeaderStyle BackColor="#B95C30" />

                        <SortedDescendingCellStyle BackColor="#F1E5CE" />

                        <SortedDescendingHeaderStyle BackColor="#93451F" />

                    </asp:GridView>

                        </center>

                </td>

            </tr>

        </table>

        <br />

        <br />

        <br />

        <br />

        </div>

</asp:Content>

 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;
using System.IO;
 
public partial class FrmAddBook : System.Web.UI.Page
{
    ClsConnectionString Conect = new ClsConnectionString();
    ClsAdminLogic AdminLogic = new ClsAdminLogic();
    protected void Page_Load(object sender, EventArgs e)
    {
 
        GridFill();
    }
    public void GridFill()
    {
        SqlDataAdapter ad = new SqlDataAdapter("STUDENT_SELECT", Conect.CS);
        DataSet ds = new DataSet();
        ad.Fill(ds);
        GridView1.DataSource = ds;
        GridView1.DataBind();
    }
 
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
    }
 
    protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
    {
 
    }
 
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
 
    }
 
    protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
    {
 
    }
 
    protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
    {
 
    }
 
    protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
 
    }
 
 
    public void ClearFields()
    {
        txtStudentName.Text = "";
        txtEmailID.Text = "";
        txtPassowrd.Text = "";
        txtMobileNumber.Text = "";
    }
 
    protected void btnAddStudent_Click(object sender, EventArgs e)
    {
        AdminLogic.firstname = txtStudentName.Text;
        AdminLogic.semailid = txtEmailID.Text;
        AdminLogic.spassword = txtPassowrd.Text;
        AdminLogic.contatcnumber = txtMobileNumber.Text;
        AdminLogic.AddStudentbyAdmin();
        ClearFields();
        GridFill();
    }
 
    protected void btnExport_Click1(object sender, EventArgs e)
    {
        // Clear the response and set headers
        Response.Clear();
        Response.Buffer = true;
        Response.AddHeader("content-disposition""attachment;filename=StudentDetails.xls");
        Response.Charset = "";
        Response.ContentType = "application/vnd.ms-excel";
 
        using (StringWriter sw = new StringWriter())
        {
            HtmlTextWriter hw = new HtmlTextWriter(sw);
 
            // Remove any paging if necessary
            GridView1.AllowPaging = false;
 
            // (Re)Bind the data to the grid if needed
            // GridView1.DataSource = yourDataSource;
            // GridView1.DataBind();
 
            // Render the grid
            GridView1.RenderControl(hw);
 
            // Output the content
            Response.Output.Write(sw.ToString());
            Response.Flush();
            Response.End();
        }
    }
 
    // This is needed to allow the grid to render
    public override void VerifyRenderingInServerForm(Control control)
    {
        // Required for Export to Excel
    }
 
 
 
 
    protected void GridView1_PageIndexChanging1(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        GridFill();
    }
}

 

frmStudentReport.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmStudentReport.aspx.cs" Inherits="frmStudentReport" EnableEventValidation="false" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style17 {
            width100%;
        }
    .auto-style18 {
        width644px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <h1 style="text-align:center">Student Report</h1>
        <br />
    <div>
        <table align="center" class="auto-style17">
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td class="auto-style18">&nbsp;</td>
                <td>
                    <asp:Button ID="btnExport"  runat="server" BackColor="#FF66CC" Height="23px" Text="Export Data" Width="96px" OnClick="btnExport_Click" />
                </td>
            </tr>
        </table>
 
    </div>
        <asp:GridView ID="GridView1" runat="server" Width="784px" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" OnPageIndexChanging="GridView1_PageIndexChanging" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowDeleting="GridView1_RowDeleting" DataKeyNames="SID" OnRowDataBound="GridView1_RowDataBound">
            <Columns>
                <asp:BoundField DataField="FirstName" HeaderText="First Name" />
                <asp:BoundField DataField="Institute" HeaderText="Collage Name" />
                <asp:BoundField DataField="ContactNo" HeaderText="Contact Number" />
                <asp:BoundField DataField="EntryDate" HeaderText="Registration Date" DataFormatString="{0:dd-MMM-yyyy}" />
                <asp:BoundField HeaderText="Registration Expiry Date" DataFormatString="{0:dd-MMM-yyyy}" DataField="ExpiryDate" />
                <asp:TemplateField HeaderText="Membership Status">
                    <ItemTemplate>
                        <asp:Label ID="lblStatus" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField HeaderText="Delete Record" ShowDeleteButton="True" />
 
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
    <div>
 
        <table align="center" class="auto-style17">
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>
 
    </div>
</asp:Content>
 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.IO;
 
 
public partial class frmStudentReport : System.Web.UI.Page
{
    ClsConnectionString connect = new ClsConnectionString();
    ClsAdminLogic AdminLogic = new ClsAdminLogic();
    protected void Page_Load(object sender, EventArgs e)
    {
        GridFill();
    }
 
    public void GridFill()
    {
        SqlDataAdapter ad = new SqlDataAdapter("STUDENT_SELECT", connect.CS);
        DataSet ds = new DataSet();
        ad.Fill(ds);
        GridView1.DataSource = ds;
        GridView1.DataBind();
    }
 
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
 
    }
 
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
    }
 
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        AdminLogic.studentID = Convert.ToInt32((GridView1.DataKeys[e.RowIndex].Value));
        AdminLogic.StudentDeletebyAdmin(AdminLogic.studentID);
        GridFill();
    }
 
    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
 
            DateTime entryDate = Convert.ToDateTime(DataBinder.Eval(e.Row.DataItem, "EntryDate"));
            DateTime expiryDate = Convert.ToDateTime(DataBinder.Eval(e.Row.DataItem, "ExpiryDate"));
 
 
            Label lblStatus = (Label)e.Row.FindControl("lblStatus");
 
 
            int daysRemaining = (expiryDate - DateTime.Today).Days;
 
 
            if (daysRemaining > 0)
            {
                lblStatus.Text = "Active";
                lblStatus.ForeColor = System.Drawing.Color.DarkGreen;
            }
            else
            {
                lblStatus.Text = "Expired";
                lblStatus.ForeColor = System.Drawing.Color.Red;
            }
        }
    }
 
    protected void btnExport_Click(object sender, EventArgs e)
    {
        // Clear the response and set headers
        Response.Clear();
        Response.Buffer = true;
        Response.AddHeader("content-disposition""attachment;filename=StudentDetails.xls");
        Response.Charset = "";
        Response.ContentType = "application/vnd.ms-excel";
 
        using (StringWriter sw = new StringWriter())
        {
            HtmlTextWriter hw = new HtmlTextWriter(sw);
 
            // Remove any paging if necessary
            GridView1.AllowPaging = false;
 
            // (Re)Bind the data to the grid if needed
            // GridView1.DataSource = yourDataSource;
            // GridView1.DataBind();
 
            // Render the grid
            GridView1.RenderControl(hw);
 
            // Output the content
            Response.Output.Write(sw.ToString());
            Response.Flush();
            Response.End();
        }
    }
 
    // This is needed to allow the grid to render
    public override void VerifyRenderingInServerForm(Control control)
    {
        // Required for Export to Excel
    }
 
}

 

frmBookIssueReport.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmBookIssueReport.aspx.cs" Inherits="frmBookIssueReport" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <h1 style="text-align:center" class="auto-style13">BOOK ISSUE REPORT </h1>
    </div>
    <br />
    <br />
    <div>
 
 
    </div>
    <div>
 
        <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" Height="111px" Width="796px" AutoGenerateColumns="False" AllowPaging="True" GridLines="Vertical" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="15">
            <AlternatingRowStyle BackColor="Gainsboro" />
            <Columns>
                <asp:BoundField DataField="StudentID" HeaderText="Student ID" />
                <asp:BoundField DataField="StudentName" HeaderText="Student Name" />
                <asp:BoundField DataField="BookName" HeaderText="Book Name" />
                <asp:BoundField DataField="Author" HeaderText="Author" />
                <asp:BoundField DataField="Price" HeaderText="Books Price" />
                <asp:BoundField DataField="QuantityRemain" HeaderText="Quantity left" />
                <asp:BoundField DataField="IssueDate" HeaderText="Issue Date" DataFormatString="{0:dd-MMM-yyyy}" />
                <asp:BoundField DataField="ReturnDate" HeaderText="Return Date" DataFormatString="{0:dd-MMM-yyyy}" />
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#0000A9" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#000065" />
        </asp:GridView>
 
    </div>
 
</asp:Content>
 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
 
public partial class frmBookIssueReport : System.Web.UI.Page
{
    ClsConnectionString connect = new ClsConnectionString();
    ClsAdminLogic AdminLogic = new ClsAdminLogic();
    protected void Page_Load(object sender, EventArgs e)
    {
        GridFill();
    }
 
    public void GridFill()
    {
        SqlDataAdapter ad = new SqlDataAdapter("ISSUEBOOK_SELECT", connect.CS);
        DataSet ds = new DataSet();
        ad.Fill(ds);
        GridView1.DataSource = ds;
        GridView1.DataBind();
    }
 
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        GridFill();
    }
}

 

 

frmPenalityReport.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmPenalityReport.aspx.cs" Inherits="frmPenalityReport" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
            <div>
         <h1 style="text-align:center" class="auto-style30">PENALITY REPORT </h1>
    </div>
    <br />
    <div>
 
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" Height="122px" Width="797px" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" CellSpacing="1" GridLines="None" OnRowDataBound="GridView1_RowDataBound" PageSize="15">
            <Columns>
                <asp:BoundField DataField="StudentID" HeaderText="Student ID" />
                <asp:BoundField DataField="StudentName" HeaderText="Student Name" />
                <asp:BoundField DataField="BookName" HeaderText="Book Name" />
                <asp:BoundField DataField="Price" HeaderText="Book Price" />
                <asp:BoundField DataField="IssueDate" HeaderText="Book Issue Data" DataFormatString="{0:dd-MMM-yyyy}" />
                <asp:BoundField DataField="ReturnDate" HeaderText="Return Date" DataFormatString="{0:dd-MMM-yyyy}" />
                <asp:TemplateField HeaderText="Penality Status">
                    <ItemTemplate>
                        <asp:Label ID="lblPenalityStatus" runat="server" Text="Label"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Center" />
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#594B9C" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#33276A" />
        </asp:GridView>
 
    </div>
 
</asp:Content>
 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
 
public partial class frmPenalityReport : System.Web.UI.Page
{
    ClsConnectionString Conect = new ClsConnectionString();
    ClsAdminLogic AdminLogic = new ClsAdminLogic();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GridFill();
        }
 
    }
 
    public void GridFill()
    {
        SqlDataAdapter ad = new SqlDataAdapter("ISSUEBOOK_SELECT", Conect.CS);
        DataSet ds = new DataSet();
        ad.Fill(ds);
        GridView1.DataSource = ds;
        GridView1.DataBind();
 
    }
 
 
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        GridFill();
    }
 
    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
 
            DateTime issueDate = Convert.ToDateTime(DataBinder.Eval(e.Row.DataItem, "IssueDate"));
            DateTime returnDate = Convert.ToDateTime(DataBinder.Eval(e.Row.DataItem, "ReturnDate"));
            Label lblPenalty = (Label)e.Row.FindControl("lblPenalityStatus");
            TimeSpan diff = returnDate - issueDate;
 
            if (diff.TotalDays > 30)
            {
                lblPenalty.Text = "₹500 Fine";
                lblPenalty.ForeColor = System.Drawing.Color.Red;
            }
            else
            {
                lblPenalty.Text = "Period not over";
                lblPenalty.ForeColor = System.Drawing.Color.Green;
            }
        }
    }
}

 

frmViewStudentComplaint.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmViewStudentComplaint.aspx.cs" Inherits="frmViewStudentComplaint" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
 
            .scrollable-grid {
        overflow-xauto;
        width100%;
}
 
        .auto-style17 {
            width100%;
        }
        .auto-style18 {
            width252px;
        }
        .auto-style19 {
            width397px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <br />
          <h1 style="text-align:center" class="auto-style30">VIEW COMPLAINT </h1>
    </div>
    <div>
 
 
    </div>
    <div style="overflow-x: auto; overflow-y: auto; max-height: 500px; width: 100%;">
 
        <asp:GridView ID="GridView1" CssClass="grid" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" Height="117px" Width="797px" DataKeyNames="CmpID" OnRowDataBound="GridView1_RowDataBound" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" OnSelectedIndexChanging="GridView1_SelectedIndexChanging">
            <Columns>
                <asp:BoundField DataField="Student_ID" HeaderText="Student ID" />
                <asp:BoundField DataField="StudentName" HeaderText="Student Name" />
                <asp:BoundField DataField="Subject" HeaderText="Complaint Type" />
                <asp:BoundField DataField="Messge" HeaderText="Messge" />
                <asp:BoundField DataField="EntryDate" HeaderText="Messge Date" DataFormatString="{0:dd-MMM-yyyy}" />
                <asp:BoundField DataField="ActionTaken" HeaderText="Status" />
                <asp:TemplateField HeaderText="Action" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkAction" runat="server"/>
                    </ItemTemplate>
 
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
 
    </div>
    <div>
 
        <table class="auto-style17">
            <tr>
                <td>&nbsp;</td>
                <td class="auto-style18">&nbsp;</td>
                <td class="auto-style19">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td class="auto-style18">&nbsp;</td>
                <td class="auto-style19">
                    <asp:Button ID="btnResolve" runat="server" BackColor="#33CCCC" Height="29px" Text="Resolve" Width="114px" OnClick="btnResolve_Click"/>
                </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td class="auto-style18">&nbsp;</td>
                <td class="auto-style19">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>
 
    </div>
</asp:Content>
 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
 
public partial class frmViewStudentComplaint : System.Web.UI.Page
{
    ClsAdminLogic ObjAdmin = new ClsAdminLogic();
    ClsConnectionString Conect = new ClsConnectionString();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GridFill();
        }
    }
    public void GridFill()
    {
        SqlDataAdapter ad = new SqlDataAdapter("COMPLAINT_SELECT", Conect.CS);
        DataSet ds = new DataSet();
        ad.Fill(ds);
        GridView1.DataSource = ds;
        GridView1.DataBind();
    }
 
 
 
    protected void btnResolve_Click(object sender, EventArgs e)
    {
        bool isSelected = false// Flag to check if any checkbox is selected
 
        foreach (GridViewRow row in GridView1.Rows)
        {
            CheckBox chk = (CheckBox)row.FindControl("chkAction");
 
            if (chk != null && chk.Checked)
            {
                isSelected = true// At least one checkbox is selected
 
                // Get the Complaint ID from DataKeys and update the complaint status
                int cmpId = Convert.ToInt32(GridView1.DataKeys[row.RowIndex].Value);
                ObjAdmin.UpdateComplaintStatus(cmpId);
            }
        }
 
        if (isSelected)
        {
            // If at least one checkbox was selected, show success message
            Response.Write("<script>alert('Complaint resolved successfully! and update sent to student!')</script>");
            GridFill();
        }
        else
        {
            // If no checkbox was selected, show error message
            Response.Write("<script>alert('Please select at least one complaint to resolve.')</script>");
        }
    }
 
 
 
    
 
    //protected void btnResolve_Click(object sender, EventArgs e)
    //{
    //    foreach (GridViewRow row in GridView1.Rows)
    //    {
    //        CheckBox chk = (CheckBox)row.FindControl("chkAction");
 
    //        if (chk != null && chk.Checked)
    //        {
    //            int cmpId = Convert.ToInt32(GridView1.DataKeys[row.RowIndex].Value);
    //            ObjAdmin.UpdateComplaintStatus(cmpId);
    //        }
    //    }
    //    Response.Write("<script>alert('Complaint resolved successfully! and update sent to student!')</script>");
    //    GridFill();
    //}
 
    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        // Ensure we're working with a DataRow
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            // Get the status value from the "ActionTaken" column (5th column in this case)
            string status = e.Row.Cells[5].Text.Trim().ToLower();
 
            // Get the checkbox control in the current row
            CheckBox chkAction = (CheckBox)e.Row.FindControl("chkAction");
 
            // Check if the status is "resolved"
            if (status == "resolved")
            {
                // Change color for Resolved
                e.Row.Cells[5].ForeColor = System.Drawing.Color.Green;
                e.Row.Cells[5].Font.Bold = true;
 
                // Disable the checkbox
                if (chkAction != null)
                {
                    chkAction.Enabled = false;
                }
            }
            else if (status == "pending")
            {
                // Change color for Pending
                e.Row.Cells[5].ForeColor = System.Drawing.Color.Red;
                e.Row.Cells[5].Font.Bold = true;
 
                // Ensure checkbox is enabled for pending
                if (chkAction != null)
                {
                    chkAction.Enabled = true;
                }
            }
        }
    }
 
 
    protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
    {
 
    }
 
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        GridFill();
    }
}

 

frmAdminHome.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmAdminHome.aspx.cs" Inherits="Home" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <h1 style="text-align:center">Admin Home Page</h1>
</asp:Content>
 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class Home : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
}

 

frmAdvanceStudentSearch.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmAdvanceStudentSearch.aspx.cs" Inherits="frmAdvanceStudentSearch" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style17 {
            width100%;
        }
        .auto-style18 {
            width112px;
        }
        .auto-style19 {
            width167px;
        }
        .auto-style20 {
            width91px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
          <h1 style="text-align:center" class="auto-style30">SEARCH STUDENT </h1>
    </div>
    <div>
 
        <table class="auto-style17">
            <tr>
                <td class="auto-style18">Search Student :</td>
                <td colspan="2">
                    <asp:TextBox ID="txtSearch" runat="server" Height="18px" Width="262px"></asp:TextBox>
                </td>
                <td class="auto-style20">
                    <asp:DropDownList ID="ddlCategory" runat="server" Height="24px" Width="202px">
                        <asp:ListItem>------------------Select----------------</asp:ListItem>
                        <asp:ListItem Value="FirstName">First Name</asp:ListItem>
                        <asp:ListItem Value="MiddleName">Middle Name</asp:ListItem>
                        <asp:ListItem Value="LastName">Last Name</asp:ListItem>
                        <asp:ListItem Value="FathersName">Father&#39;s Name</asp:ListItem>
                        <asp:ListItem Value="MothersName">Mother&#39;s Name</asp:ListItem>
                        <asp:ListItem Value="DOB">Date of Birth</asp:ListItem>
                        <asp:ListItem Value="IDCardNo">ID Card No</asp:ListItem>
                        <asp:ListItem>Institute</asp:ListItem>
                        <asp:ListItem Value="ContactNo">Contact No.</asp:ListItem>
                        <asp:ListItem>Email</asp:ListItem>
                        <asp:ListItem>City</asp:ListItem>
                        <asp:ListItem>Branch Name</asp:ListItem>
                        <asp:ListItem>Gender</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnSearch" runat="server" Height="26px" Text="Search" Width="112px" OnClick="btnSearch_Click1" />
                </td>
            </tr>
            <tr>
                <td class="auto-style18">&nbsp;</td>
                <td>&nbsp;</td>
                <td class="auto-style19">
                    <asp:Label ID="lblMsg" runat="server"></asp:Label>
                </td>
                <td class="auto-style20">&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>
 
    </div>
    <div>
 
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" Height="109px" OnPageIndexChanging="GridView1_PageIndexChanging" OnSelectedIndexChanging="GridView1_SelectedIndexChanging" Width="673px">
            <Columns>
                <asp:BoundField DataField="FirstName" HeaderText="First Name" />
                <asp:BoundField DataField="MiddleName" HeaderText="Middle Name" />
                <asp:BoundField DataField="LastName" HeaderText="Last Name" />
                <asp:BoundField DataField="FathersName" HeaderText="Father's Name" />
                <asp:BoundField DataField="MothersName" HeaderText="Mother's Name" />
               <asp:BoundField DataField="DOB" HeaderText="Date of Birth" DataFormatString="{0:dd-MMM-yy}" HtmlEncode="false" />
                <asp:BoundField DataField="IDCardNo" HeaderText="IDCardNo" />
                <asp:BoundField DataField="Institute" HeaderText="Institute" />
                <asp:BoundField DataField="ContactNo" HeaderText="Contact No" />
                <asp:BoundField DataField="Email" HeaderText="Email" />
                <asp:BoundField DataField="City" HeaderText="City" />
                <asp:BoundField DataField="BranchName" HeaderText="Branch Name" />
                <asp:BoundField DataField="Gender" HeaderText="Gender" />
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerSettings Mode="NumericFirstLast" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
 
    </div>
</asp:Content>
 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
 
public partial class frmAdvanceStudentSearch : System.Web.UI.Page
{
    ClsConnectionString ConnectionString = new ClsConnectionString();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
 
        }
    }
 
    public string BuildSearchQuery(string category, string searchTerm)
    {
        string query = "SELECT * FROM STUDENT_MASTER_TABLE WHERE " + category + " LIKE @SearchTerm";
        return query;
 
    }
 
    protected void btnSearch_Click(object sender, EventArgs e)
    {
 
 
    }
 
 
    public void BindData(string category, string searchTerm)
    {
        using (SqlConnection conn = new SqlConnection(ConnectionString.CS))
        {
            SqlCommand cmd = new SqlCommand("STUDENT_SEARCH_ADVANCE", conn);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@Category", category);
            cmd.Parameters.AddWithValue("@SearchTerm""%" + searchTerm + "%");
 
            SqlDataAdapter da = new SqlDataAdapter(cmd);
            DataSet ds = new DataSet();
            da.Fill(ds);
 
            if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                GridView1.DataSource = ds.Tables[0];
                GridView1.DataBind();
 
                int recordCount = ds.Tables[0].Rows.Count;
                lblMsg.Text = string.Format("Total records found: {0}", recordCount);
            }
            else
            {
                lblMsg.Text = "No records found";
                GridView1.DataSource = null;
                GridView1.DataBind();
            }
        }
    }
 
 
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
 
    }
 
    protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
    {
 
    }
 
    protected void btnSearch_Click1(object sender, EventArgs e)
    {
        string category = ddlCategory.SelectedValue;
        string searchTerm = txtSearch.Text;
 
        if (string.IsNullOrEmpty(category) || string.IsNullOrEmpty(searchTerm))
        {
            lblMsg.Text = "Please select a category and enter a search term.";
        }
        else
        {
            try
            {
                BindData(category, searchTerm);
            }
            catch (Exception ex)
            {
                lblMsg.Text = "Error: " + ex.Message;
            }
        }
    }
}

 

frmCalender.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmViewCalander.aspx.cs" Inherits="frmViewCalander" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div>

        <br />

 

            <h1 style="text-align:center" class="auto-style30">CALENDER 2025 </h1>

    </div>

    <div>

        <img src="Img/2025-calendar-with-holidays-red-NZ.png" style="width:100%; height:70%"/>

    </div>

 

</asp:Content>

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

 

public partial class frmViewCalander : System.Web.UI.Page

{

    protected void Page_Load(object sender, EventArgs e)

    {

 

    }

}

 

frmUploadSyllabusCourse.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmUploadSyllabusCourse.aspx.cs" Inherits="frmUploadSyllabusCourse" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <style type="text/css">

        .auto-style17 {

            width100%;

        }

        .auto-style18 {

            width152px;

        }

        .auto-style20 {

            height21px;

        }

        .auto-style21 {

            width181px;

        }

    </style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div>

         <h1 style="text-align:center" class="auto-style30"> UPLOAD SYLLABUS </h1>

    </div>

    <div>

 

        <table class="auto-style17">

            <tr>

                <td class="auto-style18">Subject Name:</td>

                <td class="auto-style21">Course Name:</td>

                <td>Browse PDF:</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>

                    <asp:TextBox ID="txtSubject" runat="server" Height="21px" Width="182px"></asp:TextBox>

                </td>

                <td class="auto-style21">

                    <asp:TextBox ID="txtCourse" runat="server" Height="21px" Width="182px"></asp:TextBox>

                </td>

                <td>

                    <asp:FileUpload ID="FileUpload1" runat="server" Height="27px" />

                    </td>

                <td class="auto-style20"></td>

                <td class="auto-style20"></td>

                <td class="auto-style20">

                    <asp:Button ID="btnCourse" runat="server" Height="26px" OnClick="btnCourse_Click" Text="Add Course" Width="106px" />

                </td>

            </tr>

            <tr>

                <td class="auto-style18">

                    &nbsp;</td>

                <td class="auto-style21">&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td class="auto-style18">

                    &nbsp;</td>

                <td class="auto-style21">&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

        </table>

 

    </div>

    <div>

 

        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" Height="128px" Width="795px">

            <Columns>

                <asp:BoundField DataField="SYID" HeaderText="Syllabus ID" />

                <asp:BoundField DataField="Subject" HeaderText="Subject Name" />

                <asp:BoundField DataField="Course" HeaderText="Course Name" />

                <asp:BoundField DataField="EntryDate" HeaderText="Etry Date" DataFormatString="{0:dd-MMM-yyyy}"  />

                <asp:BoundField DataField="Downloadlnk" HeaderText="File Name" />

                <asp:TemplateField HeaderText="Download File">

                    <ItemTemplate>

                        <a href='<%# ResolveUrl(Eval("Downloadlnk").ToString()) %>' target="_blank">Download

                        </a>

                    </ItemTemplate>

                </asp:TemplateField>

            </Columns>

            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />

            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />

            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />

            <RowStyle BackColor="White" ForeColor="#003399" />

            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />

            <SortedAscendingCellStyle BackColor="#EDF6F6" />

            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />

            <SortedDescendingCellStyle BackColor="#D6DFDF" />

            <SortedDescendingHeaderStyle BackColor="#002876" />

        </asp:GridView>

 

    </div>

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.IO;

using System.Data;

using System.Data.SqlClient;

 

public partial class frmUploadSyllabusCourse : System.Web.UI.Page

{

    ClsConnectionString Conect = new ClsConnectionString();

    ClsAdminLogic ObjAdmin = new ClsAdminLogic();

 

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!IsPostBack)

        {

            BindGrid();

        }

 

    }

 

 

    protected void btnUpload_Click(object sender, EventArgs e)

    {

 

    }

 

    public void CleanUp()

    {

        txtCourse.Text = "";

        txtSubject.Text = "";

    }

 

 

    public void BindGrid()

    {

        SqlDataAdapter ad = new SqlDataAdapter("SYLLABUS_SELECT", Conect.CS);

        DataSet ds = new DataSet();

        ad.Fill(ds);

        GridView1.DataSource = ds;

        GridView1.DataBind();

 

    }

 

 

 

    protected void btnCourse_Click(object sender, EventArgs e)

    {

        if (FileUpload1.HasFile)

        {

            try

            {

                string fileExt = Path.GetExtension(FileUpload1.FileName).ToLower();

                if (fileExt != ".pdf")

                {

                    Response.Write("<script>alert('Only PDF files are allowed!')</script>");

                    return;

                }

 

                string fileName = Path.GetFileName(FileUpload1.FileName);

                string savePath = Server.MapPath("~/Syllabus/") + fileName;

                FileUpload1.SaveAs(savePath);

                ObjAdmin.subject = txtSubject.Text;

                ObjAdmin.course = txtCourse.Text;

                ObjAdmin.downloadLink = "Syllabus/" + fileName;

                ObjAdmin.entrydate = DateTime.Today;

                ObjAdmin.SyllabusAdd();

 

                Response.Write("<script>alert('Course uploaded successfully!')</script>");

 

                CleanUp();

                BindGrid();

            }

            catch (Exception ex)

            {

                string errorMessage = ex.Message.Replace("'""\\'");

                Response.Write("<script>alert('An error occurred: " + errorMessage + "')</script>");

            }

        }

        else

        {

            Response.Write("<script>alert('Please select a PDF file to upload.')</script>");

        }

    }

}

 

 

frmReturnPolicy.aspx + Ajax Tool kit 20.1, install from Nugetpakcge

 

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmReturnPolicy.aspx.cs" Inherits="frmReturnPolicy" %>

 

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

 

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

            <br />

        <h1 style="text-align:center" class="auto-style13">Return Policy </h1>

            <br />

     <br />

     <br />

 

    <div>

<%--    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>--%>

           <!-- Accordion Control -->

    <ajaxToolkit:Accordion ID="Accordion1" runat="server"

        HeaderCssClass="accordionHeader"

        ContentCssClass="accordionContent"

        FadeTransitions="true"

        FramesPerSecond="40"

        TransitionDuration="250"

        RequireOpenedPane="false"

        SuppressHeaderPostbacks="true">

 

        <Panes>

            <ajaxToolkit:AccordionPane ID="Pane1" runat="server">

                <Header>Return Policy</Header>

                <Content>

                    <p>

                       Books must be returned within 30 days otherwise 300 Rupees per day will be charged and membership will be cancelled.

                    </p>

                </Content>

            </ajaxToolkit:AccordionPane>

 

            <ajaxToolkit:AccordionPane ID="Pane2" runat="server">

                <Header>Penalty</Header>

                <Content>

                    <p>

                       Students are adviced to return books in 30 days and they can issue 3 books per month per session.

                    </p>

                </Content>

            </ajaxToolkit:AccordionPane>

            <ajaxToolkit:AccordionPane ID="Pane3" runat="server">

                <Header>Session</Header>

                <Content>

                    <p>

                       onece the session is over students are requested to return the books withing the stipulated time.

                    </p>

                </Content>

            </ajaxToolkit:AccordionPane>

                        <ajaxToolkit:AccordionPane ID="Pane4" runat="server">

                <Header>Membership Expiry</Header>

                <Content>

                    <p>

                     After 30 days the membership will automatically expire and student will get the update via email.

                    </p>

                </Content>

            </ajaxToolkit:AccordionPane>

        </Panes>

    </ajaxToolkit:Accordion>

 

    <!-- Optional styling -->

    <style>

        .accordionHeader {

            background-color#007bff;

            colorwhite;

            font-weightbold;

            padding10px;

            cursorpointer;

        }

 

        .accordionContent {

            background-color#f9f9f9;

            padding15px;

            font-size14px;

        }

    </style>

 

    </div>

 

 

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

 

public partial class frmReturnPolicy : System.Web.UI.Page

{

    protected void Page_Load(object sender, EventArgs e)

    {

 

    }

}

 

 

 

 

 

 

frmAdministrators.aspx

 

 

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmAdministrators.aspx.cs" Inherits="frmAdministrators" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <link href="StyleSheet.css" rel="stylesheet" />

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

      <h1 style="text-align:center" class="auto-style30">Administrators List </h1>

    <br />

    <br />

    <div>

 

        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" ForeColor="Black" Height="120px" Width="786px">

            <Columns>

                <asp:BoundField DataField="Name" HeaderText="Admins Name" />

                <asp:BoundField DataField="UserName" HeaderText="Username" />

                <asp:BoundField DataField="EntryDate"  DataFormatString="{0:dd-MMM-yyyy}"  HeaderText="Admin Registration Date" />

                <asp:TemplateField HeaderText="Password">

                    <ItemTemplate>

                        <%# new String('*', Eval("Password").ToString().Length) %>

                    </ItemTemplate>

                </asp:TemplateField>

            </Columns>

            <FooterStyle BackColor="#CCCCCC" />

            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />

            <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />

            <RowStyle BackColor="White" />

            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />

            <SortedAscendingCellStyle BackColor="#F1F1F1" />

            <SortedAscendingHeaderStyle BackColor="#808080" />

            <SortedDescendingCellStyle BackColor="#CAC9C9" />

            <SortedDescendingHeaderStyle BackColor="#383838" />

        </asp:GridView>

    </div>

 

 

 

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data.SqlClient;

using System.Data;

using System.IO;

 

public partial class frmAdministrators : System.Web.UI.Page

{

    ClsConnectionString Conect = new ClsConnectionString();

    ClsAdminLogic AdminLogic = new ClsAdminLogic();

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!IsPostBack)

        {

            GridFill();

        }

    }

 

 

    public void GridFill()

    {

        SqlDataAdapter ad = new SqlDataAdapter("ADMIN_SELECT", Conect.CS);

        DataSet ds = new DataSet();

        ad.Fill(ds);

        GridView1.DataSource = ds;

        GridView1.DataBind();

 

 

    }

 

}

 

frmUpdate.aspx

 

NO code available only javascrpt popup

frmSendEmail.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmSendEmail.aspx.cs" Inherits="frmSendEmail" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <style type="text/css">

        .auto-style17 {

            width100%;

        }

        .auto-style18 {

            width233px;

        }

        .auto-style19 {

            width233px;

            text-alignright;

        }

    </style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

     <br />

    <h1 style="text-align:center" class="auto-style30">Send Email </h1>

    <br />

    <div>

 

 

        <table class="auto-style17">

            <tr>

                <td>&nbsp;</td>

                <td class="auto-style18">&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td class="auto-style19">To:</td>

                <td>

                    <asp:TextBox ID="txtTo" runat="server" BorderStyle="Solid" Height="20px" Width="207px"></asp:TextBox>

                </td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td class="auto-style19">CC:</td>

                <td>

                    <asp:TextBox ID="txtCC" runat="server" BorderStyle="Solid" Height="20px" Width="207px"></asp:TextBox>

                </td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td class="auto-style19">Subject:</td>

                <td>

                    <asp:TextBox ID="txtSubject" runat="server" BorderStyle="Solid" Height="20px" Width="207px"></asp:TextBox>

                </td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td class="auto-style19">Messege:</td>

                <td>

                    <asp:TextBox ID="txtMessge" runat="server" BorderStyle="Solid" Height="106px" TextMode="MultiLine" Width="397px"></asp:TextBox>

                </td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td class="auto-style19">&nbsp;</td>

                <td>

                    <asp:Button ID="btnSendEmail" runat="server" Height="31px" OnClick="btnSendEmail_Click" Text="Send Email" Width="119px" />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                    <asp:Button ID="btnClearText" runat="server" Height="31px" OnClick="btnClearText_Click" Text="Clear Text" Width="119px" />

                </td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

        </table>

 

 

    </div>

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Net;

using System.Net.Mail;

 

public partial class frmSendEmail : System.Web.UI.Page

{

    protected void Page_Load(object sender, EventArgs e)

    {

 

    }

 

    protected void btnSendEmail_Click(object sender, EventArgs e)

    {

        try

        {

            MailMessage mail = new MailMessage();                  

            mail.From = new MailAddress("example@ymail.com");

 

            foreach (string toAddress in txtTo.Text.Split(','))

            {

                if (!string.IsNullOrWhiteSpace(toAddress))

                    mail.To.Add(toAddress.Trim());

            }

 

            foreach (string ccAddress in txtCC.Text.Split(','))

            {

                if (!string.IsNullOrWhiteSpace(ccAddress))

                    mail.CC.Add(ccAddress.Trim());

            }

 

            mail.Subject = txtSubject.Text;

            mail.Body = txtMessge.Text;

            mail.IsBodyHtml = false;

 

            SmtpClient smtp = new SmtpClient("smtp.mail.yahoo.com", 587);

            smtp.Credentials = new NetworkCredential("example@ymail.com""zetvroucilxqerfa");

            smtp.EnableSsl = true;

 

            smtp.Send(mail);

 

            ScriptManager.RegisterStartupScript(thisthis.GetType(), "alert""alert('Email sent successfully!');"true);

            ClearText();

        }

        catch (Exception ex)

        {

            ScriptManager.RegisterStartupScript(thisthis.GetType(), "alert""alert('Error: " + ex.Message + "');"true);

        }

    }

 

    public void ClearText()

    {

        txtCC.Text = "";

        txtMessge.Text = "";

        txtSubject.Text = "";

        txtTo.Text = "";

 

    }

 

 

 

    protected void btnClearText_Click(object sender, EventArgs e)

    {

        ClearText();

    }

}

 

Student.Master.Master

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Student.master.cs" Inherits="MasterPage" %>

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <title>Student Home</title>

    <link href="../StyleSheet.css" rel="stylesheet" />

<%--    <img src="Img2/libralogos.png"/>--%>

    <asp:ContentPlaceHolder id="head" runat="server">

    </asp:ContentPlaceHolder>

     <style type="text/css">

        .auto-style4 {

            width16%;

            floatleft;

            height462px;

        }

        .auto-style7 {

            height38px;

        }

        .auto-style8 {

            height6px;

        }

        .auto-style9 {

            height23px;

        }

        .auto-style10 {

            height22px;

        }

        .auto-style11 {

            height26px;

        }

        .auto-style12 {

            height12px;

        }

        .auto-style13 {

            height10px;

        }

        .auto-style14 {

            height19px;

        }

        .auto-style15 {

            height16px;

        }

        .auto-style16 {

            height33px;

        }

        </style>

</head>

<body>

    <form id="form1" runat="server">

    <div>

 

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

                <div class=" head">

                       <img src="Img2/libralogos.png" width="800px;" style="height: 127px" />

                </div>

                <table align="left" class="auto-style1">

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                    <tr>

                        <td>&nbsp;</td>

                    </tr>

                </table>

                <table align="left" class="auto-style4">

                    <tr>

                        <td>Welcome:

                            <asp:Label ID="lblName" runat="server" style="color: #FF0000; font-weight: 700; font-size: large"></asp:Label>

                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                            <img src="../Img/animated-book-image-0045.gif" width="14%" /></td>

                    </tr>

                    <tr>

                        <td class="auto-style7">Your Login ID:<asp:Label ID="lblID" runat="server" style="color: #FF0000; font-weight: 700; font-size: large"></asp:Label>

                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                           <img src="../Img/animated-book-image-0045.gif" width="14%"/></td>

 

                    </tr>

                    <tr>

                        <td class="auto-style9">

                    <asp:Button ID="Button21" runat="server" BackColor="Lime" BorderStyle="None" Height="37px" Text="HOME SCREEN" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button21_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td>

                            <asp:Button ID="Button2" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="VIEW DETAILS" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button2_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style8">

                            <asp:Button ID="Button3" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="UPDATE DETAILS" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button3_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style10">

                            <asp:Button ID="Button4" CssClass="btnmenu" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="REGISTER COMPLAINT" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button4_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td style="font-weight: 700" class="auto-style11">

                            <asp:Button ID="Button14" CssClass="btnmenu" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="ISSUE BOOK" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button14_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style12">

                            <asp:Button ID="Button15" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="SYLLABUS DOWNLOAD" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button15_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style13">

                            <asp:Button ID="Button16" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="MEMBERSHIP DETAILS" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button16_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style12">

                            <asp:Button ID="Button17" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="RETURN POLICY" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button17_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style14">

                            <asp:Button ID="Button18" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="RETURN BOOK" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                        </td>

                    </tr>

                    <tr>

                        <td class="auto-style15">

                            <asp:Button ID="Button19" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Text="PENALITY STATUS" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button19_Click" />

                        </td>

                    </tr>

                    <tr>

                        <td>

                            <asp:Button ID="Button20" runat="server" BackColor="Red" BorderStyle="None" Height="37px" Text="LOG OUT" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" OnClick="Button20_Click" />

                        </td>

 

 

                </table>

                <%--        <br />   

        <br />--%>

            

                <div class="details">

                   <%-- <img src="Img/LoginLogo.gif" width="100%" height="100%" />--%>

                    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

                    </asp:ContentPlaceHolder>

                </div>

                &nbsp;

        <table align="left" class="auto-style4">

            <tr>

                <td>Time:&nbsp;

                    <asp:Label ID="lblTime" runat="server" style="color: #FF0000; font-weight: 700; font-size: large"></asp:Label>

                </td>

            </tr>

            <tr>

                <td class="auto-style7">&nbsp;Date:

                    <asp:Label ID="lblDate" runat="server" style="color: #FF0000; font-weight: 700; font-size: large"></asp:Label>

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button32" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button33" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

            <tr>

                <td class="auto-style16">

                    <asp:Button ID="Button34" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button35" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

            <tr>

                <td style="font-weight: 700">

                    <asp:Button ID="Button36" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button37" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button38" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button39" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button40" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button41" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

            <tr>

                <td>

                    <asp:Button ID="Button42" runat="server" BackColor="#3399FF" BorderStyle="None" Height="37px" Width="232px" Font-Bold="True" Font-Size="Large" ForeColor="White" />

                </td>

            </tr>

 

 

        </table>

 

 

            </div>

 

    </form>

</body>

</html>

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

 

 

public partial class MasterPage : System.Web.UI.MasterPage

{

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!IsPostBack)

        {

 

        }

        if (Session["STUDSID"] == null)

        {

            Response.Redirect("~/Default.aspx/");

        }

        else

        {

            lblName.Text = Session["STUDUSERNAME"].ToString();

            lblID.Text = Session["STUDSID"].ToString();

            lblDate.Text = DateTime.Today.ToString("dd-MMMM-yyyy");

            lblTime.Text = DateTime.Now.ToString("HH:mm:ss");

        }

    }

 

    protected void Button20_Click(object sender, EventArgs e)

    {

        //Session["AID"] = null;

        //Session["User"] = null;

        Response.Redirect("~/Default.aspx");

    }

    protected void Button1_Click(object sender, EventArgs e)

    {

        Response.Redirect("Publication.aspx");

    }

    protected void Button21_Click(object sender, EventArgs e)

    {

        Response.Redirect("frmStudentHome.aspx");

    }

    protected void Button4_Click(object sender, EventArgs e)

    {

        Response.Redirect("~/Student/frmRegisterComplaint.aspx");

    }

    protected void Button2_Click(object sender, EventArgs e)

    {

        Response.Redirect("~/Student/frmViewStudentInformaton.aspx");

    }

    protected void Button28_Click(object sender, EventArgs e)

    {

        Response.Redirect("Administrators.aspx");

    }

    protected void Button14_Click(object sender, EventArgs e)

    {

        Response.Redirect("~/Student/frmISsueBook.aspx");

    }

    protected void Button23_Click(object sender, EventArgs e)

    {

        Response.Redirect("Calender.aspx");

    }

    protected void Button15_Click(object sender, EventArgs e)

    {

        Response.Redirect("~/Student/frmStudentViewSyllabus.aspx");

    }

 

    protected void Button31_Click(object sender, EventArgs e)

    {

 

    }

 

    protected void Button3_Click(object sender, EventArgs e)

    {

        Response.Redirect("~/Student/frmUpdateStudentInformaton.aspx");

    }

 

    protected void Button17_Click(object sender, EventArgs e)

    {

        Response.Redirect("~/Student/frmReturnPolicyStudent.aspx");

    }

 

    protected void Button16_Click(object sender, EventArgs e)

    {

        Response.Redirect("~/Student/frmStudentMembershipDetails.aspx");

    }

 

    protected void Button19_Click(object sender, EventArgs e)

    {

        Response.Redirect("~/Student/frmStudentPenalityStatus.aspx");

    }

}

 

frmStudentHome.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/Student/Student.master" AutoEventWireup="true" CodeFile="frmStudentHome.aspx.cs" Inherits="Student_StudentHome" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <br />

    <br />

    <br />

    <br />

    <br />

    <br />

    <br />

    <br />

    <br />

    <br />

    <br />

    <h1 style="text-align:center">Student Home Page</h1>

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

 

public partial class Student_StudentHome : System.Web.UI.Page

{

    protected void Page_Load(object sender, EventArgs e)

    {

 

    }

}

 

frmViewStudentInformation.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/Student/Student.master" AutoEventWireup="true" CodeFile="frmViewStudentInformaton.aspx.cs" Inherits="Student_frmStud" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

        <div>

                    <br />

     <h1 style="text-align:center" class="auto-style13">Student Details </h1>

        <br />

    </div>

        <br />

    <div>

 

        <table class="auto-style17">

            <tr>

                <td rowspan="4">

                    <asp:Image ID="imgImageBox" runat="server" Height="100px" Width="100px" />

                    <br />

                    Student Photo</td>

                <td>&nbsp;</td>

                <td><span class="auto-style19">Student ID</span><br />

                    <asp:TextBox ID="txtStudentID" runat="server" Height="21px" Width="101px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">First Name</span><br />

                    <asp:TextBox ID="txtfirstname" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Middle Name</span><br />

                    <asp:TextBox ID="txtMiddleName" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Last Name</span><br />

                    <asp:TextBox ID="txtLastName" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Mother&#39;s Name</span><br />

                    <asp:TextBox ID="txtMotherName" runat="server" Height="21px" Width="106px"></asp:TextBox>

                </td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td><span class="auto-style19">Father&#39;s Name</span><br />

                    <asp:TextBox ID="txtFatherName" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Date of Birth</span><br />

                    <asp:TextBox ID="txtDateofBirth" runat="server" Height="21px" Width="133px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">ID Card Number</span><br />

                    <asp:TextBox ID="txtIDNumber" runat="server" Height="21px" Width="126px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Institute Name</span><br />

                    <asp:TextBox ID="txtInstituteNumber" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Contact Nuber</span><br />

                    <asp:TextBox ID="txtContactNumber" runat="server" Height="21px" Width="101px"></asp:TextBox>

                </td>

            </tr>

            <tr>

                <td class="auto-style20"></td>

                <td class="auto-style20"><span class="auto-style19">City Name</span><br />

                    <asp:TextBox ID="txtCityName" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td class="auto-style20"><span class="auto-style19">Pin Code</span><br />

                    <asp:TextBox ID="txtPinCode" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td class="auto-style20"><span class="auto-style19">Branch Name</span><br />

                    <asp:TextBox ID="txtBranchName" runat="server" Height="22px" Width="135px"></asp:TextBox>

                </td>

                <td class="auto-style20"><span class="auto-style19">Gender</span><br />

                    <asp:DropDownList ID="ddlGender" runat="server" Height="27px" Width="134px">

                        <asp:ListItem Selected="True">--------Select Items-------</asp:ListItem>

                        <asp:ListItem>Male</asp:ListItem>

                        <asp:ListItem>Female</asp:ListItem>

                        <asp:ListItem>Other</asp:ListItem>

                    </asp:DropDownList>

                </td>

                <td class="auto-style20"><span class="auto-style19">Entry Date</span><br />

                    <asp:TextBox ID="txtEntryDate" runat="server" Height="21px" Width="104px"></asp:TextBox>

                </td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td class="auto-style19" colspan="2" rowspan="4">Present Address<br />

                    <asp:TextBox ID="txtPresentAddress" runat="server" Height="88px" TextMode="MultiLine" Width="272px"></asp:TextBox>

                </td>

                <td>

                    <br />

                </td>

                <td colspan="2" rowspan="4">Permanent Address<br />

                    <asp:TextBox ID="txtPermanentAddress" runat="server" Height="88px" TextMode="MultiLine" Width="253px"></asp:TextBox>

                </td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>Upload photo<br />

                    <asp:FileUpload ID="FileUpload1" runat="server" Width="132px" />

                </td>

                <td>

                    <asp:Button ID="btnUploadPhoto" runat="server" Height="25px" Text="Upload Photo" Width="99px" />

                </td>

                <td><span class="auto-style19">Registerd Email ID</span><br />

                    <asp:TextBox ID="txtEmaiID" runat="server" Height="21px" Width="134px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Password for Login</span><br />

                    <asp:TextBox ID="txtPassword" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td class="auto-style21"></td>

                <td class="auto-style21"></td>

                <td class="auto-style21"></td>

                <td class="auto-style21">

                </td>

                <td class="auto-style21">

                </td>

                <td class="auto-style21">

                </td>

                <td class="auto-style21"></td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>

                    <asp:Button ID="btnUpdate" runat="server" Height="35px" Text="Update" Width="129px" />

                </td>

                <td>

                    <asp:Button ID="btnSave" runat="server" Height="35px" Text="Save" Width="129px" />

                </td>

                <td>

                    <asp:Button ID="btnCancel" runat="server" Height="35px" Text="Cancel" Width="129px" />

                </td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

        </table>

 

    </div>

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data;

using System.Data.SqlClient;

 

public partial class Student_frmStud : System.Web.UI.Page

{

    ClsConnectionString Conect = new ClsConnectionString();

    ClsStudentLogic ObjStudent = new ClsStudentLogic();

 

 

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!IsPostBack)

        {

            int stdID;

 

            // Check if Session contains the student ID

            if (Session["STUDSID"] != null && int.TryParse(Session["STUDSID"].ToString(), out stdID))

            {

                DataSet ds = ObjStudent.LoadStudentDetails(stdID);

 

                if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)

                {

                    DataRow row = ds.Tables[0].Rows[0];

 

                    txtStudentID.Text = row["SID"].ToString();

                    txtfirstname.Text = row["FirstName"].ToString();

                    txtBranchName.Text = row["BranchName"].ToString();

                    txtCityName.Text = row["City"].ToString();

                    txtContactNumber.Text = row["ContactNo"].ToString();

                    txtDateofBirth.Text = row["DOB"].ToString();

                    txtEmaiID.Text = row["Email"].ToString();

                    txtEntryDate.Text = Convert.ToDateTime(row["EntryDate"]).ToString("yyyy-MM-dd");

                    txtFatherName.Text = row["FathersName"].ToString();

                    txtInstituteNumber.Text = row["Institute"].ToString();

                    txtLastName.Text = row["LastName"].ToString();

                    txtMiddleName.Text = row["MiddleName"].ToString();

                    txtMotherName.Text = row["MothersName"].ToString();

                    txtPassword.Text = row["Password"].ToString();

                    txtPermanentAddress.Text = row["PermanentAddress"].ToString();

                    txtPinCode.Text = row["Pincode"].ToString();

                    txtPresentAddress.Text = row["LocalAddress"].ToString();

                    txtIDNumber.Text = row["IDCardNo"].ToString();

 

                    if (ddlGender.Items.FindByText(row["Gender"].ToString()) != null)

                    {

                        ddlGender.ClearSelection();

                        ddlGender.Items.FindByText(row["Gender"].ToString()).Selected = true;

                    }

 

                    string imagePath = row["Image"].ToString();

                    imgImageBox.ImageUrl = ResolveUrl(imagePath);

                }

            }

            else

            {

                // SID is missing or not valid

                Response.Redirect("~/ErrorPage.aspx");

            }

 

            btnUpdate.Visible = false;

            btnSave.Visible = false;

            btnCancel.Visible = false;

            DisableControls();

        }

    }

 

 

    public void DisableControls()

    {

        txtStudentID.Enabled = false;

        txtfirstname.Enabled = false;

        txtBranchName.Enabled = false;

        txtCityName.Enabled = false;

        txtContactNumber.Enabled = false;

        txtDateofBirth.Enabled = false;

        txtEmaiID.Enabled = false;

        txtEntryDate.Enabled = false;

        txtFatherName.Enabled = false;

        txtInstituteNumber.Enabled = false;

        txtLastName.Enabled = false;

        txtMiddleName.Enabled = false;

        txtMotherName.Enabled = false;

        txtPassword.Enabled = false;

        txtPermanentAddress.Enabled = false;

        txtPinCode.Enabled = false;

        txtPresentAddress.Enabled = false;

        txtIDNumber.Enabled = false;

        ddlGender.Enabled = false;

        imgImageBox.Enabled = false;

        FileUpload1.Enabled = false;

        btnUploadPhoto.Enabled = false;

 

    }

 

 

}

 

frmUpdateStudentInformation.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/Student/Student.master" AutoEventWireup="true" CodeFile="frmUpdateStudentInformaton.aspx.cs" Inherits="Student_frmStud" %>

 

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

        <div>

                    <br />

     <h1 style="text-align:center" class="auto-style13">Student Details </h1>

        <br />

    </div>

        <br />

    <div>

 

        <table class="auto-style17">

            <tr>

                <td rowspan="4">

                    <asp:Image ID="imgImageBox" runat="server" Height="100px" Width="100px" />

                    <br />

                    Student Photo</td>

                <td>&nbsp;</td>

                <td><span class="auto-style19">Student ID</span><br />

                    <asp:TextBox ID="txtStudentID" runat="server" Height="21px" Width="101px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">First Name</span><br />

                    <asp:TextBox ID="txtfirstname" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Middle Name</span><br />

                    <asp:TextBox ID="txtMiddleName" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Last Name</span><br />

                    <asp:TextBox ID="txtLastName" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Mother&#39;s Name</span><br />

                    <asp:TextBox ID="txtMotherName" runat="server" Height="21px" Width="106px"></asp:TextBox>

                </td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td><span class="auto-style19">Father&#39;s Name</span><br />

                    <asp:TextBox ID="txtFatherName" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Date of Birth</span><br />

                    <asp:TextBox ID="txtDateofBirth" runat="server" CssClass="form-control" Height="19px" Width="134px"></asp:TextBox>

                    <ajaxToolkit:CalendarExtender ID="txtDateofBirth_CalendarExtender" runat="server" BehaviorID="txtDateofBirth_CalendarExtender" TargetControlID="txtDateofBirth" Format="yyyy-MM-dd" PopupButtonID="txtDateofBirth">

 

                         </ajaxToolkit:CalendarExtender>

                </td>

                <td><span class="auto-style19">ID Card Number</span><br />

                    <asp:TextBox ID="txtIDNumber" runat="server" Height="21px" Width="126px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Institute Name</span><br />

                    <asp:TextBox ID="txtInstituteNumber" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Contact Nuber</span><br />

                    <asp:TextBox ID="txtContactNumber" runat="server" Height="21px" Width="101px"></asp:TextBox>

                </td>

            </tr>

            <tr>

                <td class="auto-style20"></td>

                <td class="auto-style20"><span class="auto-style19">City Name</span><br />

                    <asp:TextBox ID="txtCityName" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td class="auto-style20"><span class="auto-style19">Pin Code</span><br />

                    <asp:TextBox ID="txtPinCode" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td class="auto-style20"><span class="auto-style19">Branch Name</span><br />

                    <asp:TextBox ID="txtBranchName" runat="server" Height="22px" Width="135px"></asp:TextBox>

                </td>

                <td class="auto-style20"><span class="auto-style19">Gender</span><br />

                    <asp:DropDownList ID="ddlGender" runat="server" Height="27px" Width="134px">

                        <asp:ListItem Selected="True">---Select Items-------</asp:ListItem>

                        <asp:ListItem>Male</asp:ListItem>

                        <asp:ListItem>Female</asp:ListItem>

                        <asp:ListItem>Other</asp:ListItem>

                    </asp:DropDownList>

                </td>

                <td class="auto-style20"><span class="auto-style19">Entry Date</span><br />

                    <asp:TextBox ID="txtEntryDate" runat="server" Height="21px" Width="104px"></asp:TextBox>

                </td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td class="auto-style19" colspan="2" rowspan="4">Present Address<br />

                    <asp:TextBox ID="txtPresentAddress" runat="server" Height="88px" TextMode="MultiLine" Width="272px"></asp:TextBox>

                </td>

                <td>

                    <br />

                </td>

                <td colspan="2" rowspan="4">Permanent Address<br />

                    <asp:TextBox ID="txtPermanentAddress" runat="server" Height="88px" TextMode="MultiLine" Width="253px"></asp:TextBox>

                </td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>Upload photo<br />

                    <asp:FileUpload ID="FileUpload1" runat="server" Width="132px" />

                </td>

                <td>

                    <asp:Button ID="btnUploadPhoto" runat="server" Height="25px" Text="Upload Photo" Width="99px" />

                </td>

                <td><span class="auto-style19">Registerd Email ID</span><br />

                    <asp:TextBox ID="txtEmaiID" runat="server" Height="21px" Width="134px"></asp:TextBox>

                </td>

                <td><span class="auto-style19">Password for Login</span><br />

                    <asp:TextBox ID="txtPassword" runat="server" Height="21px" Width="135px"></asp:TextBox>

                </td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td class="auto-style21"></td>

                <td class="auto-style21"></td>

                <td class="auto-style21"></td>

                <td class="auto-style21">

                </td>

                <td class="auto-style21">

                </td>

                <td class="auto-style21">

                </td>

                <td class="auto-style21"></td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>

                    &nbsp;</td>

                <td>

                    <asp:Button ID="btnUpdate" runat="server" Height="35px" Text="Update" Width="129px" OnClick="btnUpdate_Click" />

                </td>

                <td>

                    <asp:Button ID="btnCancel" runat="server" Height="35px" Text="Cancel" Width="129px" OnClick="btnCancel_Click" />

                </td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

        </table>

 

    </div>

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data;

using System.Data.SqlClient;

 

public partial class Student_frmStud : System.Web.UI.Page

{

    ClsConnectionString Conect = new ClsConnectionString();

    ClsStudentLogic ObjStudent = new ClsStudentLogic();

 

 

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!IsPostBack)

        {

            int stdID;

 

            // Check if Session contains the student ID

            if (Session["STUDSID"] != null && int.TryParse(Session["STUDSID"].ToString(), out stdID))

            {

                DataSet ds = ObjStudent.LoadStudentDetails(stdID);

 

                if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)

                {

                    DataRow row = ds.Tables[0].Rows[0];

 

                    txtStudentID.Text = row["SID"].ToString();

                    txtfirstname.Text = row["FirstName"].ToString();

                    txtBranchName.Text = row["BranchName"].ToString();

                    txtCityName.Text = row["City"].ToString();

                    txtContactNumber.Text = row["ContactNo"].ToString();

                    txtDateofBirth.Text = row["DOB"].ToString();

                    txtEmaiID.Text = row["Email"].ToString();

                    txtEntryDate.Text = Convert.ToDateTime(row["EntryDate"]).ToString("yyyy-MM-dd");

                    txtFatherName.Text = row["FathersName"].ToString();

                    txtInstituteNumber.Text = row["Institute"].ToString();

                    txtLastName.Text = row["LastName"].ToString();

                    txtMiddleName.Text = row["MiddleName"].ToString();

                    txtMotherName.Text = row["MothersName"].ToString();

                    txtPassword.Text = row["Password"].ToString();

                    txtPermanentAddress.Text = row["PermanentAddress"].ToString();

                    txtPinCode.Text = row["Pincode"].ToString();

                    txtPresentAddress.Text = row["LocalAddress"].ToString();

                    txtIDNumber.Text = row["IDCardNo"].ToString();

 

                    if (ddlGender.Items.FindByText(row["Gender"].ToString()) != null)

                    {

                        ddlGender.ClearSelection();

                        ddlGender.Items.FindByText(row["Gender"].ToString()).Selected = true;

                    }

 

                    string imagePath = row["Image"].ToString();

                    imgImageBox.ImageUrl = ResolveUrl(imagePath);

                }

            }

            else

            {

                // SID is missing or not valid

                Response.Redirect("~/ErrorPage.aspx");

            }

 

            btnUpdate.Visible = true;

            btnCancel.Visible = true;

            txtStudentID.ReadOnly = true;

            txtEntryDate.ReadOnly = true;

        }

    }

 

 

    public void DisableControls()

    {

        txtStudentID.Enabled = false;

        txtfirstname.Enabled = false;

        txtBranchName.Enabled = false;

        txtCityName.Enabled = false;

        txtContactNumber.Enabled = false;

        txtDateofBirth.Enabled = false;

        txtEmaiID.Enabled = false;

        txtEntryDate.Enabled = false;

        txtFatherName.Enabled = false;

        txtInstituteNumber.Enabled = false;

        txtLastName.Enabled = false;

        txtMiddleName.Enabled = false;

        txtMotherName.Enabled = false;

        txtPassword.Enabled = false;

        txtPermanentAddress.Enabled = false;

        txtPinCode.Enabled = false;

        txtPresentAddress.Enabled = false;

        txtIDNumber.Enabled = false;

        ddlGender.Enabled = false;

        imgImageBox.Enabled = false;

        FileUpload1.Enabled = false;

        btnUploadPhoto.Enabled = false;

 

    }

 

 

    protected void btnUpdate_Click(object sender, EventArgs e)

    {

        if (FileUpload1.HasFile)

 

        {

            try

            {

                string savePath = Server.MapPath("~/Student/Img2/") + FileUpload1.FileName;

                FileUpload1.SaveAs(savePath); 

                int StudentIDnumber;

                StudentIDnumber = Convert.ToInt32(txtStudentID.Text);

                ObjStudent.sSID = StudentIDnumber;

                ObjStudent.sFirstName = txtfirstname.Text.Trim();

                ObjStudent.sMiddleName = txtMiddleName.Text.Trim();

                ObjStudent.sLastName = txtLastName.Text.Trim();

                ObjStudent.sDOB = txtDateofBirth.Text;

                ObjStudent.sFathersName = txtFatherName.Text.Trim();

                ObjStudent.sMothersName = txtMotherName.Text.Trim();

                ObjStudent.sIDCardNo = txtIDNumber.Text.Trim();

                ObjStudent.sInstitute = txtInstituteNumber.Text.Trim();

                ObjStudent.sImage = "~/Student/Img2/" + FileUpload1.FileName;

                ObjStudent.sContactNo = txtContactNumber.Text.Trim();

                ObjStudent.sEmail = txtEmaiID.Text.Trim();

                ObjStudent.sPassword = txtPassword.Text.Trim();

                ObjStudent.sLocalAddress = txtPresentAddress.Text.Trim();

                ObjStudent.sPermanentAddress = txtPermanentAddress.Text.Trim();

                ObjStudent.SCity = txtCityName.Text.Trim();

                ObjStudent.SPincode = txtPinCode.Text.Trim();

                ObjStudent.sBranchName = txtBranchName.Text.Trim();

                ObjStudent.sGender = ddlGender.SelectedItem.Text;

                ObjStudent.UpddateStudentInformation(StudentIDnumber);

 

                Response.Write("<script>alert('Details Updated Successfully!')</script>");

            }

            catch (Exception ex)

            {

                string errorMessage = ex.Message.Replace("'""\\'");

                Response.Write("<script>alert('An error occurred: " + errorMessage + "')</script>");

                CleanUp();

 

            }

        }

        else

        {

            Response.Write("<script>alert('Please upload photo!')</script>");

 

        }

       

    }

 

 

    public void CleanUp()

    {

        txtfirstname.Text = "";

        txtMiddleName.Text = "";

        txtLastName.Text = "";

        txtDateofBirth.Text = "";

        txtFatherName.Text = "";

        txtMotherName.Text = "";

        txtIDNumber.Text = "";

        txtInstituteNumber.Text = "";

        txtContactNumber.Text = "";

        txtEmaiID.Text = "";

        txtPassword.Text = "";

        txtPresentAddress.Text = "";

        txtPermanentAddress.Text = "";

        txtCityName.Text = "";

        txtPinCode.Text = "";

        txtBranchName.Text = "";

        ddlGender.SelectedItem.Text = "";

    }

 

    protected void btnCancel_Click(object sender, EventArgs e)

    {

        CleanUp();

    }

}

 

frmRegisterComplaint.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/Student/Student.master" AutoEventWireup="true" CodeFile="frmRegisterComplaint.aspx.cs" Inherits="Student_frmRegisterComplaint" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <style type="text/css">

        .auto-style17 {

            width100%;

        }

        .auto-style18 {

            text-alignright;

        }

    </style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div>

            <br />

       <h1 style="text-align:center" class="auto-style30">Register Complaint </h1>

    </div>

    <div>

 

        <table class="auto-style17">

            <tr>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td class="auto-style18">To :</td>

                <td>Admin</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td class="auto-style18">Subject :</td>

                <td>

                    <asp:DropDownList ID="ddlComplaint" runat="server" Height="25px" Width="178px">

                        <asp:ListItem>-------------Select-----------------</asp:ListItem>

                        <asp:ListItem>Suggetion</asp:ListItem>

                        <asp:ListItem>Complaint</asp:ListItem>

                        <asp:ListItem>Feedback</asp:ListItem>

                        <asp:ListItem>Other</asp:ListItem>

                    </asp:DropDownList>

                </td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td class="auto-style18">Messege/Complaint/Suggetion</td>

                <td>

                    <asp:TextBox ID="txtMsg" runat="server" Height="92px" TextMode="MultiLine" Width="296px"></asp:TextBox>

                </td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>

                    <asp:Button ID="btnSendMsge" runat="server" Height="37px" Text="Send Messge" Width="125px" OnClick="btnSendMsge_Click" />

&nbsp;

                    <asp:Button ID="btnClean" runat="server" Height="37px" Text="Clear Text" Width="125px" />

                </td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

        </table>

        <div>

 

            <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Height="141px" Width="796px" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="5">

                <Columns>

                    <asp:BoundField DataField="Subject" HeaderText="Type of Complaint" />

                    <asp:BoundField DataField="Messge" HeaderText="Messge Type" />

                    <asp:BoundField DataField="EntryDate" HeaderText="Entry Date" DataFormatString="{0:dd-MMM-yyyy}" />

                    <asp:BoundField DataField="ActionTaken" HeaderText="Status of Complaint" />

                </Columns>

                <FooterStyle BackColor="White" ForeColor="#000066" />

                <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />

                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />

                <RowStyle ForeColor="#000066" />

                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />

                <SortedAscendingCellStyle BackColor="#F1F1F1" />

                <SortedAscendingHeaderStyle BackColor="#007DBB" />

                <SortedDescendingCellStyle BackColor="#CAC9C9" />

                <SortedDescendingHeaderStyle BackColor="#00547E" />

            </asp:GridView>

 

        </div>

    </div>

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data;

using System.Data.SqlClient;

 

 

public partial class Student_frmRegisterComplaint : System.Web.UI.Page

{

    ClsConnectionString Conect = new ClsConnectionString();

    ClsStudentLogic ObjStudent = new ClsStudentLogic();

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!IsPostBack)

        {

            GridFill();

        }

    }

    public void GridFill()

    {

        int StudentComplaint;

        StudentComplaint = int.Parse(Session["STUDSID"].ToString());

        ObjStudent.sSID = StudentComplaint;

        ObjStudent.ComplaintSelectbyStudentID(StudentComplaint);

        DataSet ds = ObjStudent.ComplaintSelectbyStudentID(StudentComplaint);

        GridView1.DataSource = ds;

        GridView1.DataBind();

    }

 

    protected void btnSendMsge_Click(object sender, EventArgs e)

    {

        try

        {

            ObjStudent.subject = ddlComplaint.SelectedItem.Text;

            ObjStudent.messge = txtMsg.Text;

            ObjStudent.peding = "pending";

            ObjStudent.sSID = int.Parse(Session["STUDSID"].ToString());

            ObjStudent.sFirstName = Session["STUDUSERNAME"].ToString();

            ObjStudent.ComplaintRegister();

            

 

            // Notify success

            ClientScript.RegisterStartupScript(this.GetType(), "alert""alert('Complaint registered successfully!');"true);

            ClearText();

            GridFill();

        }

        catch (Exception ex)

        {

            // Log the error or display a message

            ScriptManager.RegisterStartupScript(thisthis.GetType(), "alert""alert('Error: " + ex.Message + "');"true);

        }

    }

 

 

    public void ClearText()

    {

        ddlComplaint.SelectedIndex = 0;

        txtMsg.Text = "";

 

    }

 

 

    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)

    {

        if (e.Row.RowType == DataControlRowType.DataRow)

        {

            // Get the status value from the "ActionTaken" column (Status of Complaint column)

            string status = e.Row.Cells[3].Text.Trim().ToLower(); // Assuming ActionTaken is the 4th column (index 3)

 

            // Apply color based on the status value

            if (status == "resolved")

            {

                e.Row.Cells[3].ForeColor = System.Drawing.Color.Green;

                e.Row.Cells[3].Font.Bold = true;

            }

            else if (status == "pending")

            {

                e.Row.Cells[3].ForeColor = System.Drawing.Color.Red;

                e.Row.Cells[3].Font.Bold = true;

            }

        }

    }

 

    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)

    {

        GridView1.PageIndex = e.NewPageIndex;

        GridFill();

    }

}

 

frmIssueBook.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/Student/Student.master" AutoEventWireup="true" CodeFile="frmISsueBook.aspx.cs" Inherits="frmBookReport" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <style type="text/css">

        .auto-style17 {

            width100%;

        }

        .auto-style18 {

            width114px;

        }

        .auto-style19 {

            width98px;

        }

        .auto-style20 {

            width39px;

        }

        .auto-style21 {

            width80px;

        }

    </style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

      <script type="text/javascript">

        function checkLimit(chk) {

            var checkboxes = document.querySelectorAll(".bookCheckbox");

            var selectedCount = 0;

 

            checkboxes.forEach(function (cb) {

                if (cb.checked) selectedCount++;

            });

 

            if (selectedCount > 3) {

                alert("Only 3 books can be selected or issued.");

                chk.checked = false;

                return false;

            }

 

            return true;

        }

    </script>

 

    <div>

        <br />

        <h1 style="text-align: center" class="auto-style30">Book Report </h1>

        <br />

    </div>

    <div>

 

<%--        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" ForeColor="Black" Height="144px" Width="797px" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="4" HorizontalAlign="Center">

            <Columns>

                <asp:BoundField DataField="BookName" HeaderText="Books Name" />

                <asp:BoundField DataField="Author" HeaderText="AutherName" />

                <asp:BoundField DataField="Price" HeaderText="Price of Book" />

                <asp:BoundField DataField="Branch" HeaderText="Branch Name" />

                <asp:BoundField DataField="Quantities" HeaderText="Quantity Available" />

                <asp:TemplateField HeaderText="Book Cover Page">

                    <ItemTemplate>

                        <asp:Image ID="Image1" runat="server" Height="100px" Width="100px" ImageUrl='<%# Eval("BookImages") %>' />

                    </ItemTemplate>

                </asp:TemplateField>

                <asp:TemplateField HeaderText="Select">

                    <ItemTemplate>

                        <asp:CheckBox ID="chkSelect" runat="server" CssClass="bookCheckbox"

                            onclick="return checkLimit(this);" />

                    </ItemTemplate>

                </asp:TemplateField>

            </Columns>

            <FooterStyle BackColor="#CCCCCC" />

            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />

            <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />

            <RowStyle BackColor="White" HorizontalAlign="Center" />

            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />

            <SortedAscendingCellStyle BackColor="#F1F1F1" />

            <SortedAscendingHeaderStyle BackColor="#808080" />

            <SortedDescendingCellStyle BackColor="#CAC9C9" />

            <SortedDescendingHeaderStyle BackColor="#383838" />

        </asp:GridView>--%>

 

 

        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="#CCCCCC" BorderColor="#999999"

    BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" ForeColor="Black" Height="144px"

    Width="797px" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"

    HorizontalAlign="Center">

    <Columns>

        <asp:BoundField DataField="BookName" HeaderText="Books Name" />

        <asp:BoundField DataField="Author" HeaderText="AutherName" />

        <asp:BoundField DataField="Price" HeaderText="Price of Book" />

        <asp:BoundField DataField="Branch" HeaderText="Branch Name" />

        <asp:BoundField DataField="Quantities" HeaderText="Quantity Available" />

        <asp:TemplateField HeaderText="Select">

            <ItemTemplate>

                <asp:CheckBox ID="chkSelect" runat="server" CssClass="bookCheckbox" onclick="return checkLimit(this);" />

                <asp:HiddenField ID="hfBookID" runat="server" Value='<%# Eval("BookID"%>' />

                <asp:HiddenField ID="hfPublicationYear" runat="server" Value='<%# Eval("PublicationYear"%>' />

            </ItemTemplate>

        </asp:TemplateField>

    </Columns>

    <FooterStyle BackColor="#CCCCCC" />

    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />

    <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />

    <RowStyle BackColor="White" HorizontalAlign="Center" />

    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />

    <SortedAscendingCellStyle BackColor="#F1F1F1" />

    <SortedAscendingHeaderStyle BackColor="#808080" />

    <SortedDescendingCellStyle BackColor="#CAC9C9" />

    <SortedDescendingHeaderStyle BackColor="#383838" />

</asp:GridView>

 

 

 

    </div>

    <div>

 

    </div>

        <div>

 

            <table class="auto-style17">

                <tr>

                    <td>&nbsp;</td>

                    <td>&nbsp;</td>

                    <td class="auto-style21">&nbsp;</td>

                    <td class="auto-style18">

                        <asp:Button ID="btnIssueBook" runat="server" BackColor="#33CC33" Height="30px" OnClick="btnIssueBook_Click" Text="ISSUE BOOKS" Width="125px" />

                    </td>

                    <td class="auto-style19">

                        <asp:Button ID="btnClearSelection" runat="server" BackColor="Fuchsia" Height="30px" OnClick="btnClearSelection_Click" Text="CLEAR SELECTION" Width="129px" />

                    </td>

                    <td class="auto-style20">&nbsp;</td>

                    <td>&nbsp;</td>

                    <td>&nbsp;</td>

                </tr>

                <tr>

                    <td>&nbsp;</td>

                    <td>&nbsp;</td>

                    <td class="auto-style21">&nbsp;</td>

                    <td class="auto-style18">&nbsp;</td>

                    <td class="auto-style19">&nbsp;</td>

                    <td class="auto-style20">&nbsp;</td>

                    <td>&nbsp;</td>

                    <td>&nbsp;</td>

                </tr>

            </table>

 

    </div>

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data;

using System.Data.SqlClient;

using System.IO;

 

public partial class frmBookReport : System.Web.UI.Page

{

    ClsBook ObjBook = new ClsBook();

    ClsConnectionString Conect = new ClsConnectionString();

 

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!IsPostBack)

        {

            Gridfill();

        }

    }

 

    public void Gridfill()

    {

        SqlDataAdapter ad = new SqlDataAdapter("BOOK_SELECT", Conect.CS);

        DataSet ds = new DataSet();

        ad.Fill(ds);

        GridView1.DataSource = ds;

        GridView1.DataBind();

    }

 

    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)

    {

        GridView1.PageIndex = e.NewPageIndex;

        Gridfill();

    }

 

    protected void btnIssueBook_Click(object sender, EventArgs e)

    {

        try

        {

            int studentID = int.Parse(Session["STUDSID"].ToString());

            string studentName = Session["STUDUSERNAME"].ToString();

 

            ClsBook bookHelper = new ClsBook();

 

            foreach (GridViewRow row in GridView1.Rows)

            {

                CheckBox chk = (CheckBox)row.FindControl("chkSelect");

                if (chk != null && chk.Checked)

                {

                    string bookName = row.Cells[0].Text;

                    string author = row.Cells[1].Text;

                    int price = Convert.ToInt32(row.Cells[2].Text);

 

                    HiddenField hfBookID = (HiddenField)row.FindControl("hfBookID");

                    HiddenField hfPublicationYear = (HiddenField)row.FindControl("hfPublicationYear");

 

                    int bookID = int.Parse(hfBookID.Value);

                    int publicationYear = int.Parse(hfPublicationYear.Value);

 

                    //  Check if already issued

                    bool hasIssued = bookHelper.HasStudentIssuedBook(studentID, bookID);

                    if (hasIssued)

                    {

                        Response.Write("<script>alert('You already issued the book: " + bookName + ". Please return it first.');</script>");

                        continue// Skip to the next book

                    }

                    else

                    {

                        //  Check stock

                        int quantityRemain = bookHelper.GetBookQuantity(bookID);

                        if (quantityRemain <= 0)

                        {

                            Response.Write("<script>alert('Book out of stock: " + bookName + "');</script>");

                            continue;

                        }

 

                        //  Create issue record

                        ClsBook issueBook = new ClsBook

                        {

                            StudentID = studentID,

                            StudentName = studentName,

                            BookName = bookName,

                            Author = author,

                            Price = price,

                            Detail = "NA",

                            PublicationYear = publicationYear.ToString(),

                            QuantityRemain = quantityRemain - 1,

                            BookID = bookID,

                            IssueDate = DateTime.Today,

                            ReturnDate = DateTime.Today.AddDays(30)

                        };

                        issueBook.IssueBooksbyStudent();

                        issueBook.UpdateBookQuantity(bookID, quantityRemain - 1);

                        Response.Write("<script>alert('Books issued successfully!');</script>");

                        clearCheckBoxes();

 

                        /*

                        ClsBook issueBook = new ClsBook();

                        issueBook.studentID = studentID;

                        issueBook.studentName = studentName;

                        issueBook.bookname = bookName;

                        issueBook.author = author;

                        issueBook.price = price;

                        issueBook.detail = "NA";

                        issueBook.publicationyear = publicationYear.ToString();

                        issueBook.quantityRemain = quantityRemain - 1;

                        issueBook.bookID = bookID;

                        issueBook.issueDate = DateTime.Today;

                        issueBook.returnDate = DateTime.Today.AddDays(30);

                        issueBook.IssueBookByStudent();

                        issueBook.UpdateBookQuantity(bookID, quantityRemain - 1);

                        Response.Write("<script>alert('Book issued successfully!')</script>");

                        clearCheckBoxes();    

                        */

                    }

                }

            }

        }

        catch (Exception ex)

        {

            Response.Write("<script>alert('Error: " + ex.Message + "');</script>");

        }

    }

 

    protected void btnClearSelection_Click(object sender, EventArgs e)

    {

        foreach (GridViewRow row in GridView1.Rows)

        {

            CheckBox chk = (CheckBox)row.FindControl("chkSelect");

            if (chk != null)

            {

                chk.Checked = false;

            }

        }

    }

 

 

    public void clearCheckBoxes()

    {

 

        foreach (GridViewRow row in GridView1.Rows)

        {

            CheckBox chk = (CheckBox)row.FindControl("chkSelect");

            if (chk != null)

            {

                chk.Checked = false;

            }

 

        }

    }

 

 

 

 

 

}

 

 

frmViewStudentSyllabus.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/Student/Student.master" AutoEventWireup="true" CodeFile="frmStudentViewSyllabus.aspx.cs" Inherits="frmUploadSyllabusCourse" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <style type="text/css">

        .auto-style17 {

            width100%;

        }

        .auto-style18 {

            width152px;

        }

        .auto-style21 {

            width181px;

        }

    </style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div>

         <h1 style="text-align:center" class="auto-style30"> VIEW/DONLOWD SYLLABUS </h1>

    </div>

    <div>

 

        <table class="auto-style17">

            <tr>

                <td class="auto-style18">&nbsp;</td>

                <td class="auto-style21">&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

            <tr>

                <td class="auto-style18">

                    &nbsp;</td>

                <td class="auto-style21">&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

        </table>

 

    </div>

    <div>

 

        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" Height="128px" Width="795px" OnRowDataBound="GridView1_RowDataBound">

            <Columns>

                <asp:BoundField DataField="SYID" HeaderText="Syllabus ID" />

                <asp:BoundField DataField="Subject" HeaderText="Subject Name" />

                <asp:BoundField DataField="Course" HeaderText="Course Name" />

                <asp:BoundField DataField="EntryDate" HeaderText="Etry Date" DataFormatString="{0:dd-MMM-yyyy}"  />

                <asp:BoundField DataField="Downloadlnk" HeaderText="File Name" />

                <asp:TemplateField HeaderText="Download File">

                    <ItemTemplate>

                        <a href='<%# ResolveUrl("~/Syllabus/" + HttpUtility.UrlEncode(System.IO.Path.GetFileName(Eval("Downloadlnk").ToString()))) %>' target="_blank" download> Download

                        </a>

                    </ItemTemplate>

                </asp:TemplateField>

            </Columns>

            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />

            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />

            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />

            <RowStyle BackColor="White" ForeColor="#003399" />

            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />

            <SortedAscendingCellStyle BackColor="#EDF6F6" />

            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />

            <SortedDescendingCellStyle BackColor="#D6DFDF" />

            <SortedDescendingHeaderStyle BackColor="#002876" />

        </asp:GridView>

 

    </div>

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.IO;

using System.Data;

using System.Data.SqlClient;

 

public partial class frmUploadSyllabusCourse : System.Web.UI.Page

{

    ClsConnectionString Conect = new ClsConnectionString();

    ClsAdminLogic ObjAdmin = new ClsAdminLogic();

 

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!IsPostBack)

        {

            BindGrid();

        }

 

    }

 

    public void BindGrid()

    {

        SqlDataAdapter ad = new SqlDataAdapter("SYLLABUS_SELECT", Conect.CS);

        DataSet ds = new DataSet();

        ad.Fill(ds);

        GridView1.DataSource = ds;

        GridView1.DataBind();

 

    }

 

    

 

    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)

    {

        if (e.Row.RowType == DataControlRowType.DataRow)

        {

            string fileName = DataBinder.Eval(e.Row.DataItem, "Downloadlnk").ToString();

            string justFileName = Path.GetFileName(fileName); 

            string fullPath = Server.MapPath("~/Syllabus/" + justFileName);

 

            if (!File.Exists(fullPath))

            {

                e.Row.Cells[5].Text = "File not found";

            }

        }

    }

 

}

 

 

frmStudentMembershipDetails.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/Student/Student.master" AutoEventWireup="true" CodeFile="frmStudentMembershipDetails.aspx.cs" Inherits="Student_frmStudentMembershipDetails" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <style type="text/css">

        .auto-style17 {

            width100%;

        }

    </style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <div>

        <br />

        <h1 style="text-align: center" class="auto-style30">Membership Details </h1>

    </div>

    <div>

 

 

        <table class="auto-style17">

            <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

            </tr>

        </table>

 

 

    </div>

    <div>

 

        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" ForeColor="Black" Height="135px" Width="799px">

            <Columns>

                <asp:BoundField DataField="FirstName" HeaderText="Student Name" />

                <asp:BoundField DataField="LastName" HeaderText="Last Name" />

                <asp:BoundField DataField="FathersName" HeaderText="Father's Name" />

                <asp:BoundField DataField="EntryDate" HeaderText="Membership Entry Date" DataFormatString="{0:dd-MMM-yyyy}" />

                <asp:BoundField DataField="ExpiryDate" HeaderText="Expiry Date" DataFormatString="{0:dd-MMM-yyyy}" />

                <asp:TemplateField HeaderText="Remaining Days">

                    <ItemTemplate>

                        <%# CalculateRemainingDays(Eval("EntryDate"), Eval("ExpiryDate")) %>

                    </ItemTemplate>

                </asp:TemplateField>

            </Columns>

            <FooterStyle BackColor="#CCCCCC" />

            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />

            <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />

            <RowStyle BackColor="White" />

            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />

            <SortedAscendingCellStyle BackColor="#F1F1F1" />

            <SortedAscendingHeaderStyle BackColor="#808080" />

            <SortedDescendingCellStyle BackColor="#CAC9C9" />

            <SortedDescendingHeaderStyle BackColor="#383838" />

        </asp:GridView>

 

    </div>

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data;

using System.Data.SqlClient;

 

public partial class Student_frmStudentMembershipDetails : System.Web.UI.Page

{

    ClsConnectionString Conect = new ClsConnectionString();

    ClsStudentLogic ObjStudent = new ClsStudentLogic();

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!IsPostBack)

        {

            GridFill();

        }

    }

    public void GridFill()

    {

        int StudentMembership;

        StudentMembership = int.Parse(Session["STUDSID"].ToString());

        ObjStudent.sSID = StudentMembership;

        ObjStudent.ViewMembershipByID(StudentMembership);

        DataSet ds = ObjStudent.ViewMembershipByID(StudentMembership);

        GridView1.DataSource = ds;

        GridView1.DataBind();

    }

 

    public string CalculateRemainingDays(object entryDateObj, object expiryDateObj)

    {

        if (entryDateObj == DBNull.Value || expiryDateObj == DBNull.Value)

            return "N/A";

 

        DateTime entryDate = Convert.ToDateTime(entryDateObj);

        DateTime expiryDate = Convert.ToDateTime(expiryDateObj);

 

        TimeSpan remaining = expiryDate - entryDate;

        return remaining.Days.ToString() + " days";

    }

 

 

 

 

}

 

frmReturnPolicyStudent.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/Student/Student.master" AutoEventWireup="true" CodeFile="frmReturnPolicyStudent.aspx.cs" Inherits="Student_frmReturnPolicyStudent" %>

 

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

      <br />

        <h1 style="text-align:center" class="auto-style13">Return Policy </h1>

            <br />

     <br />

     <br />

 

    <div>

<%--    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>--%>

           <!-- Accordion Control -->

    <ajaxToolkit:Accordion ID="Accordion1" runat="server"

        HeaderCssClass="accordionHeader"

        ContentCssClass="accordionContent"

        FadeTransitions="true"

        FramesPerSecond="40"

        TransitionDuration="250"

        RequireOpenedPane="false"

        SuppressHeaderPostbacks="true">

 

        <Panes>

            <ajaxToolkit:AccordionPane ID="Pane1" runat="server">

                <Header>Return Policy</Header>

                <Content>

                    <p>

                       Books must be returned within 30 days otherwise 300 Rupees per day will be charged and membership will be cancelled.

                    </p>

                </Content>

            </ajaxToolkit:AccordionPane>

 

            <ajaxToolkit:AccordionPane ID="Pane2" runat="server">

                <Header>Penalty</Header>

                <Content>

                    <p>

                       Students are adviced to return books in 30 days and they can issue 3 books per month per session.

                    </p>

                </Content>

            </ajaxToolkit:AccordionPane>

            <ajaxToolkit:AccordionPane ID="Pane3" runat="server">

                <Header>Session</Header>

                <Content>

                    <p>

                       onece the session is over students are requested to return the books withing the stipulated time.

                    </p>

                </Content>

            </ajaxToolkit:AccordionPane>

                        <ajaxToolkit:AccordionPane ID="Pane4" runat="server">

                <Header>Membership Expiry</Header>

                <Content>

                    <p>

                     After 30 days the membership will automatically expire and student will get the update via email.

                    </p>

                </Content>

            </ajaxToolkit:AccordionPane>

        </Panes>

    </ajaxToolkit:Accordion>

 

    <!-- Optional styling -->

    <style>

        .accordionHeader {

            background-color#007bff;

            colorwhite;

            font-weightbold;

            padding10px;

            cursorpointer;

        }

 

        .accordionContent {

            background-color#f9f9f9;

            padding15px;

            font-size14px;

        }

    </style>

 

    </div>

 

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

 

public partial class Student_frmReturnPolicyStudent : System.Web.UI.Page

{

    protected void Page_Load(object sender, EventArgs e)

    {

 

    }

}

 

 

frmStudentPenalityStatus.aspx

 

<%@ Page Title="" Language="C#" MasterPageFile="~/Student/Student.master" AutoEventWireup="true" CodeFile="frmStudentPenalityStatus.aspx.cs" Inherits="Student_frmStudentPenalityStatus" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <div>

        <h1 style="text-align: center" class="auto-style30">PENALITY REPORT </h1>

    </div>

    <br />

    <div>

 

        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" Height="122px" Width="797px" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" CellSpacing="1" GridLines="None" OnRowDataBound="GridView1_RowDataBound">

            <Columns>

                <asp:BoundField DataField="StudentID" HeaderText="Student ID" />

                <asp:BoundField DataField="StudentName" HeaderText="Student Name" />

                <asp:BoundField DataField="BookName" HeaderText="Book Name" />

                <asp:BoundField DataField="Price" HeaderText="Book Price" />

                <asp:BoundField DataField="IssueDate" HeaderText="Book Issue Data" DataFormatString="{0:dd-MMM-yyyy}" />

                <asp:BoundField DataField="ReturnDate" HeaderText="Return Date" DataFormatString="{0:dd-MMM-yyyy}" />

                <asp:TemplateField HeaderText="Penality Status">

                    <ItemTemplate>

                        <asp:Label ID="lblPenalityStatus" runat="server" Text="Label"></asp:Label>

                    </ItemTemplate>

                </asp:TemplateField>

            </Columns>

            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />

            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />

            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />

            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />

            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />

            <SortedAscendingCellStyle BackColor="#F1F1F1" />

            <SortedAscendingHeaderStyle BackColor="#594B9C" />

            <SortedDescendingCellStyle BackColor="#CAC9C9" />

            <SortedDescendingHeaderStyle BackColor="#33276A" />

        </asp:GridView>

 

    </div>

</asp:Content>

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data;

using System.Data.SqlClient;

 

 

public partial class Student_frmStudentPenalityStatus : System.Web.UI.Page

{

    ClsStudentLogic ObjStudent = new ClsStudentLogic();

    ClsConnectionString Connect = new ClsConnectionString();

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!IsPostBack)

        {

            GridFill();

        }

 

    }

 

    public void GridFill()

    {

        int StudentMembership;

        StudentMembership = int.Parse(Session["STUDSID"].ToString());

        ObjStudent.sSID = StudentMembership;

        ObjStudent.ViewPenalityStatusByStudentID(StudentMembership);

        DataSet ds = ObjStudent.ViewPenalityStatusByStudentID(StudentMembership);

        GridView1.DataSource = ds;

        GridView1.DataBind();

    }

 

    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)

    {

        GridView1.PageIndex = e.NewPageIndex;

        GridFill();

    }

 

    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)

    {

        if (e.Row.RowType == DataControlRowType.DataRow)

        {

 

            DateTime issueDate = Convert.ToDateTime(DataBinder.Eval(e.Row.DataItem, "IssueDate"));

            DateTime returnDate = Convert.ToDateTime(DataBinder.Eval(e.Row.DataItem, "ReturnDate"));

            Label lblPenalty = (Label)e.Row.FindControl("lblPenalityStatus");

            TimeSpan diff = returnDate - issueDate;

 

            if (diff.TotalDays > 30)

            {

                lblPenalty.Text = "₹500 Fine";

                lblPenalty.ForeColor = System.Drawing.Color.Red;

            }

            else

            {

                lblPenalty.Text = "Period not over";

                lblPenalty.ForeColor = System.Drawing.Color.Green;

            }

        }

    }

}

 

 

Ajax Extentions + Ajax ToolKit

SQL Server 2019 

 

 

 

 

/****** Object:  Database [LIBRA_LIB]    Script Date: 4/30/2025 1:36:41 AM ******/

CREATE DATABASE [LIBRA_LIB]

 CONTAINMENT = NONE

 ON  PRIMARY

( NAME = N'LIBRA_LIB', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\LIBRA_LIB.mdf' , SIZE = 8384KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )

 LOG ON

( NAME = N'LIBRA_LIB_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\LIBRA_LIB_log.ldf' , SIZE = 3200KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)

GO

ALTER DATABASE [LIBRA_LIB] SET COMPATIBILITY_LEVEL = 120

GO

IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))

begin

EXEC [LIBRA_LIB].[dbo].[sp_fulltext_database] @action = 'enable'

end

GO

ALTER DATABASE [LIBRA_LIB] SET ANSI_NULL_DEFAULT OFF

GO

ALTER DATABASE [LIBRA_LIB] SET ANSI_NULLS OFF

GO

ALTER DATABASE [LIBRA_LIB] SET ANSI_PADDING OFF

GO

ALTER DATABASE [LIBRA_LIB] SET ANSI_WARNINGS OFF

GO

ALTER DATABASE [LIBRA_LIB] SET ARITHABORT OFF

GO

ALTER DATABASE [LIBRA_LIB] SET AUTO_CLOSE OFF

GO

ALTER DATABASE [LIBRA_LIB] SET AUTO_SHRINK OFF

GO

ALTER DATABASE [LIBRA_LIB] SET AUTO_UPDATE_STATISTICS ON

GO

ALTER DATABASE [LIBRA_LIB] SET CURSOR_CLOSE_ON_COMMIT OFF

GO

ALTER DATABASE [LIBRA_LIB] SET CURSOR_DEFAULT  GLOBAL

GO

ALTER DATABASE [LIBRA_LIB] SET CONCAT_NULL_YIELDS_NULL OFF

GO

ALTER DATABASE [LIBRA_LIB] SET NUMERIC_ROUNDABORT OFF

GO

ALTER DATABASE [LIBRA_LIB] SET QUOTED_IDENTIFIER OFF

GO

ALTER DATABASE [LIBRA_LIB] SET RECURSIVE_TRIGGERS OFF

GO

ALTER DATABASE [LIBRA_LIB] SET  DISABLE_BROKER

GO

ALTER DATABASE [LIBRA_LIB] SET AUTO_UPDATE_STATISTICS_ASYNC OFF

GO

ALTER DATABASE [LIBRA_LIB] SET DATE_CORRELATION_OPTIMIZATION OFF

GO

ALTER DATABASE [LIBRA_LIB] SET TRUSTWORTHY OFF

GO

ALTER DATABASE [LIBRA_LIB] SET ALLOW_SNAPSHOT_ISOLATION OFF

GO

ALTER DATABASE [LIBRA_LIB] SET PARAMETERIZATION SIMPLE

GO

ALTER DATABASE [LIBRA_LIB] SET READ_COMMITTED_SNAPSHOT OFF

GO

ALTER DATABASE [LIBRA_LIB] SET HONOR_BROKER_PRIORITY OFF

GO

ALTER DATABASE [LIBRA_LIB] SET RECOVERY FULL

GO

ALTER DATABASE [LIBRA_LIB] SET  MULTI_USER

GO

ALTER DATABASE [LIBRA_LIB] SET PAGE_VERIFY CHECKSUM 

GO

ALTER DATABASE [LIBRA_LIB] SET DB_CHAINING OFF

GO

ALTER DATABASE [LIBRA_LIB] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF )

GO

ALTER DATABASE [LIBRA_LIB] SET TARGET_RECOVERY_TIME = 0 SECONDS

GO

ALTER DATABASE [LIBRA_LIB] SET DELAYED_DURABILITY = DISABLED

GO

EXEC sys.sp_db_vardecimal_storage_format N'LIBRA_LIB', N'ON'

GO

USE [LIBRA_LIB]

GO

/****** Object:  Table [dbo].[ADMIN_MASTER_TABLE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE TABLE [dbo].[ADMIN_MASTER_TABLE](

       [aid] [int] IDENTITY(1,1) NOT NULL,

       [Name] [nvarchar](256) NULL,

       [UserName] [nvarchar](256) NULL,

       [Password] [nvarchar](256) NULL,

       [EntryDate] [datetime] NULL,

PRIMARY KEY CLUSTERED

(

       [aid] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]

GO

/****** Object:  Table [dbo].[BOOK_MASTER_TABLE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE TABLE [dbo].[BOOK_MASTER_TABLE](

       [BookID] [int] IDENTITY(1,1) NOT NULL,

       [BookName] [nvarchar](256) NULL,

       [Author] [nvarchar](256) NULL,

       [Detail] [nvarchar](256) NULL,

       [Price] [float] NULL,

       [PublicationYear] [nvarchar](256) NULL,

       [Branch] [nvarchar](256) NULL,

       [Quantities] [int] NULL,

       [CopyRight] [nvarchar](50) NULL,

       [RentQnt] [int] NULL,

       [BookImages] [nvarchar](max) NULL,

       [pdf] [nvarchar](max) NULL,

       [EntryDate] [datetime] NULL,

 CONSTRAINT [PK__BOOK_MAS__3DE0C22733C20893] PRIMARY KEY CLUSTERED

(

       [BookID] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

/****** Object:  Table [dbo].[BRANCH_MASTER_TABLE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE TABLE [dbo].[BRANCH_MASTER_TABLE](

       [BranchID] [int] IDENTITY(1,1) NOT NULL,

       [BranchName] [nvarchar](256) NULL,

       [Subject] [nvarchar](256) NULL,

       [EntryDate] [datetime] NULL,

 CONSTRAINT [PK__BRANCH_M__A1682FA5B85BE566] PRIMARY KEY CLUSTERED

(

       [BranchID] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]

GO

/****** Object:  Table [dbo].[COMPLAINT_MASTER_TABLE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE TABLE [dbo].[COMPLAINT_MASTER_TABLE](

       [CmpID] [int] IDENTITY(1,1) NOT NULL,

       [Student_ID] [int] NULL,

       [StudentName] [nvarchar](50) NULL,

       [EntryDate] [date] NULL,

       [Subject] [nvarchar](50) NULL,

       [Messge] [nvarchar](500) NULL,

       [ActionTaken] [nchar](50) NULL

) ON [PRIMARY]

GO

/****** Object:  Table [dbo].[ISSUE_BOOK_MASTER_TABLE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE TABLE [dbo].[ISSUE_BOOK_MASTER_TABLE](

       [BID] [int] IDENTITY(1,1) NOT NULL,

       [StudentID] [int] NULL,

       [StudentName] [nvarchar](50) NULL,

       [BookName] [nvarchar](50) NULL,

       [Author] [nvarchar](50) NULL,

       [Price] [int] NULL,

       [Details] [nvarchar](500) NULL,

       [PublicationYear] [nvarchar](50) NULL,

       [QuantityRemain] [int] NULL,

       [IssueDate] [date] NULL,

       [ReturnDate] [date] NULL,

       [BookID] [int] NULL

) ON [PRIMARY]

GO

/****** Object:  Table [dbo].[PENALITY_MASTER_TABLE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE TABLE [dbo].[PENALITY_MASTER_TABLE](

       [PID] [int] IDENTITY(1,1) NOT NULL,

       [SID] [int] NULL,

       [BookName] [nvarchar](256) NULL,

       [Price] [numeric](18, 0) NULL,

       [Panalty] [numeric](18, 0) NULL,

       [Detail] [nvarchar](500) NULL,

       [EntryDate] [datetime] NULL,

PRIMARY KEY CLUSTERED

(

       [PID] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]

GO

/****** Object:  Table [dbo].[PUBLICATION_MASTER_TABLE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE TABLE [dbo].[PUBLICATION_MASTER_TABLE](

       [PID] [int] IDENTITY(1,1) NOT NULL,

       [Publication] [nvarchar](256) NULL,

       [PublicationYear] [int] NULL,

       [EntryDate] [datetime] NULL,

 CONSTRAINT [PK__PUBLICAT__C5775520FEECC2C2] PRIMARY KEY CLUSTERED

(

       [PID] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]

GO

/****** Object:  Table [dbo].[RENT_MASTER_TABLE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE TABLE [dbo].[RENT_MASTER_TABLE](

       [RID] [int] IDENTITY(1,1) NOT NULL,

       [Status] [int] NULL,

       [ReturnDate] [datetime] NULL,

       [BookName] [nvarchar](256) NULL,

       [SID] [int] NULL,

PRIMARY KEY CLUSTERED

(

       [RID] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]

GO

/****** Object:  Table [dbo].[STUDENT_MASTER_TABLE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE TABLE [dbo].[STUDENT_MASTER_TABLE](

       [SID] [int] IDENTITY(1,1) NOT NULL,

       [FirstName] [nvarchar](256) NULL,

       [MiddleName] [nvarchar](500) NULL,

       [LastName] [nvarchar](500) NULL,

       [FathersName] [nvarchar](500) NULL,

       [MothersName] [nvarchar](500) NULL,

       [DOB] [datetime] NULL,

       [IDCardNo] [nvarchar](500) NULL,

       [Institute] [nvarchar](500) NULL,

       [Image] [nvarchar](500) NULL,

       [ContactNo] [nvarchar](256) NULL,

       [Email] [nvarchar](256) NULL,

       [Password] [nvarchar](256) NULL,

       [LocalAddress] [nvarchar](256) NULL,

       [PermanentAddress] [nvarchar](500) NULL,

       [City] [nvarchar](256) NULL,

       [Pincode] [nvarchar](256) NULL,

       [BranchName] [nvarchar](256) NULL,

       [Gender] [nvarchar](256) NULL,

       [EntryDate] [datetime] NULL,

       [ExpiryDate] [datetime] NULL,

 CONSTRAINT [PK__STUDENT___CA1959706032469B] PRIMARY KEY CLUSTERED

(

       [SID] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]

GO

/****** Object:  Table [dbo].[SYLLABUS_MASTER_TABLE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE TABLE [dbo].[SYLLABUS_MASTER_TABLE](

       [SYID] [int] IDENTITY(1,1) NOT NULL,

       [Subject] [nvarchar](50) NULL,

       [Course] [nvarchar](50) NULL,

       [Downloadlnk] [nvarchar](500) NULL,

       [EntryDate] [date] NULL

) ON [PRIMARY]

GO

SET IDENTITY_INSERT [dbo].[ADMIN_MASTER_TABLE] ON

 

INSERT [dbo].[ADMIN_MASTER_TABLE] ([aid], [Name], [UserName], [Password], [EntryDate]) VALUES (1, N'Admin', N'Admin', N'admin123123', CAST(N'2015-02-12T00:00:00.000' AS DateTime))

INSERT [dbo].[ADMIN_MASTER_TABLE] ([aid], [Name], [UserName], [Password], [EntryDate]) VALUES (2, N'Savita', N'Savita', N'123456789', CAST(N'2016-08-08T00:00:00.000' AS DateTime))

INSERT [dbo].[ADMIN_MASTER_TABLE] ([aid], [Name], [UserName], [Password], [EntryDate]) VALUES (3, N'Dinesh', N'Dinesh', N'db@12345', CAST(N'2019-10-07T00:00:00.000' AS DateTime))

INSERT [dbo].[ADMIN_MASTER_TABLE] ([aid], [Name], [UserName], [Password], [EntryDate]) VALUES (4, N'Jatin', N'Jatin', N'slate222', CAST(N'2009-12-06T00:00:00.000' AS DateTime))

SET IDENTITY_INSERT [dbo].[ADMIN_MASTER_TABLE] OFF

GO

SET IDENTITY_INSERT [dbo].[BOOK_MASTER_TABLE] ON

 

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (1, N'Core Java 2.2', N'R.C Stine', N'Core Java book available on demand', 544, N'2012', N'ME', 16, N'No', NULL, N'~/Book/Cover2.jpg', NULL, CAST(N'2020-02-27T14:13:46.000' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (2, N'Spy Hunter', N'J.C McDonand', N'About spy theory and the way they find the clues total description on the book', 233, N'2011', N'BOT', 10, N'Yes', NULL, N'~/Book/Cover3.jpg', NULL, CAST(N'2020-02-27T14:21:52.000' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (3, N'Alokit Shaktiya', N'Manish Gopalan', N'Alokik shaktiya, this book deals with the supernatural powers and how to get the.', 751, N'1981', N'PHY', 2, N'Yes', NULL, N'~/Book/Cover4.jpg', NULL, CAST(N'2020-02-27T14:39:10.000' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (4, N'Adult Research', N'J.Chand', N'Adult researh and their reserch is a book about how adults and their ac', 543, N'2003', N'PHY', 3, N'No', NULL, N'~/Book/Cover5.jpg', NULL, CAST(N'2020-02-27T14:41:18.000' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (5, N'Sahwas', N'J.R Churani', N'This book deals with adultry and pornography and how to overcome to it', 233, N'1983', N'BOT', 44, N'No', NULL, N'~/Book/Cover6.jpg', NULL, CAST(N'2020-02-27T14:43:47.000' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (6, N'Botanical Guide', N'K. Moolchand', N'Book deals with the various aspects of botanical fundamentals', 200, N'2008', N'BOT', 19, N'Yes', NULL, N'~/Book/Cover7.jpg', NULL, CAST(N'2020-02-27T14:45:52.000' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (7, N'English Language', N'C.P. Gurnani', N'English litrature and varios aspacts based on latest design and devaloment stratagies', 250, N'1980', N'ENG', 46, N'No', NULL, N'~/Book/Cover8.jpg', NULL, CAST(N'2020-02-27T14:49:54.000' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (8, N'Sahitya Acadmy', N'Makhanlal Chaturvedi', N'Sahitya Acadmy books describes various aspects of Hindi literatur and modern impact on it.', 123, N'2009', N'BOT', 11, N'Yes', NULL, N'~/Book/Cover9.jpg', NULL, CAST(N'2020-02-27T14:52:30.000' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (9, N'Hindi Dramma', N'LL Mehta', N'Hindi drama and academy', 350, N'2013', N'ME', 29, N'Yes', NULL, N'~/Book/Cover10.jpg', NULL, CAST(N'2020-02-27T14:56:46.000' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (10, N'Godan', N'Munshi Prem chand', N'A noval by Munshi Premchand which was written about Indian society and Indian tradiation', 230, N'1992', N'OTH', 12, N'Yes', NULL, N'~/Book/Cover11.jpg', NULL, CAST(N'2020-02-27T15:13:32.000' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (11, N'Microbiology', N'Anil Kumar ', N'New book added in library', 570, N'2015', N'c#', 2, N'Yes', NULL, N'~/Book/Cover12.jpg', NULL, CAST(N'2025-03-20T15:22:10.980' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (12, N'Success Secret', N'Manjusha Minj', N'Book is available with coverpage', 573, N'2012', N'c#', 5, N'Yes', NULL, N'~/Book/Cover13.jpg', NULL, CAST(N'2025-03-31T00:27:25.367' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (13, N'Mayami Tour', N'Anil Kumar', N'gfgfdg', 200, N'2015', N'HIN', 5, N'Yes', NULL, N'~/Book/Cover14.jpg', NULL, CAST(N'2025-03-31T01:10:52.000' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (14, N'fdsfds', N'Manjusha Minj', N'fdsdfdsf', 570, N'2000', N'asp.net', 5, N'Yes', NULL, N'~/Book/Cover15.jpg', NULL, CAST(N'2025-03-31T01:27:10.373' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (15, N'Soul mate', N'Adam Donald', N'New book', 260, N'2011', N'HIN', 3, N'Yes', NULL, N'~/Book/Cover16.jpg', NULL, CAST(N'2025-03-31T01:47:30.340' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (16, N'Business Studies', N'Sunil Pradhan', N'Book recently added in stock', 230, N'2011', N'ECO', 5, N'Yes', NULL, N'~/Book/Cover17.jpg', NULL, CAST(N'2025-03-31T14:44:54.037' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (17, N'The way scucess', N'Denova Maldov', N'Recently added in stock', 784, N'2015', N'Other', 40, N'Yes', NULL, N'~/Book/the way success.jpg', NULL, CAST(N'2025-03-31T14:47:11.660' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (18, N'Breaking Engineering', N'Muthra', N'New addes', 250, N'2015', N'Other', 30, N'No', NULL, N'~/Book/Cover1.jpg', NULL, CAST(N'2025-04-05T18:49:12.800' AS DateTime))

INSERT [dbo].[BOOK_MASTER_TABLE] ([BookID], [BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [RentQnt], [BookImages], [pdf], [EntryDate]) VALUES (19, N'Microsoft Excel', N'Bill Gates', N'Microsoft Excel book', 250, N'2022', N'Other', 30, N'Yes', NULL, N'~/Book/micobooks.jpg', NULL, CAST(N'2025-04-29T01:34:35.020' AS DateTime))

SET IDENTITY_INSERT [dbo].[BOOK_MASTER_TABLE] OFF

GO

SET IDENTITY_INSERT [dbo].[BRANCH_MASTER_TABLE] ON

 

INSERT [dbo].[BRANCH_MASTER_TABLE] ([BranchID], [BranchName], [Subject], [EntryDate]) VALUES (7, N'CHEM', N'Chemical Engineering', CAST(N'2020-02-27T15:00:20.000' AS DateTime))

INSERT [dbo].[BRANCH_MASTER_TABLE] ([BranchID], [BranchName], [Subject], [EntryDate]) VALUES (9, N'HIN', N'Hindi', CAST(N'2020-03-02T02:17:01.000' AS DateTime))

INSERT [dbo].[BRANCH_MASTER_TABLE] ([BranchID], [BranchName], [Subject], [EntryDate]) VALUES (13, N'ECO', N'Economics', CAST(N'2020-03-02T02:28:36.000' AS DateTime))

INSERT [dbo].[BRANCH_MASTER_TABLE] ([BranchID], [BranchName], [Subject], [EntryDate]) VALUES (1023, N'ME', N'MECHENICAL', CAST(N'2020-03-14T21:42:25.000' AS DateTime))

INSERT [dbo].[BRANCH_MASTER_TABLE] ([BranchID], [BranchName], [Subject], [EntryDate]) VALUES (2026, N'ZOO', N'Zoology', CAST(N'2025-03-30T22:08:01.763' AS DateTime))

INSERT [dbo].[BRANCH_MASTER_TABLE] ([BranchID], [BranchName], [Subject], [EntryDate]) VALUES (2027, N'Other', N'OTH', CAST(N'2025-03-30T22:11:27.000' AS DateTime))

SET IDENTITY_INSERT [dbo].[BRANCH_MASTER_TABLE] OFF

GO

SET IDENTITY_INSERT [dbo].[COMPLAINT_MASTER_TABLE] ON

 

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (1, 3066, N'SHUBHAM ', CAST(N'2025-04-20' AS Date), N'Suggetion', N'Hi Admin, I wan to tell that I have already paid all the fee', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (2, 3044, N'Seema', CAST(N'2025-04-03' AS Date), N'Suggestion', N'It would be great if the library offered a mobile app for easier access.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (3, 3024, N'Islam ', CAST(N'2025-03-21' AS Date), N'Complaint', N'The website is very slow and sometimes takes forever to load books.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (4, 3068, N'Ramesh', CAST(N'2025-03-29' AS Date), N'Feedback', N'I really appreciate how easy it is to find books by category.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (5, 3044, N'Seema', CAST(N'2025-03-04' AS Date), N'Suggestion', N'Adding more advanced search filters would help me find books faster.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (6, 3038, N'Sagar', CAST(N'2025-04-16' AS Date), N'Complaint', N'The e-books available are often poorly formatted, which makes them hard to read.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (7, 3022, N'Prashant', CAST(N'2025-03-11' AS Date), N'Feedback', N'Customer support has been very responsive and helpful, which I appreciate.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (8, 3066, N'SHUBHAM ', CAST(N'2025-04-06' AS Date), N'Suggestion', N'It would be great if there was a feature to mark books as "favorites."', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (9, 3046, N'Gurdeep', CAST(N'2025-04-12' AS Date), N'Complaint', N'I’ve had trouble with downloading books, and the download link often doesn’t work.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (10, 3022, N'Prashant', CAST(N'2025-03-10' AS Date), N'Feedback', N'The user interface is simple, which makes it easy to navigate.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (11, 3067, N'Vikas', CAST(N'2025-04-04' AS Date), N'Suggestion', N'Can you add a feature to recommend books based on my reading history?', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (12, 3065, N'Ravinder', CAST(N'2025-03-06' AS Date), N'Complaint', N'The checkout process is confusing, especially with payment methods.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (13, 3042, N'Pankaj ', CAST(N'2025-04-06' AS Date), N'Feedback', N'The collection of academic books is really impressive!', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (14, 3067, N'Vikas', CAST(N'2025-04-15' AS Date), N'Suggestion', N'It would be helpful if books had a preview or sample chapter available before borrowing.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (15, 3014, N'Varun', CAST(N'2025-03-17' AS Date), N'Complaint', N'I’ve noticed that many books are out of stock or unavailable for long periods.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (16, 3019, N'Sanjivan', CAST(N'2025-03-25' AS Date), N'Feedback', N'I love the option to highlight text in e-books for later reference.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (17, 3032, N'Vishwa', CAST(N'2025-03-04' AS Date), N'Suggestion', N'Please consider adding audiobooks to the library catalog.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (18, 3027, N'Vikas', CAST(N'2025-04-06' AS Date), N'Complaint', N'The website’s search bar often doesn’t return relevant results.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (19, 3051, N'Darshan', CAST(N'2025-03-04' AS Date), N'Feedback', N'The ability to save books for later is a nice touch!', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (20, 3050, N'Prashant', CAST(N'2025-03-21' AS Date), N'Suggestion', N'Can you introduce a rating system for books? It would help me decide what to borrow.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (21, 3066, N'SHUBHAM ', CAST(N'2025-04-07' AS Date), N'Complaint', N'The reading interface on the website isn’t mobile-friendly and needs improvement.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (22, 3023, N'Mangesh', CAST(N'2025-03-02' AS Date), N'Feedback', N'I really enjoy the "new arrivals" section!', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (23, 3050, N'Prashant', CAST(N'2025-04-04' AS Date), N'Suggestion', N'It would be great if I could borrow multiple books at once instead of one at a time.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (24, 3068, N'Ramesh', CAST(N'2025-03-25' AS Date), N'Complaint', N'The site lacks enough filters to help narrow down search results.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (25, 3066, N'SHUBHAM ', CAST(N'2025-04-06' AS Date), N'Feedback', N'Your library offers a great selection of genre fiction, which I enjoy.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (26, 3069, N'Ajay', CAST(N'2025-03-14' AS Date), N'Suggestion', N'Could you add a wishlist feature where users can save books they plan to borrow in the future?', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (27, 3021, N'Saurabh ', CAST(N'2025-03-10' AS Date), N'Complaint', N'The overdue fines are too high. It discourages me from borrowing more books.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (28, 3059, N'Parag', CAST(N'2025-04-20' AS Date), N'Feedback', N'I love the option to read books directly in the browser without downloading them.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (29, 3021, N'Saurabh ', CAST(N'2025-04-20' AS Date), N'Suggestion', N'A more personalized homepage with suggested books based on my previous reads would be awesome.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (30, 3061, N'Paresh', CAST(N'2025-04-09' AS Date), N'Complaint', N'Sometimes the page doesn’t load properly, and I have to refresh multiple times.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (31, 3070, N'Niraj', CAST(N'2025-03-31' AS Date), N'Feedback', N'It’s easy to create a reading list, which helps me keep track of books I want to read.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (32, 3061, N'Paresh', CAST(N'2025-04-04' AS Date), N'Suggestion', N'Could you consider having a "request a book" feature for books that are not in the collection?', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (33, 3020, N'Sandeep', CAST(N'2025-04-17' AS Date), N'Complaint', N'The website frequently logs me out, which is very annoying.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (34, 3053, N'Amit ', CAST(N'2025-04-10' AS Date), N'Feedback', N'I appreciate the clear and detailed book descriptions. It makes choosing books easier.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (35, 3029, N'Mohamed', CAST(N'2025-03-24' AS Date), N'Suggestion', N'A section for book reviews from other users would be a nice addition.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (36, 3065, N'Ravinder', CAST(N'2025-03-26' AS Date), N'Complaint', N'I wish there were more options for filtering books by language or region.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (37, 3027, N'Vikas', CAST(N'2025-04-08' AS Date), N'Feedback', N'The interface looks clean and modern, which I really like.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (38, 3050, N'Prashant', CAST(N'2025-04-06' AS Date), N'Suggestion', N'Adding a feature for tracking my reading progress would be helpful.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (39, 3062, N'Rakesh', CAST(N'2025-03-01' AS Date), N'Complaint', N'The text size for e-books is too small, and there''s no option to change it.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (40, 3066, N'SHUBHAM ', CAST(N'2025-04-10' AS Date), N'Feedback', N'I’m happy with the amount of non-fiction titles available in the library.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (41, 3047, N'Sanjeev ', CAST(N'2025-03-26' AS Date), N'Suggestion', N'It would be great to have a "book of the month" recommendation section.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (42, 3036, N'Nishanth', CAST(N'2025-03-15' AS Date), N'Complaint', N'The online library doesn’t seem to update its collection frequently enough.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (43, 3023, N'Mangesh', CAST(N'2025-04-14' AS Date), N'Feedback', N'The library’s return policy is very convenient and user-friendly.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (44, 3070, N'Niraj', CAST(N'2025-04-15' AS Date), N'Suggestion', N'If you could integrate the library with Goodreads, it would make sharing books easier.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (45, 3039, N'Thirumalaisamy', CAST(N'2025-03-08' AS Date), N'Complaint', N'The search function is often inaccurate, returning irrelevant results.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (46, 3028, N'Senthil', CAST(N'2025-04-14' AS Date), N'Feedback', N'I really like that the library includes a wide variety of subjects, from science to literature.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (47, 2011, N'Mahesh', CAST(N'2025-04-03' AS Date), N'Suggestion', N'Can you make it easier to see when a book will become available if it''s currently checked out?', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (48, 2011, N'Mahesh', CAST(N'2025-03-22' AS Date), N'Complaint', N'I find it difficult to navigate the site when I’m looking for a specific author.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (49, 2011, N'Mahesh', CAST(N'2025-04-10' AS Date), N'Feedback', N'The library’s layout is intuitive and easy to use, which makes browsing enjoyable.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (50, 2012, N'Jasmit', CAST(N'2025-03-22' AS Date), N'Suggestion', N'Offering more books in popular genres like mystery and romance would be great.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (51, 2011, N'Mahesh', CAST(N'2025-03-16' AS Date), N'Complaint', N'Some of the books I borrow are damaged or have missing pages.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (52, 2011, N'Mahesh', CAST(N'2025-03-02' AS Date), N'Feedback', N'I really appreciate the option to read books in different formats (PDF, ePub).', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (53, 2012, N'Jasmit', CAST(N'2025-03-17' AS Date), N'Suggestion', N'It would be helpful to see user ratings for books when browsing the catalog.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (54, 2013, N'Siddhika', CAST(N'2025-04-12' AS Date), N'Complaint', N'There is no option to extend the loan period on books I’ve borrowed.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (55, 2011, N'Mahesh', CAST(N'2025-03-17' AS Date), N'Feedback', N'I love how you organize books by theme, which makes it easy to discover new ones.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (56, 2011, N'Mahesh', CAST(N'2025-03-02' AS Date), N'Suggestion', N'Could you add an option to sort books by publication date?', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (57, 2011, N'Mahesh', CAST(N'2025-03-27' AS Date), N'Complaint', N'The library should have more children’s books in a variety of genres.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (58, 2011, N'Mahesh', CAST(N'2025-03-04' AS Date), N'Suggestion', N'It would be great if the library offered a mobile app for easier access.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (59, 2010, N'Suresh', CAST(N'2025-04-11' AS Date), N'Complaint', N'The website is very slow and sometimes takes forever to load books.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (60, 2011, N'Mahesh', CAST(N'2025-04-12' AS Date), N'Feedback', N'I really appreciate how easy it is to find books by category.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (61, 2010, N'Suresh', CAST(N'2025-04-19' AS Date), N'Suggestion', N'Adding more advanced search filters would help me find books faster.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (62, 2011, N'Mahesh', CAST(N'2025-04-06' AS Date), N'Complaint', N'The e-books available are often poorly formatted, which makes them hard to read.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (63, 2010, N'Suresh', CAST(N'2025-03-23' AS Date), N'Feedback', N'Customer support has been very responsive and helpful, which I appreciate.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (64, 2011, N'Mahesh', CAST(N'2025-04-18' AS Date), N'Suggestion', N'It would be great if there was a feature to mark books as "favorites."', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (65, 2012, N'Jasmit', CAST(N'2025-03-21' AS Date), N'Complaint', N'I’ve had trouble with downloading books, and the download link often doesn’t work.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (66, 2012, N'Jasmit', CAST(N'2025-04-03' AS Date), N'Feedback', N'The user interface is simple, which makes it easy to navigate.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (67, 2011, N'Mahesh', CAST(N'2025-03-06' AS Date), N'Suggestion', N'Can you add a feature to recommend books based on my reading history?', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (68, 2011, N'Mahesh', CAST(N'2025-04-15' AS Date), N'Complaint', N'The checkout process is confusing, especially with payment methods.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (69, 2012, N'Jasmit', CAST(N'2025-03-16' AS Date), N'Feedback', N'The collection of academic books is really impressive!', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (70, 2012, N'Jasmit', CAST(N'2025-03-02' AS Date), N'Suggestion', N'It would be helpful if books had a preview or sample chapter available before borrowing.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (71, 2010, N'Suresh', CAST(N'2025-03-22' AS Date), N'Complaint', N'I’ve noticed that many books are out of stock or unavailable for long periods.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (72, 2012, N'Jasmit', CAST(N'2025-03-17' AS Date), N'Feedback', N'I love the option to highlight text in e-books for later reference.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (73, 2013, N'Siddhika', CAST(N'2025-03-22' AS Date), N'Suggestion', N'Please consider adding audiobooks to the library catalog.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (74, 2013, N'Siddhika', CAST(N'2025-04-05' AS Date), N'Complaint', N'The website’s search bar often doesn’t return relevant results.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (75, 2012, N'Jasmit', CAST(N'2025-04-02' AS Date), N'Feedback', N'The ability to save books for later is a nice touch!', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (76, 2011, N'Mahesh', CAST(N'2025-03-30' AS Date), N'Suggestion', N'Can you introduce a rating system for books? It would help me decide what to borrow.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (77, 2013, N'Siddhika', CAST(N'2025-03-17' AS Date), N'Complaint', N'The reading interface on the website isn’t mobile-friendly and needs improvement.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (78, 2012, N'Jasmit', CAST(N'2025-03-31' AS Date), N'Feedback', N'I really enjoy the "new arrivals" section!', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (79, 2011, N'Mahesh', CAST(N'2025-03-31' AS Date), N'Suggestion', N'It would be great if I could borrow multiple books at once instead of one at a time.', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (80, 2012, N'Jasmit', CAST(N'2025-03-08' AS Date), N'Complaint', N'The site lacks enough filters to help narrow down search results.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (81, 2011, N'Mahesh', CAST(N'2025-04-02' AS Date), N'Feedback', N'Your library offers a great selection of genre fiction, which I enjoy.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (82, 2013, N'Siddhika', CAST(N'2025-03-18' AS Date), N'Suggestion', N'Could you add a wishlist feature where users can save books they plan to borrow in the future?', N'Resolved                                          ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (83, 2012, N'Jasmit', CAST(N'2025-03-22' AS Date), N'Complaint', N'The overdue fines are too high. It discourages me from borrowing more books.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (84, 2012, N'Jasmit', CAST(N'2025-03-28' AS Date), N'Feedback', N'I love the option to read books directly in the browser without downloading them.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (85, 2010, N'Suresh', CAST(N'2025-04-13' AS Date), N'Suggestion', N'A more personalized homepage with suggested books based on my previous reads would be awesome.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (86, 2012, N'Jasmit', CAST(N'2025-03-24' AS Date), N'Complaint', N'Sometimes the page doesn’t load properly, and I have to refresh multiple times.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (87, 3028, N'Senthil', CAST(N'2025-04-20' AS Date), N'Complaint', N'Hi Admin, I want the toilets need to be cleaned everyday which is not done regularyly', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (88, 3028, N'Senthil', CAST(N'2025-04-20' AS Date), N'Complaint', N'Hi Admin, I am not happy with online website service it is slow.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (89, 3016, N'Jayprakash', CAST(N'2025-04-22' AS Date), N'Suggetion', N'Library is very goodQ', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (90, 3016, N'Jayprakash', CAST(N'2025-04-22' AS Date), N'-------------Select-----------------', N'I want books must be increased, new books be added like comics books', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (91, 2013, N'Siddhika', CAST(N'2025-04-29' AS Date), N'Suggetion', N'Hi Admin I like the library.', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (92, 1003, N'NIRBHAYA', CAST(N'2025-04-30' AS Date), N'Suggetion', N'Hi Admin Library is good', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (93, 1003, N'NIRBHAYA', CAST(N'2025-04-30' AS Date), N'Complaint', N'Sir I want to tell that toilets are not cleaned', N'pending                                           ')

INSERT [dbo].[COMPLAINT_MASTER_TABLE] ([CmpID], [Student_ID], [StudentName], [EntryDate], [Subject], [Messge], [ActionTaken]) VALUES (94, 1003, N'NIRBHAYA', CAST(N'2025-04-30' AS Date), N'Feedback', N'Online book store is good', N'pending                                           ')

SET IDENTITY_INSERT [dbo].[COMPLAINT_MASTER_TABLE] OFF

GO

SET IDENTITY_INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ON

 

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (1, 3028, N'Senthil', N'Core Java 2.2', N'R.C Stine', 544, N'NA', N'2012', 20, CAST(N'2025-03-21' AS Date), CAST(N'2025-04-21' AS Date), 1)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (2, 3028, N'Senthil', N'Sahitya Acadmy', N'Makhanlal Chaturvedi', 123, N'NA', N'2009', 11, CAST(N'2025-04-21' AS Date), CAST(N'2025-05-21' AS Date), 8)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (3, 3028, N'Senthil', N'Hindi Dramma', N'LL Mehta', 350, N'NA', N'2013', 31, CAST(N'2025-04-21' AS Date), CAST(N'2025-05-21' AS Date), 9)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (5, 3028, N'Senthil', N'Spy Hunter', N'J.C McDonand', 233, N'NA', N'2011', 11, CAST(N'2025-02-21' AS Date), CAST(N'2025-03-21' AS Date), 2)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (6, 3016, N'Jayprakash', N'Core Java 2.2', N'R.C Stine', 544, N'NA', N'2012', 18, CAST(N'2025-04-22' AS Date), CAST(N'2025-05-22' AS Date), 1)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (7, 3028, N'Senthil', N'Core Java 2.2', N'R.C Stine', 544, N'NA', N'2012', 17, CAST(N'2025-04-23' AS Date), CAST(N'2025-05-23' AS Date), 1)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (8, 2013, N'Siddhika', N'Core Java 2.2', N'R.C Stine', 544, N'NA', N'2012', 16, CAST(N'2025-04-29' AS Date), CAST(N'2025-05-29' AS Date), 1)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (9, 2013, N'Siddhika', N'Hindi Dramma', N'LL Mehta', 350, N'NA', N'2013', 30, CAST(N'2025-04-29' AS Date), CAST(N'2025-05-29' AS Date), 9)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (10, 2013, N'Siddhika', N'English Language', N'C.P. Gurnani', 250, N'NA', N'1980', 46, CAST(N'2025-04-29' AS Date), CAST(N'2025-05-29' AS Date), 7)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (11, 2013, N'Siddhika', N'Spy Hunter', N'J.C McDonand', 233, N'NA', N'2011', 10, CAST(N'2025-04-29' AS Date), CAST(N'2025-05-29' AS Date), 2)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (12, 2013, N'Siddhika', N'Godan', N'Munshi Prem chand', 230, N'NA', N'1992', 12, CAST(N'2025-04-29' AS Date), CAST(N'2025-05-29' AS Date), 10)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (13, 2013, N'Siddhika', N'Botanical Guide', N'K. Moolchand', 200, N'NA', N'2008', 19, CAST(N'2025-04-29' AS Date), CAST(N'2025-05-29' AS Date), 6)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (14, 2011, N'Mahesh', N'Hindi Dramma', N'LL Mehta', 350, N'NA', N'2013', 29, CAST(N'2025-04-29' AS Date), CAST(N'2025-05-29' AS Date), 9)

INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] ([BID], [StudentID], [StudentName], [BookName], [Author], [Price], [Details], [PublicationYear], [QuantityRemain], [IssueDate], [ReturnDate], [BookID]) VALUES (15, 2011, N'Mahesh', N'Sahwas', N'J.R Churani', 233, N'NA', N'1983', 44, CAST(N'2025-04-29' AS Date), CAST(N'2025-05-29' AS Date), 5)

SET IDENTITY_INSERT [dbo].[ISSUE_BOOK_MASTER_TABLE] OFF

GO

SET IDENTITY_INSERT [dbo].[PUBLICATION_MASTER_TABLE] ON

 

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (16, N'Saraswati Prakashans', 2024, CAST(N'2025-03-27T16:27:14.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (17, N'Tata McGrawll Hill', 1996, CAST(N'2025-03-27T14:27:46.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (74, N'Amita Publications', 2016, CAST(N'2020-02-24T00:35:46.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (75, N'Surya Prakashans', 1996, CAST(N'2020-02-24T00:49:36.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (83, N'Mamta Books', 2016, CAST(N'2020-02-24T01:36:30.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (1096, N'Manoj Prakashan', 2015, CAST(N'2025-03-20T15:04:49.973' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (1101, N'Rajesh Paket Books', 2016, CAST(N'2025-03-26T16:00:09.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (1102, N'Rufus Publication', 2010, CAST(N'2025-03-29T02:54:58.700' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (1103, N'Scolastic Publication', 2020, CAST(N'2025-03-29T02:55:18.613' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (1109, N'Tulsi Books', 2025, CAST(N'2025-03-29T22:15:46.710' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2107, N'Buradi Books', 2021, CAST(N'2025-03-30T20:01:46.747' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2108, N'JAICO BOOKS', 2010, CAST(N'2024-01-21T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2109, N'FINGER PRINT', 1999, CAST(N'2021-08-30T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2110, N'PENGUIN BOOKS', 1994, CAST(N'2021-01-27T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2111, N'RUPA PUBLICATIONS', 2021, CAST(N'2022-10-15T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2112, N'UNIVERSITIES PRESS', 2016, CAST(N'2022-10-14T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2113, N'RUPA PUBLICATIONS', 2015, CAST(N'2020-12-25T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2114, N'HARPER COLLINS', 2013, CAST(N'2024-06-18T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2115, N'LOTUS PRESS', 2011, CAST(N'2022-05-02T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2116, N'MACMILLAN .', 2000, CAST(N'2024-07-08T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2117, N'PENGUIN BOOKS.', 1993, CAST(N'2023-12-05T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2118, N'POCKET BOOKS', 2004, CAST(N'2023-04-15T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2119, N'VIRGIN BOOKS', 2006, CAST(N'2021-10-19T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2120, N'ALEPH BOOK COMPANY', 2012, CAST(N'2024-06-04T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2121, N'HACHETTE INDIA', 2023, CAST(N'2024-02-16T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2122, N'PENGUIN BOOKS', 1997, CAST(N'2025-01-04T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2123, N'ALEPH BOOK COMPANY', 2020, CAST(N'2020-01-17T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2124, N'COLLINS', 2025, CAST(N'2022-07-22T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2125, N'PENGUIN', 2005, CAST(N'2023-09-04T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2126, N'PENGUIN - INDIA', 2018, CAST(N'2024-10-27T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2127, N'PENGUIN BOOKS', 1998, CAST(N'2021-04-12T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2128, N'PENGUIN CLASSICS', 2008, CAST(N'2023-05-09T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2129, N'PENGUIN', 2003, CAST(N'2023-09-05T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2130, N'PENGUIN', 1995, CAST(N'2025-02-02T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2131, N'RUPA PUBLICATIONS', 2024, CAST(N'2024-01-23T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2132, N'VITASTA PUBLISHING PVT.LTD', 2022, CAST(N'2023-12-14T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2133, N'VINTAGE BOOKS', 2017, CAST(N'2022-04-10T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2134, N'CROSS LAND BOOKS', 2019, CAST(N'2022-06-01T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2135, N'PENGUIN BOOKS', 2009, CAST(N'2022-11-21T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2136, N'VINTAGE BOOKS', 1992, CAST(N'2020-02-23T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2137, N'VINTAGE BOOKS', 2002, CAST(N'2025-02-27T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2138, N'VINTAGE BOOKS', 1996, CAST(N'2022-08-04T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2139, N'VINTAGE BOOKS', 2001, CAST(N'2024-04-12T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2140, N'EVERYMAN`S LIBRARY', 2007, CAST(N'2020-12-05T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2141, N'PENGUIN BOOKS', 2014, CAST(N'2022-11-10T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2142, N'VINTAGE BOOKS', 1992, CAST(N'2023-09-30T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2143, N'PENGUIN BOOKS', 1993, CAST(N'2021-10-23T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2144, N'OXFORD UNIVERSITY PRESS', 1994, CAST(N'2023-03-02T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2145, N'PENGUIN BOOKS', 1995, CAST(N'2025-03-19T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2146, N'PENGUIN BOOKS', 1996, CAST(N'2020-03-10T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2147, N'PENGUIN BOOKS', 1997, CAST(N'2020-05-17T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2148, N'PENGUIN BOOKS', 1992, CAST(N'2020-05-15T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2149, N'PENGUIN BOOKS', 1999, CAST(N'2022-08-03T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2150, N'HARPER COLLINS', 2000, CAST(N'2020-11-25T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2151, N'FABER AND FABER', 2001, CAST(N'2021-05-19T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2152, N'VINTAGE BOOKS', 2002, CAST(N'2022-09-22T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2153, N'ONE WORLD', 2003, CAST(N'2020-07-18T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2154, N'PENGUIN', 2004, CAST(N'2021-10-25T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2155, N'PENGUIN', 2005, CAST(N'2023-06-30T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2156, N'PENGUIN BOOKS', 2006, CAST(N'2023-04-28T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2157, N'PENGUIN BOOKS', 2007, CAST(N'2023-06-27T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2158, N'PENGUIN BOOKS', 2008, CAST(N'2021-09-27T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2159, N'PICADOR INDIA', 2009, CAST(N'2024-11-11T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2160, N'RANDOM HOUSE INDIA', 2010, CAST(N'2023-11-26T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2161, N'HARPER COLLINS        .', 2011, CAST(N'2024-09-18T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2162, N'PENGUIN BOOKS', 2012, CAST(N'2020-10-12T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2163, N'PENGUIN BOOKS', 2013, CAST(N'2022-01-03T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2164, N'RANDOM HOUSE UK', 2014, CAST(N'2021-10-04T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2165, N'VINTAGE BOOKS', 2015, CAST(N'2020-02-20T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2166, N'VINTAGE BOOKS .', 2016, CAST(N'2023-06-13T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2167, N'FINGER PRINT', 2017, CAST(N'2023-01-28T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2168, N'JAICO BOOKS', 2018, CAST(N'2021-01-20T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2169, N'OM BOOKS', 2019, CAST(N'2021-01-11T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2170, N'PEARSON', 2020, CAST(N'2021-04-29T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2171, N'PENGUIN', 2021, CAST(N'2024-10-16T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2172, N'PENGUIN BOOKS', 2022, CAST(N'2024-02-17T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2173, N'PENGUIN BOOKS', 2023, CAST(N'2020-12-15T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2174, N'RUPA PUBLICATIONS', 2024, CAST(N'2024-10-04T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2175, N'VINTAGE BOOKS', 2025, CAST(N'2021-01-02T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2176, N'VINTAGE BOOKS', 2010, CAST(N'2020-03-06T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2177, N'VINTAGE BOOKS', 1999, CAST(N'2021-08-11T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2178, N'VINTAGE BOOKS', 1994, CAST(N'2021-07-08T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2179, N'PENGUIN BOOKS', 2021, CAST(N'2022-02-25T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2180, N'JUGGERNAUT', 2016, CAST(N'2022-02-13T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2181, N'PENGUIN BOOKS', 2015, CAST(N'2020-06-30T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2182, N'PENGUIN BOOKS.', 2013, CAST(N'2024-09-12T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2183, N'PENGUIN CLASSICS', 2011, CAST(N'2020-06-20T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2184, N'RUPA PUBLICATIONS', 2000, CAST(N'2023-02-08T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2185, N'WEIDENFELD & NICOLSON', 1993, CAST(N'2021-05-25T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2186, N'PENGUIN', 2004, CAST(N'2022-12-13T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2187, N'OXFORD UNIVERSITY PRESS', 2006, CAST(N'2020-08-23T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2188, N'NAVAYANA', 2012, CAST(N'2020-07-02T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2189, N'HARPER COLLINS', 2023, CAST(N'2024-11-03T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2190, N'PAN MACMILLAN', 1997, CAST(N'2021-02-20T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2191, N'VIRAGO', 2020, CAST(N'2022-08-19T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2192, N'MACMILLAN', 2025, CAST(N'2023-04-28T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2193, N'MODERN CLASSICS', 2005, CAST(N'2023-01-24T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2194, N'HARPER COLLINS', 2018, CAST(N'2025-02-25T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2195, N'THE BODLEY HEAD', 1998, CAST(N'2021-09-25T00:00:00.000' AS DateTime))

GO

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2196, N'BLOOMSBURY', 2008, CAST(N'2024-03-26T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2197, N'DREAM BOOKBINDERY', 2003, CAST(N'2020-11-07T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2198, N'BLOOMSBURY', 1995, CAST(N'2020-06-21T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2199, N'BLOOMSBURY', 2024, CAST(N'2024-03-30T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2200, N'NAVAYANA', 2022, CAST(N'2025-01-09T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2201, N'BLOOMSBURY', 2017, CAST(N'2024-08-03T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2202, N'BLOOMSBURY', 2019, CAST(N'2020-03-13T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2203, N'BLOOMSBURY', 2009, CAST(N'2023-04-19T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2204, N'INNER TRADITIONS INDIA.', 1992, CAST(N'2022-05-04T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2205, N'JAICO BOOKS', 2002, CAST(N'2024-07-18T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2206, N'JAICO BOOKS', 1996, CAST(N'2022-01-13T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2207, N'ALEPH BOOK COMPANY', 2001, CAST(N'2022-12-31T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2208, N'ALEPH BOOK COMPANY', 2007, CAST(N'2022-09-03T00:00:00.000' AS DateTime))

INSERT [dbo].[PUBLICATION_MASTER_TABLE] ([PID], [Publication], [PublicationYear], [EntryDate]) VALUES (2209, N'Samundra Printers', 2012, CAST(N'2025-04-29T01:31:07.107' AS DateTime))

SET IDENTITY_INSERT [dbo].[PUBLICATION_MASTER_TABLE] OFF

GO

SET IDENTITY_INSERT [dbo].[STUDENT_MASTER_TABLE] ON

 

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (7, N'SUPARNA', N'DINESH', N'BASU', N'DINESH BASU', N'ANANYA DINESH BASU', CAST(N'1983-04-07T00:00:00.000' AS DateTime), N'POCE12WE', N'SELL2WORLD ITS PVT LTD.', N'~/img/IMG-20190606-WA0004.jpg', N'8972148578', N'suparna.basu@gmail.com', N'loveubaccha', N'HOUSE NO 6478, NEAR SANTOSHI MATA MANDIR, MUNJABA BASTI, DHANORI ROAD PUNE MH', N'154 SONAGACCHI, KOLKATA NEAR HIJJAR VASTI KOLKATA WEST BENGAL INDIA', N'PUNE', N'975412', N'PHY', N'Female', CAST(N'2020-03-15T02:19:04.000' AS DateTime), CAST(N'2020-04-15T02:19:04.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (8, N'GARMANG', N'NADARE', N'DABALIYA ', N'NADARE DABALIYA', N'SHOBHA DABALIYA ', CAST(N'1998-10-11T00:00:00.000' AS DateTime), N'POS36WSD', N'GAJANAN MANGAL KARYALAYA ', N'~/img/Teja.jpg', N'8574215345', N'gn@gmail.com', N'@@@123', N'PURANA NAGAR, FLAT NO 203, SURENDRA VIHAR SUWARNA PALACE, CHHAPRA, BIHAR', N'PURANA NAGAR, FLAT NO 203, SURENDRA VIHAR SUWARNA PALACE, CHHAPRA, BIHAR', N'CHHAPRA', N'589898', N'ENG', N'Transgender', CAST(N'2020-03-15T12:22:28.000' AS DateTime), CAST(N'2020-04-15T12:22:28.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (1003, N'NIRBHAYA', N'LADDAKH', N'DOSHI', N'LADDAKH', N'MARBHAYA', CAST(N'1987-03-08T00:00:00.000' AS DateTime), N'DWKLD54WE', N'SUPRIME COURT', N'~/Student/Img2/photo2.jpg', N'7878545456', N'nd@gmail.com', N'123456', N'SUPREME COURT JUSTICE HOUSE NEW DELHI', N'SUPREME COURT JUSTICE HOUSE NEW DELHI', N'LULLA NAGAR', N'448978', N'ENG', N'Female', CAST(N'2020-03-19T23:42:50.000' AS DateTime), CAST(N'2020-04-19T23:42:50.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (2007, N'Madhura', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'9854789698', N'madhura@gmail.com', N'madhura@123', NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-03-23T00:00:00.000' AS DateTime), CAST(N'2025-04-23T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (2008, N'Anil', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'9845698748', N'anil@gmail.com', N'anil123', NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-03-25T15:30:36.927' AS DateTime), CAST(N'2025-04-25T15:30:36.927' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (2010, N'Suresh', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'9845874898', N'suresh.das@gmail.com', N'1234', NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-03-26T13:21:06.643' AS DateTime), CAST(N'2025-04-26T13:21:06.643' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (2011, N'Mahesh', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'9874598745', N'mahesh@rediff.com', N'oop', NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-03-26T13:21:43.940' AS DateTime), CAST(N'2025-01-26T13:21:43.940' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (2012, N'Jasmit', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'9874587458', N'jasmit@gmail.com', N'1233', NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-04-02T00:00:00.000' AS DateTime), CAST(N'2025-05-02T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (2013, N'Siddhika', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'9845874879', N'siddhika@gmail.com', N'234', NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-04-04T00:00:00.000' AS DateTime), CAST(N'2025-05-02T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3013, N'Manisha', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'9878974589', N'manisha@rediff.com', N'789', NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-04-05T00:00:00.000' AS DateTime), CAST(N'2025-05-05T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3014, N'Varun', N'Pratap', N'Singh', N'Pratap Singh', N'Sunita Devi', CAST(N'2025-04-09T00:00:00.000' AS DateTime), N'IDC12E56EF', N'Motilal Vigyan Vidyalay', N'~/Student/Img2/photo4.jpg', N'7845897899', N'varun@credence.com', N'7899', N'sdfsfdsfdgdsdss', N'gfdgfdgfdgfdgfd', N'Mumbai', N'447899', N'ZOO', N'Male', CAST(N'2025-04-05T00:00:00.000' AS DateTime), CAST(N'2025-05-05T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3015, N'Sunil', N'Girish', N'Garg', N'Girish', N'Shivani', CAST(N'1999-05-01T00:00:00.000' AS DateTime), N'VRVW5Y4PZAKG', N'Indian Institute of Management, Ahmedabad', N'~/Student/Img2/dummy.png', N'8886552154', N'sunil@iima.ac.in', N'1Mg*940', N'IIM Ahmedabad', N'IIM Ahmedabad', N'Ahmedabad', N'613235', N'ENG', N'Male', CAST(N'2025-03-29T00:00:00.000' AS DateTime), CAST(N'2025-03-28T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3016, N'Jayprakash', N'Sudhir', N'Lakshminarayana', N'Sudhir', N'Isha', CAST(N'1999-05-01T00:00:00.000' AS DateTime), N'ZVVZBPAPD2K3', N'Dhanlaxmi Bank', N'~/Student/Img2/dummy.png', N'6407325442', N'lakshminarayana.jss@dhanbank.co.in', N'4Iu+197', N'Jayachamaraja Wodeyar Rd Kumbaragundi Kalasipalayam', N'Jayachamaraja Wodeyar Rd Kumbaragundi Kalasipalayam', N'Bengaluru', N'656369', N'HIN', N'Male', CAST(N'2025-03-04T00:00:00.000' AS DateTime), CAST(N'2025-03-18T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3017, N'Sunil ', N'Beaula', N'Kumar', N'Beaula', N'Smt Shyani Devi', CAST(N'2001-01-01T00:00:00.000' AS DateTime), N'VTH1HPZ7951O', N'Continental Hospitals', N'~/Student/Img2/dummy.png', N'8579138062', N'sunil.k@continentalhospitals.com', N'4Ol(854', N'Plot No 2 Road No. 2 IT & Financial District Nanakramguda Gachibowli', N'Plot No 2 Road No. 2 IT & Financial District Nanakramguda Gachibowli', N'Hyderabad', N'517078', N'ME', N'Male', CAST(N'2025-03-24T00:00:00.000' AS DateTime), CAST(N'2025-04-29T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3018, N'Dev', N'Dhanunjay', N'Tiwari', N'Dhanunjay', N'Divya', CAST(N'1996-11-29T00:00:00.000' AS DateTime), N'SJLCU5L5G21T', N'Emkay Global Financial Services Ltd', N'~/Student/Img2/dummy.png', N'6968158499', N'dev.tiwari@emkayglobal.com', N'5Ei''526', N'7th Floor The Ruby Senapati Bapat Marg', N'7th Floor The Ruby Senapati Bapat Marg', N'Mumbai', N'595406', N'ECO', N'Male', CAST(N'2025-03-11T00:00:00.000' AS DateTime), CAST(N'2025-03-14T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3019, N'Sanjivan', N'Dinesh', N'Shirke', N'Dinesh', N'Mansi', CAST(N'2000-09-25T00:00:00.000' AS DateTime), N'GYYFC5N5CJHW', N'UTI Mutual Fund', N'~/Student/Img2/dummy.png', N'8358745264', N'sanjivan.shirke@uti.co.in', N'4Rl"580', N'Lotus Court Building 196  Jamshedji Tata Road Churchgate', N'Lotus Court Building 196  Jamshedji Tata Road Churchgate', N'Mumbai', N'662888', N'ZOO', N'Male', CAST(N'2025-03-19T00:00:00.000' AS DateTime), CAST(N'2025-03-31T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3020, N'Sandeep', N'Paresh', N'Agrawal', N'Paresh', N'Mazida', CAST(N'1998-04-26T00:00:00.000' AS DateTime), N'KOITQZJM0U5O', N'Neilsoft', N'~/Student/Img2/dummy.png', N'6993684392', N'sandeep.agrawal@neilsoft.com', N'8Df"802', N'Pride Parmar Galaxy 8th Floor 10/10 + A Sadhu Vaswani Chowk', N'Pride Parmar Galaxy 8th Floor 10/10 + A Sadhu Vaswani Chowk', N'Pune', N'601998', N'ENG', N'Male', CAST(N'2025-04-15T00:00:00.000' AS DateTime), CAST(N'2025-04-04T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3021, N'Saurabh ', N'Manoj', N'Gupta', N'Manoj', N'Pooja', CAST(N'1994-07-08T00:00:00.000' AS DateTime), N'GL6TUZYG3U1X', N'3B-the fibreglass company', N'~/Student/Img2/dummy.png', N'7596248910', N'saurabh.gupta@3b-fibreglass.com', N'8Ex$217', N'Goa Plant Colvale', N'Goa Plant Colvale', N'Bardez ', N'466424', N'PHY', N'Male', CAST(N'2025-03-13T00:00:00.000' AS DateTime), CAST(N'2025-04-06T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3022, N'Prashant', N'Kiran', N'Amburle', N'Kiran', N'Kajal', CAST(N'1993-05-20T00:00:00.000' AS DateTime), N'KDMNXUBAK3EB', N'ASB INTERNATIONAL PVT LTD', N'~/Student/Img2/dummy.png', N'9470804295', N'prashantamburle@asbi.co.in', N'0Sr)218', N'E-9 MIDC Industrial Area Anand Nagar Addl. Ambernath', N'E-9 MIDC Industrial Area Anand Nagar Addl. Ambernath', N'Thane', N'577022', N'CE', N'Male', CAST(N'2025-03-15T00:00:00.000' AS DateTime), CAST(N'2025-04-09T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3023, N'Mangesh', N'Nishanth', N'Dhore', N'Nishanth', N'Meena', CAST(N'2000-02-13T00:00:00.000' AS DateTime), N'VC1FZMTTOFC5', N'PT.Bank Maybank Syariah Indonesia', N'~/Student/Img2/dummy.png', N'9312551263', N'mangesh.dhore@maybank.co.id', N'5Vq)610', N'One Indiabulls Centre Tower 2B; 702 7th Floor Elphinstone Road (West)', N'One Indiabulls Centre Tower 2B; 702 7th Floor Elphinstone Road (West)', N'Mumbai', N'480613', N'CE', N'Male', CAST(N'2025-04-01T00:00:00.000' AS DateTime), CAST(N'2025-04-14T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3024, N'Islam ', N'Indranath', N'Shaikh', N'Indranath', N'Atuba', CAST(N'2000-08-30T00:00:00.000' AS DateTime), N'DRKNZ0COPZ7F', N'ASHOK PIRAMAL ENTERPRISES PRIVATE LIMITED', N'~/Student/Img2/dummy.png', N'8859280224', N'islam.shaikh@ashokpiramalgroup.com', N'4Tw(324', N'106 Penisula Center Dr S S Rao Road Parel Mumbai - 400012 Parel', N'106 Penisula Center Dr S S Rao Road Parel Mumbai - 400012 Parel', N'Mumbai', N'457162', N'ME', N'Male', CAST(N'2025-04-04T00:00:00.000' AS DateTime), CAST(N'2025-04-19T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3025, N'Sudhakar ', N'Pawan', N'Murthy', N'Pawan', N'Buity', CAST(N'1999-04-01T00:00:00.000' AS DateTime), N'DKEBZM13MYK2', N'Global Healthcare Resource', N'~/Student/Img2/dummy.png', N'7810696729', N'sudhakar@globalhealthcareresource.com', N'5Tt!590', N'70 Ritherdon Rd. Vepery', N'70 Ritherdon Rd. Vepery', N'Chennai', N'600464', N'ENG', N'Male', CAST(N'2025-03-24T00:00:00.000' AS DateTime), CAST(N'2025-04-23T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3026, N'Hiren', N'Madabattula', N'Mer', N'Madabattula', N'Hina', CAST(N'1994-09-30T00:00:00.000' AS DateTime), N'FQNQQ14AZAMX', N'AITS, RAJKOT', N'~/Student/Img2/dummy.png', N'7027468610', N'ce.hod@aits.edu.in', N'2Fd$976', N'Yogidham Gurukul Kalawad Road', N'Yogidham Gurukul Kalawad Road', N'Rajkot', N'469298', N'ENG', N'Female', CAST(N'2025-04-18T00:00:00.000' AS DateTime), CAST(N'2025-04-14T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3027, N'Vikas', N'Amol', N'Marwah', N'Amol', N'Shakshi Sagar', CAST(N'1998-01-28T00:00:00.000' AS DateTime), N'NWCNKEGS5CP1', N'TRANSPORT CORPORATION OF INDIA LIMITED', N'~/Student/Img2/dummy.png', N'9481049934', N'vikas.marwah@tcil.com', N'4Iv(433', N'69 Institutional Area Sector-32', N'69 Institutional Area Sector-32', N'Gurgaon', N'612491', N'PHY', N'Male', CAST(N'2025-03-09T00:00:00.000' AS DateTime), CAST(N'2025-03-24T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3028, N'Senthil', N'Ravinder', N'Naidu', N'Ravinder', N'Pooja', CAST(N'1993-12-30T00:00:00.000' AS DateTime), N'INZQ98BZ8DCK', N'Kotak Securities Ltd', N'~/Student/Img2/dummy.png', N'7598610997', N'senthil.n@kotak.com', N'3Od"911', N'Thirumalai Towers Avinashi Rd Puliakulam', N'Thirumalai Towers Avinashi Rd Puliakulam', N'Coimbatore ', N'595496', N'ENG', N'Female', CAST(N'2025-03-16T00:00:00.000' AS DateTime), CAST(N'2025-04-22T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3029, N'Mohamed', N'Akaram', N'Ilyas', N'Akaram', N'Samara', CAST(N'2002-05-24T00:00:00.000' AS DateTime), N'GP4LRMN54C7C', N'AB BAnk Ltd.', N'~/Student/Img2/dummy.png', N'7697129431', N'ilyas@abbl.com', N'5Ob#723', N'41/42 Library Building Near Liberty Cinema Vithaldas Thackersy Marg New Marine Lines', N'41/42 Library Building Near Liberty Cinema Vithaldas Thackersy Marg New Marine Lines', N'Mumbai', N'572098', N'CE', N'Male', CAST(N'2025-03-08T00:00:00.000' AS DateTime), CAST(N'2025-03-29T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3030, N'Subhash', N'Anamika', N'Gavali', N'Anamika', N'Neetu', CAST(N'1999-08-20T00:00:00.000' AS DateTime), N'FVSV5JD1E86M', N'Lawrence & Mayo Opticals', N'~/Student/Img2/dummy.png', N'9483902432', N'subhash@lawrenceandmayo.co.in', N'0Er!186', N'274 Dr.D.N.road', N'274 Dr.D.N.road', N'Mumbai', N'583271', N'PHY', N'Male', CAST(N'2025-04-02T00:00:00.000' AS DateTime), CAST(N'2025-03-22T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3031, N'Sheril ', N'Ninad', N'Jose', N'Ninad', N'Anshu', CAST(N'1998-04-27T00:00:00.000' AS DateTime), N'MEB9WKSQD8EL', N'Emcure Pharmaceuticals Limited', N'~/Student/Img2/dummy.png', N'8861722063', N'sheriljose@emcure.co.in', N'4Om$748', N'Plot No.P-I IT-BT Park M.I.D.C Hinjwadi', N'Plot No.P-I IT-BT Park M.I.D.C Hinjwadi', N'Pune ', N'539636', N'ECO', N'Female', CAST(N'2025-04-17T00:00:00.000' AS DateTime), CAST(N'2025-04-16T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3032, N'Vishwa', N'Darshan', N'Bhogle', N'Darshan', N'Kanika Kathuria', CAST(N'2001-01-09T00:00:00.000' AS DateTime), N'PEZ78WIYKPWE', N'Stock Holding Corporation of India Ltd.', N'~/Student/Img2/dummy.png', N'7304510438', N'v_bhujle@stockholding.com', N'6Nz!155', N'Agarkar Nagar', N'Agarkar Nagar', N'Pune', N'491194', N'ME', N'Male', CAST(N'2025-04-02T00:00:00.000' AS DateTime), CAST(N'2025-04-27T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3033, N'Muralidhar', N'Suresh', N'Nambiar', N'Suresh', N'Manju', CAST(N'2002-01-18T00:00:00.000' AS DateTime), N'QVVALFPC9Q3E', N'Blue Cross Labs Ltd.', N'~/Student/Img2/dummy.png', N'9323708426', N'mn@bluecrosslabs.com', N'5Yt$897', N'Peninsula Chambers Peninsula Corporate Park G.K Marg Lower Parel (West)', N'Peninsula Chambers Peninsula Corporate Park G.K Marg Lower Parel (West)', N'Mumbai', N'469375', N'ECO', N'Male', CAST(N'2025-04-13T00:00:00.000' AS DateTime), CAST(N'2025-04-19T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3034, N'Chetan ', N'Sukumar', N'Lad', N'Sukumar', N'Shakshi', CAST(N'2002-01-03T00:00:00.000' AS DateTime), N'HKCAC21ODKCY', N'Asit C Mehta Investment Intermediates Limited', N'~/Student/Img2/dummy.png', N'8278969426', N'chetan.lad@investmentz.com', N'6Kr,887', N'67 podar chamber 3rd floor Syed Abdullah Brelvi Marg Kala Ghoda Fort ', N'67 podar chamber 3rd floor Syed Abdullah Brelvi Marg Kala Ghoda Fort ', N'Mumbai', N'444989', N'OTH', N'Male', CAST(N'2025-03-16T00:00:00.000' AS DateTime), CAST(N'2025-03-15T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3035, N'Senthilvelan', N'Sanathkumar', N'Murugesan', N'Sanathkumar', N'Anita', CAST(N'2002-01-18T00:00:00.000' AS DateTime), N'OXGTFV5QTAHB', N'DHANLAXMI BANK LIMITED', N'~/Student/Img2/dummy.png', N'9798443622', N'senthilvelanm@dhanbank.co.in', N'1Bb.440', N'Unit 13 8th floor inovater bldg ITPS Penya roa Banglore', N'Unit 13 8th floor inovater bldg ITPS Penya roa Banglore', N'Peenya', N'480748', N'ECO', N'Male', CAST(N'2025-03-22T00:00:00.000' AS DateTime), CAST(N'2025-04-17T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3036, N'Nishanth', N'Bharathy', N'Abraham', N'Bharathy', N'Reena', CAST(N'2000-02-02T00:00:00.000' AS DateTime), N'IT0L9REASZQ7', N'Amber Road', N'~/Student/Img2/dummy.png', N'7954200822', N'nishanthabraham@amberroad.com', N'2Er.518', N'5th Floor #135 RMZ Titanium HAL Airport Rd Kodihalli ', N'5th Floor #135 RMZ Titanium HAL Airport Rd Kodihalli ', N'Bengaluru', N'516394', N'ENG', N'Male', CAST(N'2025-04-03T00:00:00.000' AS DateTime), CAST(N'2025-03-27T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3037, N'Ajay', N'Rohit', N'Dharwa', N'Rohit', N'Neha', CAST(N'2002-10-02T00:00:00.000' AS DateTime), N'HPXZAO1ZIEVF', N'Swastika Investmart Ltd.', N'~/Student/Img2/dummy.png', N'7507733190', N'dharwa_ajay@swastika.co.in', N'7Gq!247', N'48 Jaora Compound  Opp. M.Y. Hospital', N'48 Jaora Compound  Opp. M.Y. Hospital', N'Indore', N'580710', N'CE', N'Male', CAST(N'2025-04-19T00:00:00.000' AS DateTime), CAST(N'2025-05-02T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3038, N'Sagar', N'Sandeep', N'Sugandhi', N'Sandeep', N'Khushboo', CAST(N'1993-02-07T00:00:00.000' AS DateTime), N'IBQ5H6PO2RC0', N'BOBST', N'~/Student/Img2/dummy.png', N'7369139203', N'sagar.sugandhi@bobst.com', N'3Od+998', N'Gut. NO. 82 Village - Kasar Amboli Tal Mulshi Ghotawade Road', N'Gut. NO. 82 Village - Kasar Amboli Tal Mulshi Ghotawade Road', N'Pune', N'575929', N'ECO', N'Male', CAST(N'2025-03-02T00:00:00.000' AS DateTime), CAST(N'2025-04-21T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3039, N'Thirumalaisamy', N'Surender', N'Devaraj', N'Surender', N'Aasmin', CAST(N'2001-10-09T00:00:00.000' AS DateTime), N'LT735R5VTM5C', N'Kovai Medical Center & Hospital', N'~/Student/Img2/dummy.png', N'6227768514', N'thirumalai@kmchhospitals.com', N'8Jw+622', N'3209 Avinashi Rd Sitra', N'3209 Avinashi Rd Sitra', N'Coimbatore', N'565545', N'ENG', N'Male', CAST(N'2025-03-20T00:00:00.000' AS DateTime), CAST(N'2025-03-23T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3040, N'Neelesh', N'Tulbahadur', N'Katiyar', N'Tulbahadur', N'Jyoti', CAST(N'1998-05-13T00:00:00.000' AS DateTime), N'QHUTAZECBXK9', N'JASLOK HOSPITAL & RESEARCH CENTRE', N'~/Student/Img2/dummy.png', N'7841561378', N'neelesh.katiyar@jaslokhospital.net', N'9Ve$254', N'15 Dr. Deshmukh Marg Pedder Road', N'15 Dr. Deshmukh Marg Pedder Road', N'Mumbai', N'489694', N'ZOO', N'Male', CAST(N'2025-03-20T00:00:00.000' AS DateTime), CAST(N'2025-04-04T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3041, N'Sachin ', N'Gurdeep', N'Chavda', N'Gurdeep', N'Riya Masi', CAST(N'1995-06-22T00:00:00.000' AS DateTime), N'PNJXXVI1VQBC', N'Adani Port Limited', N'~/Student/Img2/dummy.png', N'7256083854', N'sachin.chavda@adani.com', N'3Je"868', N'At & Post Hazira Tal. Choriyasi', N'At & Post Hazira Tal. Choriyasi', N'Surat', N'548416', N'ME', N'Male', CAST(N'2025-03-03T00:00:00.000' AS DateTime), CAST(N'2025-03-27T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3042, N'Pankaj ', N'Srinath', N'Sharma', N'Srinath', N'Rekha', CAST(N'2001-05-04T00:00:00.000' AS DateTime), N'LG91TYNOBU4Z', N'Timex Group India Limited', N'~/Student/Img2/dummy.png', N'9948537502', N'pasharma@timex.com', N'4Nq,362', N'City Centre DLF Chandigarh MDC Sector 6 Rd', N'City Centre DLF Chandigarh MDC Sector 6 Rd', N'Manimajra', N'601111', N'HIN', N'Male', CAST(N'2025-03-17T00:00:00.000' AS DateTime), CAST(N'2025-05-05T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3043, N'Upendra', N'Rajesh', N'Dubey', N'Rajesh', N'Leela With A Child', CAST(N'2001-12-08T00:00:00.000' AS DateTime), N'FLW8SE4TD3CV', N'Prathama Bank-The First Regional Rural Bank Of The Country', N'~/Student/Img2/dummy.png', N'7066509291', N'dit@prathamabank.org', N'7Ll(831', N'Ram Ganga Vihar Phase-II', N'City Centre DLF Chandigarh MDC Sector 6 Rd', N'Manimajra', N'601111', N'HIN', N'Male', CAST(N'2025-03-17T00:00:00.000' AS DateTime), CAST(N'2025-05-05T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3044, N'Seema', N'Ramesh', N'Shukla', N'Ramesh', N'Savitrai', CAST(N'2001-12-08T00:00:00.000' AS DateTime), N'LG91TYNOBU4Z', N'Prathama Bank-The First Regional Rural Bank Of The Country', N'~/Student/Img2/dummy.png', N'7066509291', N's@gmail.com', N'123', N'Ram Ganga Vihar Phase-II', N'City Centre DLF Chandigarh MDC Sector 6 Rd', N'Surat', N'601111', N'HIN', N'Female', CAST(N'2025-03-03T00:00:00.000' AS DateTime), CAST(N'2025-05-05T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3045, N'Ratna', N'Prkash', N'Mehar', N'Prakash', N'Mamta Bai', CAST(N'2025-03-08T00:00:00.000' AS DateTime), N'FLW8SE4TD3CV', N'Prathama Bank-The First Regional Rural Bank Of The Country', N'~/Student/Img2/dummy.png', N'9874587459', N'ratna@gmail.com', N'456987', N'At & Post Hazira Tal. Choriyasi', N'City Centre DLF Chandigarh MDC Sector 6 Rd', N'Surat', N'601111', N'HIN', N'Female', CAST(N'2025-03-25T00:00:00.000' AS DateTime), CAST(N'2025-04-03T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3046, N'Gurdeep', N'Bababhai', N'Singh', N'Bababhai', N'Isha', CAST(N'2003-04-12T00:00:00.000' AS DateTime), N'WKQD9BK8C7D2', N'Axtria - Ingenious Insights', N'~/Student/Img2/dummy.png', N'6333126355', N'gurdeep.singh@axtria.com', N'5Vo*171', N'11th Floor Building No. 14 B DLF Cyber City Phase II Sector 24', N'11th Floor Building No. 14 B DLF Cyber City Phase II Sector 24', N'Gurgaon', N'511881', N'CE', N'Male', CAST(N'2025-03-25T00:00:00.000' AS DateTime), CAST(N'2025-04-03T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3047, N'Sanjeev ', N'Sandeep', N'Kumar Singh', N'Sandeep', N'Gulshan', CAST(N'1993-07-09T00:00:00.000' AS DateTime), N'BD815BWI1BPH', N'THE BANK OF TOKYO / MITSUBISHI UFJ LTD.', N'~/Student/Img2/dummy.png', N'6388434471', N'sanjeev_singh@in.mufg.jp', N'8Ta$800', N'Bank of Tokoyo / MITSUBISHI UFJ LTD. 5 th floor world mark2aerocity  new delhi 37', N'Bank of Tokoyo / MITSUBISHI UFJ LTD. 5 th floor world mark2aerocity  new delhi 37', N'New Delhi', N'549180', N'ENG', N'Male', CAST(N'2025-04-08T00:00:00.000' AS DateTime), CAST(N'2025-03-26T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3048, N'Alok', N'Sagar', N'Singh', N'Sagar', N'Priya Jain', CAST(N'2003-06-06T00:00:00.000' AS DateTime), N'CE14WGFCAEOZ', N'hlfppt', N'~/Student/Img2/dummy.png', N'7585243024', N'asingh@hlfppt.org', N'0Fu*586', N'B-14 A, Near Fortis Hospital, Sector 62, Block B, Industrial Area, Sector 62', N'B-14 A, Near Fortis Hospital, Sector 62, Block B, Industrial Area, Sector 62', N'Noida', N'608252', N'ENG', N'Male', CAST(N'2025-03-08T00:00:00.000' AS DateTime), CAST(N'2025-05-03T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3049, N'Satadru ', N'Kumar', N'Sengupta', N'Kumar', N'Pooja', CAST(N'2000-12-22T00:00:00.000' AS DateTime), N'YAG7D74UCAMF', N'SIMPLEX INFRASTRUCTURES LIMITED', N'~/Student/Img2/dummy.png', N'6780089287', N'satadru.sengupta@simplexinfra.com', N'4Ui*210', N'27, Shakespeare Sarani, Dakshineswar, Elgin', N'27, Shakespeare Sarani, Dakshineswar, Elgin', N'Kolkata', N'666495', N'CE', N'Male', CAST(N'2025-04-08T00:00:00.000' AS DateTime), CAST(N'2025-05-04T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3050, N'Prashant', N'Alok', N'R.Nair', N'Alok', N'Rakhi @Payal', CAST(N'1998-09-08T00:00:00.000' AS DateTime), N'SCBF2S0SAJC4', N'Amrita University', N'~/Student/Img2/dummy.png', N'8921147404', N'prashant@amrita.edu', N'3Dv''786', N'Amrita Vishwa Vidyapeetham', N'Amrita Vishwa Vidyapeetham', N'Coimbatore', N'491907', N'ENG', N'Male', CAST(N'2025-04-15T00:00:00.000' AS DateTime), CAST(N'2025-03-29T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3051, N'Darshan', N'Akash', N'Chavan', N'Akash', N'Versha', CAST(N'2001-10-24T00:00:00.000' AS DateTime), N'MYTC1YL2N98Z', N'SBI MUTUAL FUND', N'~/Student/Img2/dummy.png', N'8559966068', N'darshan.chavan@sbimf.com', N'9As(437', N'SBI Funds Management Pvt Ltd. 9th Floor Crescenzo C-38 & 39 G Block Bandra-Kurla Complex Bandra (East) Mumbai Maharashtra India 400051', N'SBI Funds Management Pvt Ltd. 9th Floor Crescenzo C-38 & 39 G Block Bandra-Kurla Complex Bandra (East) Mumbai Maharashtra India 400051', N'Mumbai', N'564624', N'ENG', N'Male', CAST(N'2025-03-06T00:00:00.000' AS DateTime), CAST(N'2025-03-26T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3052, N'Harshal ', N'Kanwar', N'Pathak', N'Kanwar', N'Sunita', CAST(N'1997-03-13T00:00:00.000' AS DateTime), N'GJOMNOEAZ1JH', N'Rajkot Nagarik Sahakari Bank Ltd.', N'~/Student/Img2/dummy.png', N'7678062301', N'harshalpathak@rnsbindia.com', N'8Ih!168', N'Nagarik Bhavan No 1 Dhebarbhai Road Rajkot', N'Nagarik Bhavan No 1 Dhebarbhai Road Rajkot', N'Dhebarbhai Road Rajkot', N'549293', N'ENG', N'Male', CAST(N'2025-03-13T00:00:00.000' AS DateTime), CAST(N'2025-03-21T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3053, N'Amit ', N'Darshan', N'Wadhwa', N'Darshan', N'Nitu Kumari', CAST(N'2002-01-21T00:00:00.000' AS DateTime), N'ZJ3XS6JXF8MA', N'INTERNATIONAL TRAVEL HOUSE LIMITED', N'~/Student/Img2/dummy.png', N'9029833926', N'amitwadhwa@its.co.in', N'1Fo-195', N'T-2 community centre, shake raej phase 1,', N'T-2 community centre, shake raej phase 1,', N'Delhi', N'583736', N'ENG', N'Male', CAST(N'2025-03-08T00:00:00.000' AS DateTime), CAST(N'2025-05-06T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3054, N'Arun', N'Manjunath', N'Prasannan', N'Manjunath', N'Vandana', CAST(N'2001-03-02T00:00:00.000' AS DateTime), N'WRLKK6HBNFBA', N'Aster DM Healthcare', N'~/Student/Img2/dummy.png', N'9531154991', N'arun.prasannan@asterhospital.com', N'0Rs&791', N'Kuttisahib Road Near Kothad Bridge South Chittoor P.O Cheranelloor', N'Kuttisahib Road Near Kothad Bridge South Chittoor P.O Cheranelloor', N'Kochi', N'528938', N'ME', N'Male', CAST(N'2025-03-30T00:00:00.000' AS DateTime), CAST(N'2025-04-23T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3055, N'Tarun ', N'Rekha', N'Sarangai', N'Rekha', N'Roshni', CAST(N'2003-01-05T00:00:00.000' AS DateTime), N'DU5BQQJM6ACA', N'ASA & Associates LLP', N'~/Student/Img2/dummy.png', N'9816669995', N'tarun@asa.in', N'2Op!451', N'81/1 Third Floor Aurobindo Marg Adchini', N'81/1 Third Floor Aurobindo Marg Adchini', N'New Delhi', N'459389', N'ZOO', N'Male', CAST(N'2025-04-06T00:00:00.000' AS DateTime), CAST(N'2025-04-04T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3056, N'Raju', N'Shankar', N'Singh', N'Shankar', N'Parveen', CAST(N'1995-01-09T00:00:00.000' AS DateTime), N'NX709BCCZNB9', N'Fläkt Woods Group', N'~/Student/Img2/dummy.png', N'7724512310', N'singh.raju@flaktwoods.com', N'0Ul%868', N'Kutug viharr greatar noida ', N'Kutug viharr greatar noida ', N'Noida', N'465386', N'ECO', N'Male', CAST(N'2025-03-04T00:00:00.000' AS DateTime), CAST(N'2025-03-23T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3057, N'Manjunath', N'Sheril', N'Gowda', N'Sheril', N'Versa', CAST(N'1999-10-08T00:00:00.000' AS DateTime), N'OL1W91A4NVRC', N'Gleneagles Global Hospitals', N'~/Student/Img2/dummy.png', N'7341896582', N'manjunath.gowda@globalhospitalsindia.com', N'4Xq!785', N'5/5, Richmond Road, Richmond Town', N'5/5, Richmond Road, Richmond Town', N'Bengaluru', N'452994', N'ME', N'Male', CAST(N'2025-04-06T00:00:00.000' AS DateTime), CAST(N'2025-04-02T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3058, N'Sivakumar', N'Ratan', N'Murugavel', N'Ratan', N'Kavita', CAST(N'1996-08-16T00:00:00.000' AS DateTime), N'HF0XA9Z70LB3', N'JK Tyre & Industries Ltd', N'~/Student/Img2/dummy.png', N'9423410893', N'sivakumar.km@jkmail.com', N'6Qh#253', N'State Highway 110, Sriperumbudur-Tambaram Road, Sriperumbudur Taluk, Kancheepuram District', N'State Highway 110, Sriperumbudur-Tambaram Road, Sriperumbudur Taluk, Kancheepuram District', N'Kolathur', N'468939', N'CE', N'Male', CAST(N'2025-04-04T00:00:00.000' AS DateTime), CAST(N'2025-05-04T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3059, N'Parag', N'Ravindra', N'Ghate', N'Ravindra', N'Pooja', CAST(N'1994-08-08T00:00:00.000' AS DateTime), N'OTD7D0CB9TC7', N'Keva - Fragrances, Flavours & Aroma Ingredients', N'~/Student/Img2/dummy.png', N'7292409877', N'parag.ghate@keva.co.in', N'0Fn*742', N'Near Balrajeshwar Mandir, Mulund West', N'Near Balrajeshwar Mandir, Mulund West', N'Mumbai', N'612205', N'CE', N'Male', CAST(N'2025-03-15T00:00:00.000' AS DateTime), CAST(N'2025-03-14T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3060, N'Karthik', N'Parag', N'Mani', N'Parag', N'Sarojani', CAST(N'1995-09-05T00:00:00.000' AS DateTime), N'WUED52NOFASY', N'Selvam College of Technology', N'~/Student/Img2/dummy.png', N'6054628866', N'karthik@selvamtech.com', N'5Ln!995', N'Salem Road(NH 7), Pappinaickenpatti(post), Namakkal', N'Salem Road(NH 7), Pappinaickenpatti(post), Namakkal', N'Namakkal', N'656835', N'PHY', N'Male', CAST(N'2025-03-07T00:00:00.000' AS DateTime), CAST(N'2025-04-10T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3061, N'Paresh', N'Sachin', N'Goswami', N'Sachin', N'Nagina', CAST(N'1999-03-04T00:00:00.000' AS DateTime), N'WZPH7D2EG98W', N'Chiripal Poly Films Limited', N'~/Student/Img2/dummy.png', N'7738480986', N'paresh@chiripalgroup.com', N'6Zl!956', N'Chiripal House, 3rd and 4th Floor Shivranjani Cross Road Satellite', N'Chiripal House, 3rd and 4th Floor Shivranjani Cross Road Satellite', N'Ahmedabad', N'456808', N'ENG', N'Male', CAST(N'2025-04-09T00:00:00.000' AS DateTime), CAST(N'2025-04-15T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3062, N'Rakesh', N'Ephemia', N'Rawat', N'Ephemia', N'Tapas Das', CAST(N'1997-12-04T00:00:00.000' AS DateTime), N'AY7BXAFNYBA4', N'Samsara Shipping Pvt. Ltd. (Samsara Group)', N'~/Student/Img2/dummy.png', N'7878419230', N'rawat@samsaragroup.com', N'5Md''503', N'106/107,Technopolis Knowledge Park, 1st Floor, Mahakali Caves Road,Chakala, Chakala, Andheri €', N'106/107,Technopolis Knowledge Park, 1st Floor, Mahakali Caves Road,Chakala, Chakala, Andheri €', N'Mumbai', N'643672', N'HIN', N'Male', CAST(N'2025-03-30T00:00:00.000' AS DateTime), CAST(N'2025-03-22T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3063, N'J P', N'Brunda', N'Jaimin', N'Brunda', N'Priyanka', CAST(N'2002-12-16T00:00:00.000' AS DateTime), N'FQKN0ZC9J8N4', N'Secure Meters Limited', N'~/Student/Img2/dummy.png', N'6103513441', N'jpj@securemeters.com', N'8Ev)752', N'Pratapnagar Industrial Area, Khempura', N'Pratapnagar Industrial Area, Khempura', N'Udaipur', N'617069', N'ZOO', N'Male', CAST(N'2025-03-08T00:00:00.000' AS DateTime), CAST(N'2025-04-21T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3064, N'Niranjan', N'Khyati', N'Kaskar', N'Khyati', N'Santna', CAST(N'1997-01-04T00:00:00.000' AS DateTime), N'TE3D5OQNBIXB', N'Manipal Hospital', N'~/Student/Img2/dummy.png', N'7519800259', N'niranjan.k@manipalhospitals.com', N'1Gm*538', N'Doctor East Borges Road, Dona Paula', N'Doctor East Borges Road, Dona Paula', N'Panjim', N'520531', N'ME', N'Male', CAST(N'2025-03-20T00:00:00.000' AS DateTime), CAST(N'2025-04-30T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3065, N'Ravinder', N'Sai', N'Chokkam', N'Sai', N'Khushbu', CAST(N'1999-11-03T00:00:00.000' AS DateTime), N'OOIXL341NGQ9', N'Karvy', N'~/Student/Img2/dummy.png', N'6474681427', N'ravinder.chokkam@karvy.com', N'7Fk.464', N'46, Karvy House, Street No: 1, Avenue 4, Road No: 10, Banjara Hills', N'46, Karvy House, Street No: 1, Avenue 4, Road No: 10, Banjara Hills', N'Hyderabad', N'481449', N'ENG', N'Male', CAST(N'2025-03-24T00:00:00.000' AS DateTime), CAST(N'2025-03-24T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3066, N'SHUBHAM ', N'Madhan', N'Sharma', N'Madhan', N'Pooja', CAST(N'2003-01-30T00:00:00.000' AS DateTime), N'TBHPIR4L07BY', N'Resonance Eduventures Limited', N'~/Student/Img2/dummy.png', N'9941675796', N'shubham@resonance.ac.in', N'9Je(675', N'Vidhyadhar Nagar', N'Vidhyadhar Nagar', N'Jaipur', N'655980', N'ENG', N'Male', CAST(N'2025-03-17T00:00:00.000' AS DateTime), CAST(N'2025-03-25T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3067, N'Vikas', N'Ganesh', N'Agarwal', N'Ganesh', N'Any Bobby', CAST(N'1997-05-23T00:00:00.000' AS DateTime), N'WZ3ZD16CVYAY', N'Bonanza Portfolio Ltd', N'~/Student/Img2/dummy.png', N'6548878425', N'vikasagarwal@bonanzaonline.com', N'6Vt!401', N'2/2 1st floor laxmi insurance blg katafuli road dariya', N'2/2 1st floor laxmi insurance blg katafuli road dariya', N'Delhi', N'491900', N'PHY', N'Male', CAST(N'2025-03-04T00:00:00.000' AS DateTime), CAST(N'2025-04-02T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3068, N'Ramesh', N'Soundharya', N'Desai', N'Soundharya', N'Deeya Kumari', CAST(N'1996-12-16T00:00:00.000' AS DateTime), N'OA4IT6JBFIS9', N'Sagar Hospitals', N'~/Student/Img2/dummy.png', N'7223608258', N'rameshvdesai@sagarhospitals.in', N'8Bh"561', N'No. 44/54, 30th Cross, Tilaknagar, Jayanagar Extension', N'No. 44/54, 30th Cross, Tilaknagar, Jayanagar Extension', N'Bengaluru', N'580974', N'ME', N'Male', CAST(N'2025-03-04T00:00:00.000' AS DateTime), CAST(N'2025-05-03T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3069, N'Ajay', N'Mohan', N'Sharma', N'Mohan', N'Anjali Juneja', CAST(N'1999-10-21T00:00:00.000' AS DateTime), N'OIZLM2SI5BPX', N'The Imperial', N'~/Student/Img2/dummy.png', N'8074505592', N'it@theimperialindia.com', N'9Xi"411', N'The Imperial, Janpath Lane, Connaught Place', N'The Imperial, Janpath Lane, Connaught Place', N'New Delhi', N'591511', N'ME', N'Male', CAST(N'2025-03-25T00:00:00.000' AS DateTime), CAST(N'2025-03-27T00:00:00.000' AS DateTime))

INSERT [dbo].[STUDENT_MASTER_TABLE] ([SID], [FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (3070, N'Niraj', N'Ashish', N'Kumar', N'Ashish', N'Dwarika Devi', CAST(N'1998-02-23T00:00:00.000' AS DateTime), N'BA4SCV2MCO26', N'Barco Electronic Systems Private Limited', N'~/Student/Img2/dummy.png', N'6952325589', N'niraj.kumar@barco.com', N'2Nz-820', N'A-38A, B & C, Sector-64, Gautam Budh Nagar', N'A-38A, B & C, Sector-64, Gautam Budh Nagar', N'Noida', N'507148', N'HIN', N'Male', CAST(N'2025-03-04T00:00:00.000' AS DateTime), CAST(N'2025-04-15T00:00:00.000' AS DateTime))

SET IDENTITY_INSERT [dbo].[STUDENT_MASTER_TABLE] OFF

GO

SET IDENTITY_INSERT [dbo].[SYLLABUS_MASTER_TABLE] ON

 

INSERT [dbo].[SYLLABUS_MASTER_TABLE] ([SYID], [Subject], [Course], [Downloadlnk], [EntryDate]) VALUES (2, N'Technical', N'Advance Excel', N'Syllabus/Advance-Excel.pdf', CAST(N'2025-04-20' AS Date))

INSERT [dbo].[SYLLABUS_MASTER_TABLE] ([SYID], [Subject], [Course], [Downloadlnk], [EntryDate]) VALUES (3, N'Technical', N'Data Analyst', N'Syllabus/Data_Analytics.pdf', CAST(N'2025-04-20' AS Date))

INSERT [dbo].[SYLLABUS_MASTER_TABLE] ([SYID], [Subject], [Course], [Downloadlnk], [EntryDate]) VALUES (4, N'Technical', N'Data Analyst Advance', N'Syllabus/data_analytics_.pdf', CAST(N'2025-04-20' AS Date))

INSERT [dbo].[SYLLABUS_MASTER_TABLE] ([SYID], [Subject], [Course], [Downloadlnk], [EntryDate]) VALUES (5, N'Technical', N'Java Script', N'Syllabus/Core_Java_Syllabus.pdf', CAST(N'2025-04-20' AS Date))

SET IDENTITY_INSERT [dbo].[SYLLABUS_MASTER_TABLE] OFF

GO

/****** Object:  StoredProcedure [dbo].[ADMIN_DELETE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ADMIN_DELETE]

(

       @Original_aid int

)

AS

       SET NOCOUNT OFF;

DELETE FROM [ADMIN_MASTER_TABLE] WHERE (([aid] = @Original_aid))

GO

/****** Object:  StoredProcedure [dbo].[ADMIN_INSERT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ADMIN_INSERT]

(

       @Name nvarchar(256),

       @UserName nvarchar(256),

       @Password nvarchar(256),

       @EntryDate datetime

)

AS

       SET NOCOUNT OFF;

INSERT INTO [ADMIN_MASTER_TABLE] ([Name], [UserName], [Password], [EntryDate]) VALUES (@Name, @UserName, @Password, @EntryDate);

      

SELECT aid, Name, UserName, Password, EntryDate FROM ADMIN_MASTER_TABLE WHERE (aid = SCOPE_IDENTITY())

GO

/****** Object:  StoredProcedure [dbo].[ADMIN_SELECT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ADMIN_SELECT]

AS

       SET NOCOUNT ON;

SELECT        aid, Name, UserName, Password, EntryDate

FROM            ADMIN_MASTER_TABLE

GO

/****** Object:  StoredProcedure [dbo].[ADMIN_SELECT_FOR_LOGIN]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ADMIN_SELECT_FOR_LOGIN]

(

       @UserName nvarchar(256),

       @Password nvarchar(256)

)

AS

       SET NOCOUNT ON;

SELECT        aid, Name, UserName, Password, EntryDate

FROM            ADMIN_MASTER_TABLE

WHERE        (UserName = @UserName) AND (Password = @Password)

GO

/****** Object:  StoredProcedure [dbo].[ADMIN_UPDATE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ADMIN_UPDATE]

(

       @Name nvarchar(256),

       @UserName nvarchar(256),

       @Password nvarchar(256),

       @EntryDate datetime,

       @Original_aid int,

       @aid int

)

AS

       SET NOCOUNT OFF;

UPDATE [ADMIN_MASTER_TABLE] SET [Name] = @Name, [UserName] = @UserName, [Password] = @Password, [EntryDate] = @EntryDate WHERE (([aid] = @Original_aid));

      

SELECT aid, Name, UserName, Password, EntryDate FROM ADMIN_MASTER_TABLE WHERE (aid = @aid)

GO

/****** Object:  StoredProcedure [dbo].[BOOK_DELETE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[BOOK_DELETE]

(

       @Original_BookID int

)

AS

       SET NOCOUNT OFF;

DELETE FROM [BOOK_MASTER_TABLE] WHERE (([BookID] = @Original_BookID))

GO

/****** Object:  StoredProcedure [dbo].[BOOK_INSERT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[BOOK_INSERT]

(

       @BookName nvarchar(256),

       @Author nvarchar(256),

       @Detail nvarchar(256),

       @Price float,

       @PublicationYear nvarchar(256),

       @Branch nvarchar(256),

       @Quantities int,

       @CopyRight nvarchar(50),

       --@RentQnt int,

       @BookImages nvarchar(1000),

       @EntryDate datetime

)

AS

       SET NOCOUNT OFF;

INSERT INTO [BOOK_MASTER_TABLE] ([BookName], [Author], [Detail], [Price], [PublicationYear], [Branch], [Quantities], [CopyRight], [BookImages], [EntryDate]) VALUES (@BookName, @Author, @Detail, @Price, @PublicationYear, @Branch, @Quantities, @CopyRight, @BookImages,  @EntryDate);

      

SELECT BookID, BookName, Author, Detail, Price, PublicationYear, Branch, Quantities, CopyRight, RentQnt, BookImages, EntryDate FROM BOOK_MASTER_TABLE WHERE (BookID = SCOPE_IDENTITY())

GO

/****** Object:  StoredProcedure [dbo].[BOOK_SELECT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[BOOK_SELECT]

AS

       SET NOCOUNT ON;

SELECT        BookID, BookName, Author, Detail, Price, PublicationYear, Branch, Quantities, CopyRight, RentQnt, BookImages, pdf, EntryDate

FROM            BOOK_MASTER_TABLE

GO

/****** Object:  StoredProcedure [dbo].[BOOK_UPDATE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[BOOK_UPDATE]

(

       @BookName nvarchar(256),

       @Author nvarchar(256),

       @Detail nvarchar(256),

       @Price float,

       @PublicationYear nvarchar(256),

       @Branch nvarchar(256),

       @Quantities int,

       @CopyRight nvarchar(50),

       @RentQnt int,

       @Image nvarchar(1000),

       @pdf nvarchar(1000),

       @EntryDate datetime,

       @Original_BookID int,

       @BookID int

)

AS

       SET NOCOUNT OFF;

UPDATE [BOOK_MASTER_TABLE] SET [BookName] = @BookName, [Author] = @Author, [Detail] = @Detail, [Price] = @Price, [PublicationYear] = @PublicationYear, [Branch] = @Branch, [Quantities] = @Quantities, [CopyRight] = @CopyRight, [RentQnt] = @RentQnt, [Image] = @Image, [pdf] = @pdf, [EntryDate] = @EntryDate WHERE (([BookID] = @Original_BookID));

      

SELECT BookID, BookName, Author, Detail, Price, PublicationYear, Branch, Quantities, CopyRight, RentQnt, Image, pdf, EntryDate FROM BOOK_MASTER_TABLE WHERE (BookID = @BookID)

GO

/****** Object:  StoredProcedure [dbo].[BRANCH_DELETE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[BRANCH_DELETE]

(

       @BranchID int

)

AS

       SET NOCOUNT OFF;

DELETE FROM [BRANCH_MASTER_TABLE] WHERE (([BranchID] = @BranchID))

GO

/****** Object:  StoredProcedure [dbo].[BRANCH_INSERT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[BRANCH_INSERT]

(

       @Subject nvarchar(256),

       @BranchName nvarchar(256),

       @EntryDate datetime

)

AS

BEGIN

       SET NOCOUNT OFF;

INSERT INTO [BRANCH_MASTER_TABLE] ([Subject], [BranchName], [EntryDate]) VALUES (@Subject, @BranchName, @EntryDate);

END   

--SELECT BranchID, Subject, BranchName, EntryDate FROM BRANCH_MASTER_TABLE WHERE (BranchID = SCOPE_IDENTITY())

GO

/****** Object:  StoredProcedure [dbo].[BRANCH_SELECT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[BRANCH_SELECT]

AS

       SET NOCOUNT ON;

SELECT        BranchID, Subject, BranchName, EntryDate

FROM            BRANCH_MASTER_TABLE

GO

/****** Object:  StoredProcedure [dbo].[BRANCH_UPDATE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[BRANCH_UPDATE]

(

       @Subject nvarchar(256),

       @BranchName nvarchar(256),

       @EntryDate datetime,

       @BranchID int

)

AS

BEGIN

       SET NOCOUNT OFF;

UPDATE [BRANCH_MASTER_TABLE] SET [Subject] = @Subject, [BranchName] = @BranchName, [EntryDate] = @EntryDate WHERE (([BranchID] = @BranchID));

END

GO

/****** Object:  StoredProcedure [dbo].[COMPLAINT_INSERT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[COMPLAINT_INSERT]

    @Student_ID INT,

    @StudentName NVARCHAR(100),

    @EntryDate DATETIME,

    @Subject NVARCHAR(200),

    @Messge NVARCHAR(MAX),

    @ActionTaken NVARCHAR(100)

AS

BEGIN

    INSERT INTO COMPLAINT_MASTER_TABLE (

        Student_ID,

        StudentName,

        EntryDate,

        Subject,

        Messge,

        ActionTaken

    )

    VALUES (

        @Student_ID,

        @StudentName,

        @EntryDate,

        @Subject,

        @Messge,

        @ActionTaken

    )

END;

GO

/****** Object:  StoredProcedure [dbo].[COMPLAINT_SELECT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

create proc [dbo].[COMPLAINT_SELECT]

 

as

begin

select * from [dbo].[COMPLAINT_MASTER_TABLE]

end

GO

/****** Object:  StoredProcedure [dbo].[COMPLAINT_SELECT_ALL]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[COMPLAINT_SELECT_ALL]

AS

BEGIN

    SELECT * FROM COMPLAINT_MASTER_TABLE;

END;

GO

/****** Object:  StoredProcedure [dbo].[COMPLAINT_SELECT_BY_STUDENTID]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[COMPLAINT_SELECT_BY_STUDENTID]

    @Student_ID INT

AS

BEGIN

    SELECT *

    FROM COMPLAINT_MASTER_TABLE

    WHERE Student_ID = @Student_ID;

END;

GO

/****** Object:  StoredProcedure [dbo].[COMPLAINT_UPDATE_BYID]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[COMPLAINT_UPDATE_BYID]

    @CmpID INT

AS

BEGIN

    SET NOCOUNT ON;

 

    UPDATE [LIBRA_LIB].[dbo].[COMPLAINT_MASTER_TABLE]

    SET ActionTaken = 'Resolved'

    WHERE CmpID = @CmpID;

END;

GO

/****** Object:  StoredProcedure [dbo].[ISSUE_BOOK_GET_BOOK_QUANTITY]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ISSUE_BOOK_GET_BOOK_QUANTITY]

    @BookID INT

AS

BEGIN

    SELECT Quantities

    FROM BOOK_MASTER_TABLE

    WHERE BookID = @BookID;

END

GO

/****** Object:  StoredProcedure [dbo].[ISSUE_BOOK_QTY_BYID]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ISSUE_BOOK_QTY_BYID]

    @BookID INT

AS

BEGIN

    -- Select the quantities and other book details based on BookID

    SELECT [Quantities]

    FROM [LIBRA_LIB].[dbo].[BOOK_MASTER_TABLE]

    WHERE [BookID] = @BookID

END

GO

/****** Object:  StoredProcedure [dbo].[ISSUE_BOOK_UPDATE_QTY_BYID]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ISSUE_BOOK_UPDATE_QTY_BYID]

    @BookID INT,

    @NewQuantity INT

AS

BEGIN

    SET NOCOUNT ON;

 

    UPDATE BOOK_MASTER_TABLE

    SET Quantities = @NewQuantity

    WHERE BookID = @BookID;

END

GO

/****** Object:  StoredProcedure [dbo].[ISSUE_CHECK_BOOKISSUED_BYID]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ISSUE_CHECK_BOOKISSUED_BYID]

    @StudentID INT,

    @BookID INT

AS

BEGIN

    SELECT COUNT(*)

    FROM ISSUE_BOOK_MASTER_TABLE

    WHERE StudentID = @StudentID

      AND BookID = @BookID

      AND (

           ReturnDate IS NULL -- book not returned yet

           OR DATEADD(DAY, 30, IssueDate) > GETDATE() -- book return period not over yet

          );

END

GO

/****** Object:  StoredProcedure [dbo].[ISSUE_RETURN_BOOK_BY_STUDENT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ISSUE_RETURN_BOOK_BY_STUDENT]

    @StudentID INT,

    @BookID INT

AS

BEGIN

    DELETE FROM ISSUE_BOOK_TABLE

    WHERE StudentID = @StudentID AND BookID = @BookID;

END

GO

/****** Object:  StoredProcedure [dbo].[ISSUE_UPDATE_BOOK_QUANTITY]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ISSUE_UPDATE_BOOK_QUANTITY]

    @BookID INT,

    @NewQuantity INT

AS

BEGIN

    UPDATE BOOK_MASTER_TABLE

    SET Quantities = @NewQuantity

    WHERE BookID = @BookID;

END

GO

/****** Object:  StoredProcedure [dbo].[ISSUEBOOK_INSERT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ISSUEBOOK_INSERT]

    @StudentID INT,

    @StudentName NVARCHAR(100),

    @BookName NVARCHAR(200),

    @Author NVARCHAR(100),

    @Price DECIMAL(10, 2),

    @Details NVARCHAR(MAX),

    @PublicationYear INT,

    @QuantityRemain INT,

       @BookID INT,

    @IssueDate DATETIME,

    @ReturnDate DATETIME

AS

BEGIN

    INSERT INTO ISSUE_BOOK_MASTER_TABLE

    (

        StudentID,

        StudentName,

        BookName,

        Author,

        Price,

        Details,

        PublicationYear,

        QuantityRemain,

              BookID,

        IssueDate,

        ReturnDate

    )

    VALUES

    (

        @StudentID,

        @StudentName,

        @BookName,

        @Author,

        @Price,

        @Details,

        @PublicationYear,

        @QuantityRemain,

              @BookID,

        @IssueDate,

        @ReturnDate

    )

END

GO

/****** Object:  StoredProcedure [dbo].[ISSUEBOOK_SELECT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

 Create Proc [dbo].[ISSUEBOOK_SELECT]

 

  AS

  BEGIN

  select * from ISSUE_BOOK_MASTER_TABLE

  END

GO

/****** Object:  StoredProcedure [dbo].[PENALITY_STATUS_BY_STUDENTID]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

Create Proc [dbo].[PENALITY_STATUS_BY_STUDENTID]

(

@StudentID int

 

)

As

begin

Select * from ISSUE_BOOK_MASTER_TABLE where StudentID = @StudentID

end

GO

/****** Object:  StoredProcedure [dbo].[PUBLICATION_DELETE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[PUBLICATION_DELETE]

(

       @PID int

)

AS

BEGIN

       SET NOCOUNT OFF;

DELETE FROM [PUBLICATION_MASTER_TABLE] WHERE (([PID] = @PID))

END

GO

/****** Object:  StoredProcedure [dbo].[PUBLICATION_INSERT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[PUBLICATION_INSERT]

(

       @Publication nvarchar(256),

       @PublicationYear int,

       @EntryDate datetime

)

AS

       SET NOCOUNT OFF;

INSERT INTO [PUBLICATION_MASTER_TABLE] ([Publication], [PublicationYear], [EntryDate]) VALUES (@Publication, @PublicationYear, @EntryDate);

      

SELECT PID, Publication, PublicationYear, EntryDate FROM PUBLICATION_MASTER_TABLE WHERE (PID = SCOPE_IDENTITY())

GO

/****** Object:  StoredProcedure [dbo].[PUBLICATION_IPDATE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[PUBLICATION_IPDATE]

(

       @Publication nvarchar(256),

       @PublicationYear int,

       @EntryDate datetime,

       @PID int

)

AS

SET NOCOUNT OFF;

BEGIN

UPDATE [PUBLICATION_MASTER_TABLE] SET [Publication] = @Publication, [PublicationYear] = @PublicationYear, [EntryDate] = @EntryDate WHERE (([PID] =  @PID));

END   

GO

/****** Object:  StoredProcedure [dbo].[PUBLICATION_SELECT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[PUBLICATION_SELECT]

AS

       SET NOCOUNT ON;

SELECT        PID, Publication, PublicationYear, EntryDate

FROM            PUBLICATION_MASTER_TABLE

GO

/****** Object:  StoredProcedure [dbo].[SELECT_STUDENT_BY_BRANCH]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[SELECT_STUDENT_BY_BRANCH]

(

       @BranchName nvarchar(256)

)

AS

       SET NOCOUNT ON;

SELECT        SID, FirstName, MiddleName, LastName, FathersName, MothersName, DOB, IDCardNo, Institute, Image, ContactNo, Email, Password, LocalAddress, PermanentAddress, City, Pincode, BranchName, Gender,

                         EntryDate

FROM            STUDENT_MASTER_TABLE

WHERE        (BranchName = @BranchName)

GO

/****** Object:  StoredProcedure [dbo].[SELECT_STUDENT_FOR_LOGIN]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[SELECT_STUDENT_FOR_LOGIN]

(

       @Email nvarchar(256),

       @Password nvarchar(256)

)

AS

       SET NOCOUNT ON;

SELECT        SID, FirstName, MiddleName, LastName, FathersName, MothersName, DOB, IDCardNo, Institute, Image, ContactNo, Email, Password, LocalAddress, PermanentAddress, City, Pincode, BranchName, Gender,

                         EntryDate

FROM            STUDENT_MASTER_TABLE

WHERE        (Email = @Email) AND (Password = @Password)

GO

/****** Object:  StoredProcedure [dbo].[STUDENT_DELETE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

Create PROCEDURE [dbo].[STUDENT_DELETE]

(

       @SID int

)

AS

       SET NOCOUNT OFF;

DELETE FROM [STUDENT_MASTER_TABLE] WHERE (([SID] = @SID))

GO

/****** Object:  StoredProcedure [dbo].[STUDENT_INSERT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[STUDENT_INSERT]

(

       @FirstName nvarchar(256),

       @MiddleName nvarchar(500),

       @LastName nvarchar(500),

       @FathersName nvarchar(500),

       @MothersName nvarchar(500),

       @DOB datetime,

       @IDCardNo nvarchar(500),

       @Institute nvarchar(500),

       @Image nvarchar(500),

       @ContactNo nvarchar(256),

       @Email nvarchar(256),

       @Password nvarchar(256),

       @LocalAddress nvarchar(256),

       @PermanentAddress nvarchar(500),

       @City nvarchar(256),

       @Pincode nvarchar(256),

       @BranchName nvarchar(256),

       @Gender nvarchar(256),

       @EntryDate datetime,

       @ExpiryDate datetime

)

AS

       SET NOCOUNT OFF;

INSERT INTO [STUDENT_MASTER_TABLE] ([FirstName], [MiddleName], [LastName], [FathersName], [MothersName], [DOB], [IDCardNo], [Institute], [Image], [ContactNo], [Email], [Password], [LocalAddress], [PermanentAddress], [City], [Pincode], [BranchName], [Gender], [EntryDate], [ExpiryDate]) VALUES (@FirstName, @MiddleName, @LastName, @FathersName, @MothersName, @DOB, @IDCardNo, @Institute, @Image, @ContactNo, @Email, @Password, @LocalAddress, @PermanentAddress, @City, @Pincode, @BranchName, @Gender, @EntryDate, @ExpiryDate);

      

SELECT SID, FirstName, MiddleName, LastName, FathersName, MothersName, DOB, IDCardNo, Institute, Image, ContactNo, Email, Password, LocalAddress, PermanentAddress, City, Pincode, BranchName, Gender, EntryDate, ExpiryDate FROM STUDENT_MASTER_TABLE WHERE (SID = SCOPE_IDENTITY())

GO

/****** Object:  StoredProcedure [dbo].[STUDENT_INSERT_BY_ADMIN]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[STUDENT_INSERT_BY_ADMIN]

(

       @FirstName nvarchar(256),

       @ContactNo nvarchar(256),

       @Email nvarchar(256),

       @Password nvarchar(256),

       @EntryDate datetime,

       @ExpiryDate datetime

)

AS

       SET NOCOUNT OFF;

INSERT INTO [STUDENT_MASTER_TABLE] ([FirstName], [ContactNo], [Email], [Password],[EntryDate] , [ExpiryDate] ) VALUES (@FirstName, @ContactNo, @Email, @Password, @EntryDate, @ExpiryDate);

      

GO

/****** Object:  StoredProcedure [dbo].[STUDENT_MEMBERSHIP_SELECT_BYID]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[STUDENT_MEMBERSHIP_SELECT_BYID]

    @SID INT

AS

BEGIN

    SET NOCOUNT ON;

 

    SELECT *

    FROM STUDENT_MASTER_TABLE

    WHERE SID = @SID;

END;

GO

/****** Object:  StoredProcedure [dbo].[STUDENT_SEARCH_ADVANCE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[STUDENT_SEARCH_ADVANCE]

    @Category NVARCHAR(50),

    @SearchTerm NVARCHAR(255)

AS

BEGIN

    DECLARE @SqlQuery NVARCHAR(MAX)

 

    SET @SqlQuery = 'SELECT * FROM STUDENT_MASTER_TABLE WHERE ' + @Category + ' LIKE @SearchTerm'

 

    EXEC sp_executesql @SqlQuery, N'@SearchTerm NVARCHAR(255)', @SearchTerm

END

GO

/****** Object:  StoredProcedure [dbo].[STUDENT_SEARCH_BY_NAME]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[STUDENT_SEARCH_BY_NAME]

(

       @FirstName nvarchar(256)

)

AS

       SET NOCOUNT ON;

SELECT        SID, FirstName, MiddleName, LastName, FathersName, MothersName, DOB, IDCardNo, Institute, Image, ContactNo, Email, Password, LocalAddress, PermanentAddress, City, Pincode, BranchName, Gender,

                         EntryDate

FROM            STUDENT_MASTER_TABLE

WHERE        (FirstName = @FirstName)

GO

/****** Object:  StoredProcedure [dbo].[STUDENT_SELECT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[STUDENT_SELECT]

AS

       SET NOCOUNT ON;

SELECT        SID, FirstName, MiddleName, LastName, FathersName, MothersName, DOB, IDCardNo, Institute, Image, ContactNo, Email, Password, LocalAddress, PermanentAddress, City, Pincode, BranchName, Gender,

                         EntryDate,ExpiryDate

FROM            STUDENT_MASTER_TABLE

GO

/****** Object:  StoredProcedure [dbo].[STUDENT_SELECT_BY_SID]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[STUDENT_SELECT_BY_SID]

(

       @SID int

)

AS

       SET NOCOUNT ON;

SELECT        SID, FirstName, MiddleName, LastName, FathersName, MothersName, DOB, IDCardNo, Institute, Image, ContactNo, Email, Password, LocalAddress, PermanentAddress, City, Pincode, BranchName, Gender,

                         EntryDate

FROM            STUDENT_MASTER_TABLE

WHERE        (SID = @SID)

GO

/****** Object:  StoredProcedure [dbo].[STUDENT_UPDATE]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[STUDENT_UPDATE]

(

       @FirstName nvarchar(256),

       @MiddleName nvarchar(500),

       @LastName nvarchar(500),

       @FathersName nvarchar(500),

       @MothersName nvarchar(500),

       @DOB datetime,

       @IDCardNo nvarchar(500),

       @Institute nvarchar(500),

       @Image nvarchar(500),

       @ContactNo nvarchar(256),

       @Email nvarchar(256),

       @Password nvarchar(256),

       @LocalAddress nvarchar(256),

       @PermanentAddress nvarchar(500),

       @City nvarchar(256),

       @Pincode nvarchar(256),

       @BranchName nvarchar(256),

       @Gender nvarchar(256),

       @SID int

)

AS

       SET NOCOUNT OFF;

UPDATE [STUDENT_MASTER_TABLE] SET [FirstName] = @FirstName, [MiddleName] = @MiddleName, [LastName] = @LastName, [FathersName] = @FathersName, [MothersName] = @MothersName, [DOB] = @DOB, [IDCardNo] = @IDCardNo, [Institute] = @Institute, [Image] = @Image, [ContactNo] = @ContactNo, [Email] = @Email, [Password] = @Password, [LocalAddress] = @LocalAddress, [PermanentAddress] = @PermanentAddress, [City] = @City, [Pincode] = @Pincode, [BranchName] = @BranchName, [Gender] = @Gender  WHERE (([SID] = @SID));

      

SELECT SID, FirstName, MiddleName, LastName, FathersName, MothersName, DOB, IDCardNo, Institute, Image, ContactNo, Email, Password, LocalAddress, PermanentAddress, City, Pincode, BranchName, Gender FROM STUDENT_MASTER_TABLE WHERE (SID = @SID)

GO

/****** Object:  StoredProcedure [dbo].[SYLLABUS_INSERT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[SYLLABUS_INSERT]

    @Subject NVARCHAR(100),

    @Course NVARCHAR(100),

    @Downloadlnk NVARCHAR(255),

    @EntryDate DATETIME

AS

BEGIN

    SET NOCOUNT ON;

 

    INSERT INTO SYLLABUS_MASTER_TABLE (

        [Subject],

        [Course],

        [Downloadlnk],

        [EntryDate]

    )

    VALUES (

        @Subject,

        @Course,

        @Downloadlnk,

        @EntryDate

    );

END;

GO

/****** Object:  StoredProcedure [dbo].[SYLLABUS_SELECT]    Script Date: 4/30/2025 1:36:41 AM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[SYLLABUS_SELECT]

AS

BEGIN

    SET NOCOUNT ON;

 

    SELECT *

    FROM SYLLABUS_MASTER_TABLE;

END;

GO

USE [master]

GO

ALTER DATABASE [LIBRA_LIB] SET  READ_WRITE

GO

 

 

Download here