Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
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.
|jquery datatables, asp.net MVC||9||60|
|"Emulate" TAB key when press Enter Key||3||70|
|In an ASP.NET C# application using .NetFramework 4.0, how would you resolve the following function to make the first column (txtBanknum) of a GRIDVIEW READONLY when the user is in EDIT mode?||1||53|
|asp.net mvc , views, hidden values ?||2||22|