if (currentcount > 0) //返回数据行数大于0
        {
            for (int i = 1; i <= 12; i++)
            {
                if (ds == null)
                {
                    Ext.Net.X.Msg.Alert("提示", "没有相关图片").Show();  //提示没有找到图片
                }
                else
                {
                    int x = ds.Tables[0].Rows.Count;
                    for(int j=1;j<x;j++)
                    {
                    string name = "pic" + j.ToString();
                    ImageButton imageb =(ImageButton)form1.FindControl(name);
                   imageb.AlternateText= ds.Tables[0].Rows[j - 1]["P_Name"].ToString();
                   imageb.ImageUrl= ds.Tables[0].Rows[j - 1]["ready03"].ToString();
                   imageb.Visible = true;
                    }
                }
                
                    
                }
                
                
                
            }
我通过存储过程分页查找图片信息,再把图片的imageurl循环赋值给imagebotton,现在我要做到点击一个imagebotton弹出一个层来显示它的大图并且可以点击上一条,下一条这样浏览。