Monthly Archives: February 2014

Export in Excel from datatable

// these namespaces need to be added to your code behind fileusing System.Configuration;using System.Data.SqlClient;using System.Data; namespace MySpot.UserPages{    public partial class Journal : System.Web.UI.Page    {        SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings[“MySpotDBConnStr”].ConnectionString);        DataTable dt = new DataTable();                // regular page_load from .aspx file        … Continue reading

Posted in Uncategorized | Leave a comment