Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click '// define a connection to the database Dim cn As New OleDbConnection(ConfigurationManager.ConnectionStrings("WhatEverNameYouWant").ConnectionString) '// define the sql statement to execute Dim cmd As New OleDbCommand("SELECT * FROM [Contacts]", 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 End While 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
|How to get the web content with different encodings||2||43|
|Replace < with <||14||59|
|performance issue in asp web||5||27|
While working with ASP.NET, how would I resolve the following error: "The best overloaded method match for 'System.Convert.ToString(o
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
10 Experts available now in Live!