StringBuilder table = new StringBuilder(); protected void Page_Load(object sender, EventArgs e) { if(!Page.IsPostBack) { SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\odt\Documents\login.mdf;Integrated Security=True;Connect Timeout=30"); ; con.Open(); SqlCommand cmd = new SqlCommand(); cmd.CommandText = "select * from [log] "; cmd.Connection = con; SqlDataReader dt = cmd.ExecuteReader(); if (dt.HasRows) { if (dt.Read()) { } } // cmd.ExecuteNonQuery(); con.Close(); }
<div class="box-body table-responsive no-padding"> <table ID="tdb" class="table table-hover" > <tr> <th>ID</th> <th>User</th> <th>Password</th>
<th>Password</th>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)