请帮帮看看最后一行代码是什么原因ajax
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (Request.QueryString["id"] != null)
{
GetInformation(int.Parse(Request.QueryString["id"]));
}
}
}
public void GetInformation(int userId)
{
Star star = Shangji.BLL.StarManager.GetStarById(userId);
lblUserName.Text = "中国"+star.Country+"明星——"+star.UserName;
lblBirthday.Text = "生日:"+star.Birthday;
lblContellation.Text = "星座:" + star.Constellation;
lblDegree.Text= "学历:"+ star.Degree;
lblEnglishName.Text = "英文名:" + star.EnglishName;
lblWeight.Text = "体重:" + star.Weight + "";
// this.divImg.Style.Add("images/"+star.ImgPath);
}
}
最后一行代码 为什么divImg在窗体里显示不了呢 我打了this.不会自动显示出来是什么原因啊 这里面为了能够看明白最后一行是我自己手写的 还有之前也会遇到这样的问题 就是在代码层那块里 有时控件没办法用 点不出来 我想请教是什么原因 首先我在源代码里已经命名了 顺便请问一下 怎么上传图片的 我上传不了的 谢谢