Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Protected Sub Button_SeeWholeCalendar_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button_SeeWholeCalendar.Click '// define a connection to the database Dim cs As String = ConfigurationManager.ConnectionStrings("WhatEverNameYouWant").ConnectionString cs = cs.Replace("App_Data\GC.accdb", Server.MapPath("App_Data\GC.accdb")) Dim cn As New OleDbConnection(cs) '// define the sql statement to execute Dim cmd As New OleDbCommand("SELECT * FROM [Table1]", cn) Try '// open the connection cn.Open() '// execute the sql statement Using reader As OleDbDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection) ' While reader.Read() '// this loops through all of the returned records 'Response.Write("blah") 'End While GridView1.DataSource = reader GridView1.DataBind() End Using Catch ex As Exception Response.Write(ex.Message) Finally If cn.State <> ConnectionState.Closed Then cn.Close() End If End Try End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.