Horje
c# how to fill a datatable Code Example
c# how to fill a datatable
public DataTable GetData()
{
    SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["BarManConnectionString"].ConnectionString);
    conn.Open();
    string query = "SELECT * FROM [EventOne]";
    SqlCommand cmd = new SqlCommand(query, conn);

    DataTable dt = new DataTable();
    dt.Load(cmd.ExecuteReader());
    conn.Close();
    return dt;
}




Csharp

Related
how to make button in asp.net to go to other page Code Example how to make button in asp.net to go to other page Code Example
c# get process file location Code Example c# get process file location Code Example
c# list audio devices Code Example c# list audio devices Code Example
check file lock c# Code Example check file lock c# Code Example
Metadata publishing for this service is currently disabled Code Example Metadata publishing for this service is currently disabled Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9