Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ddlPhoto.DataSource    = imagemanage.GetAllPhoto("tb_Image").Tables[0].DefaultView;
         ddlPhoto.DataTextField = "编号";
         ddlPhoto.DataBind();
         imagemanage.PhotoID = ddlPhoto.SelectedValue;
         imgPhoto.ImageUrl   = imagemanage.FindPhotoByID(imagemanage, "tb_Image").Tables[0].Rows[0][1].ToString();
     }
 }