예제 #1
0
        public ActionResult Check(string id)
        {
            try
            {
                List <Stationery> ls    = st.search(id);
                string            chuoi = "";

                foreach (Stationery s in ls)
                {
                    chuoi += "<tr>";
                    chuoi += "<td>" + s.ProductId + "</td>";
                    chuoi += "<td>" + s.ProductName + "</td>";
                    chuoi += "<td>" + s.Rate + "</td>";
                    chuoi += "<td>" + s.Quantity + "</td>";
                    //  chuoi += "<td>" + s.Arise + "</td>";
                    chuoi += "<td>" + s.CatalogeId + "</td>";
                    chuoi += "<td>" + s.Description + "</td>";
                    chuoi += "<td><a href='/Stationery/ProcessUpdate/" + s.ProductId + "'>Edit</a>||<a href='/Stationery/DeleteStationery/" + s.ProductId + "' class='xoa'>Delete</a></td>";
                    chuoi += "</tr>";
                }

                Response.Write(chuoi);
            }
            catch { }
            return(null);
        }