I have a static field in a non static class.
public class DBtools
{
public static string ConString ="XXXXXXXXX";
}
This field is assigned to property in the code.
SqlDataSource1.ConnectionString = DBtools.ConString;
But after i run this app I'm getting a error Object reference not set to an instance of an object
How come this is happening? It's a static field.