Posted on: 1/4/2015 10:18:37 AM | Views : 595

Hello Friends!! Currently I am working with Three Tire Architecture for a project where I need to validate data. I was thinking how could I pass the Msg Text to lblMsg.Text (label) in the UI which is highlighted for an alert message?? Any idea or suggestion would be appreciated or is it possible to do?? The code is given below that is for saving data:
Category_Provider.cs: DAL public class Category_Provider { public static List<Category> CreateCategories(string name, string Msg) { List<Category> lst = null; using (SMPURCHASEEntities db = new SMPURCHASEEntities()) //Database Connection { Category obj = new Category(); if (name.Length == 0) //If no input { Msg = "Please insert a categoryname"; //Alert msg } else { obj.Category ...

Go to the complete details ...