Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
Dim con As New System.Data.OleDb.OleDbConnection Dim dreader As System.Data.OleDb.OleDbDataReader Dim myCommand As New System.Data.OleDb.OleDbCommand Dim myPath As String myPath = Server.MapPath("hayat.mdb") con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data source=" & myPath & ";" myCommand.CommandText = "select * from empdetails where empid between " & TextBox1.Text & " AND " & TextBox2.Text & " order by empid" myCommand.Connection = con Try con.Open() dreader = myCommand.ExecuteReader GridView1.DataSource = dreader GridView1.DataBind() dreader.Close() Catch ex As Exception lblerror.Text = "There is an error" + ex.ToString Finally con.Close() End Try
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
19 Experts available now in Live!