Esempio n. 1
0
        //this method is used to add the record in the table with the help of Insert code of the crud method
        protected void Button1_Click(object sender, EventArgs e)
        {
            DataRecord.Record instance   = new DataRecord.Record();
            String            Title      = txtSubject.Text.ToString();
            String            Name       = TxtBookName.Text.ToString();
            String            AuthorName = TxtAuthorName.Text.ToString();
            int Page  = Convert.ToInt32(txtPage.Value);
            int Price = Convert.ToInt32(txtPrice.Value);

            instance.addBook(Title, Name, AuthorName, Page, Price);
            result.InnerHtml = "Book is Saved";
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            DataRecord.Record instance   = new DataRecord.Record();
            String            Title      = txtBookID.Text.ToString();
            String            Name       = txtMemberID.Text.ToString();
            String            AuthorName = txtDate.Text.ToString();

            instance.issuedBook(Title, Name, AuthorName);
            result.InnerHtml = "Book is Saved";
            txtBookID.Text   = "";
            txtMemberID.Text = "";
            txtDate.Text     = "";
        }
Esempio n. 3
0
        protected void BtnSubmit_Click(object sender, EventArgs e)
        {
            String Name    = TxtName.Text;
            String Email   = TxtEmail.Text;
            String Subejct = TxtSubject.Text;
            String Message = TxtMsg.Text;

            DataRecord.Record instance = new DataRecord.Record();
            instance.contact(Name, Email, Subejct, Message);
            result.InnerHtml = "We Will Contact you Soon . Thanks for the Feed Back";
            TxtName.Text     = "";
            TxtEmail.Text    = "";
            TxtSubject.Text  = "";
            TxtMsg.Text      = "";
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            DataRecord.Record instance = new DataRecord.Record();
            String            Name     = txtName.Text.ToString();
            String            Password = txtPassword.Value.ToString();


            if (instance.verify(Name, Password) == 1)
            {
                Result.InnerHtml = "";
                Response.Redirect("AdminArea.aspx");
            }
            else
            {
                Result.InnerHtml = "Invalid User Name or Password";
            }
        }