Microsoft Azure
[Home] This page contains material related to Microsoft Azure. Microsoft AzureThe following are the tips related to Microsoft Azure:
A tutorial is here A tutorial is here The code used in the example for the database is given next. To add a button and a grid view: And the code behind to connect to the database is: System.Data.SqlClient.SqlConnection _SqlConnection = new System.Data.SqlClient.SqlConnection(); _SqlConnection.ConnectionString = "<<<<<--- PASTE CONNECTION STRING HERE --->>>>>"; System.Data.SqlClient.SqlCommand _SqlCommand = new System.Data.SqlClient.SqlCommand("SELECT * FROM Table1", _SqlConnection); System.Data.SqlClient.SqlDataAdapter _SqlDataAdapter = new System.Data.SqlClient.SqlDataAdapter(); _SqlDataAdapter.SelectCommand = _SqlCommand; DataTable _DataTable = new DataTable(); _DataTable.Locale = System.Globalization.CultureInfo.InvariantCulture; _SqlDataAdapter.Fill(_DataTable); GridView1.DataSource = _DataTable; GridView1.DataBind(); |