后台生成前台图片展示

 前台:



   

 

 


                               

                               

                               

                                   

                                       

                                           
                                            <%= ImgList %>
                                           
                                       

                                        <%--

               
--%>
                                   

                               

                               

                               

                           

 

 

后台:

        private void Img()
        {
            ProductInfo productinfo_BLL = new ProductInfo();
            Model.ProductInfo productinfo_Model = new Model.ProductInfo();

            ImgList = @"";
            int i;
            for (i = 1; i < 20; i++)
            {
                if (productinfo_BLL.Exists(i) == true)
                {
                    productinfo_Model = productinfo_BLL.GetModel(i);
                    ImgList += "

" +<br>                         productinfo_Model.pName.ToString()<br>                         + "
";
                }
            }
        }

 

你可能感兴趣的:(VS2010)