public partial class abc : System.Web.UI.Page { Dictionary<string, string> CategoryList = null; protected void Page_Load(object sender, EventArgs e) { cm = new CommonMethods(); CategoryList = cm.GetCategory(); if (!IsPostBack) { DDLCategory.DataSource = CategoryList.Values; DDLCategory.DataBind(); } } }
if (!IsPostBack) { CategoryList = cm.GetCategory(); DDLCategory.DataSource = CategoryList.Values; DDLCategory.DataBind(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)