if I don't put a namespace in my classes (vs.net 2008), which namespace do my classes get built under?
update Its strange, when I add a namespace I can't seem to reference the classes methods from my user control.
If I explicitly set a namespace, and add a 'using ...' in my control, I still can't see it!
How can this be?
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Configuration; /// <summary> /// Summary description for Globals /// </summary> public class Globals { public Globals() { } public static string ConnectionString { get { return ConfigurationManager.ConnectionStrings["MyDb"].ConnectionString; } } } My control:
using System; using System.Data; using System.Data.SqlClient; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class MyStats : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { //etc.