protected void btnSend_Click(object sender, EventArgs e) { DatabaseModel.Class1 obj = new DatabaseModel.Class1(); String query = "insert into ContactTable values ('" + txtName.Text + "','" + txtEmail.Text + "','" + txtSubject.Text + "','" + txtMsg.Text + "')"; obj.SimpleQuery(query); txtEmail.Text = ""; txtMsg.Text = ""; txtName.Text = ""; txtSubject.Text = ""; screen.InnerHtml = "<script>alert('Your Message has been sent '); </script>"; }
protected void btnSend_Click(object sender, EventArgs e) { DatabaseModel.Class1 obj = new DatabaseModel.Class1(); obj.SimpleQuery("insert into Player values ('" + txtName.Text + "','" + txtContact.Text + "','" + txtAddress.Text + "','" + txtGame.Text + "')"); txtAddress.Text = ""; txtContact.Text = ""; txtGame.Text = ""; txtName.Text = ""; screen.InnerHtml = "<script>alert('Player is Registered '); </script>"; }
protected void btnSend_Click(object sender, EventArgs e) { DatabaseModel.Class1 obj = new DatabaseModel.Class1(); obj.SimpleQuery("insert into EventTable values ('" + txtName.Text + "','" + txtDuration.Text + "','" + txtStartDate.Text + "','" + txtEndDate.Text + "','" + txtBudget.Text + "')"); txtBudget.Text = ""; txtDuration.Text = ""; txtEndDate.Text = ""; txtStartDate.Text = ""; txtName.Text = ""; screen.InnerHtml = "<script>alert('Event is Registered '); </script>"; }
protected void btnSend_Click(object sender, EventArgs e) { DatabaseModel.Class1 obj = new DatabaseModel.Class1(); DataTable tbl = new DataTable(); tbl = obj.FetchRecord("select * from LoginTable where UserEmail='" + txtEmail.Text + "' and UserPassword='******'"); if (tbl.Rows.Count > 0) { Response.Redirect("Panel.aspx"); } else { screen.InnerHtml = "<script>alert('Try to Login with Correct User Id and Password');</script>"; } txtEmail.Text = ""; txtPassword.Text = ""; }