Skip to content
Loading
  • +1
    hi 
    Varun Setia
     
    its doesnt work 
    +1
  • +1
    var CategoryName = TxtCategoryName.Text;
    var Category = int.Parse(Request["Id"]);
    WallPaperCategory std = (from x in context.WallPaperCategries
    where x.CategoryName == CategoryName
    select x).
      
     
    std is not empty...bt still doesnt work...???? 
    +1
  • +1
    hi Varun Setia
     
    now i am try this bt still not
     
    var CategoryName = TxtCategoryName.Text;
    var Category = int.Parse(Request["Id"]);
    WallPaperCategory std = (from x in context.WallPaperCategries
    where x.CategoryName == CategoryName
    select x).
    if (std != null)
    {
    std.CatergoryName = TxtCategoryName.Text;
    context.SaveChanges();
    +1