hi, i am having a strange problem, i have a static class like this
public static class BlogDataAccess
{
private static Blog _Blg;
public static Blog Blg
{
get
{
_Blg = new Blog ();
return _Blog ;
}
}
}
then in my page i do the following
var DataContext= new DataClasses();
BlogDataAccess.Blg.ArticleTitle ="Title";
DataContext.Blog.InsertOnSubmit(BlogDataAccess.Blg);
DataContext.SubmitChanges();
the record get inserted but with null value of the ArticleTitle field thanks in advanced.