/ Published in: C#

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
try { // Create and open a connection object conn.Open(); // Set Stored Proc cmd.CommandType = CommandType.StoredProcedure; // Set Parameters cmd.Parameters["@applicationName"].Value = "FTU"; // execute the command rdr = cmd.ExecuteReader(); // iterate through results, printing each to console while (rdr.Read()) { configSettings.Add(rdr["AppKey"], rdr["AppValue"]); } } finally { if (conn != null) conn.Close(); if (rdr != null) rdr.Close(); }
Comments
