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.Configuration;
using System.Data;
namespace manish
{
public partial class WebForm1 : System.Web.UI.Page
{
if (dt.Rows.Count > 0)
{
Response.Write("Login Successfull");
Response.Redirect("Student_Details.aspx");
//we can show messagebox using
ScriptManager.RegisterStartupScript(this, this.GetType(), "Message", "alert('Login
Successfull');", true);
}
else
{
ScriptManager.RegisterStartupScript(this, this.GetType(),
"Message", "alert('Wrong Username/Password');", true);
TextBox1.Text = "";
TextBox2.Text = "";