Jan 28, 2011 01:33 PM|PeteNet|LINK
any errors (you should report them)
But, I suspect it's your connection string; are you trying to use one from the config?
you could use the same as you would use for a SqlDataSource, for example:
SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString);