예제 #1
0
        /// ProductType的commbox列表
        /// </summary>
        /// <returns></returns>
        public ActionResult GetTypesList()
        {
            IList <ProductTypeInfo> ProductTypes = productTypeBLL.GetProductTypesList();
            //System.Web.Extentions的DLL中
            JavaScriptSerializer json = new JavaScriptSerializer();
            string Str = json.Serialize(ProductTypes);//   方法一

            return(Content(Str, "text/html;charset=UTF-8"));
        }