Write logs to files to assist debugging.
System prompt System.char "does not contain a property named" photo ". Click the picture to go to the user details interface, the first interface is displayUseruser. aspx, click the user profile picture to go to the Userinfowebpage.aspx, and set a DalaList in the second interface to receive information, but I fail to receive it anyway. Page jump display is successful, I set a Button can display.
Here is the code in the background of my user details screen:
protected void Page_Load(object sender, EventArgs e)
{
this.LoadDataList();
}
protected void DataList1_EditCommand(object source, DataListCommandEventArgs e)
{
this.DataList1.EditItemIndex = e.Item.ItemIndex;
this.LoadDataList();
}
private void LoadDataList()
{
Entity.User u = new Entity.User();
u.Userid = Request.QueryString["userid"];
this.DataList1.DataSource = Business.AdminBusiness.SelectUserbyUID(u);
this.DataList1.DataBind();
}
The SelectUserbyUID called by
and the stored procedure used in this method are error-free and output information normally.
So why on earth is the second interface jump not receiving any data?
0 Answer
这家伙很懒,什么都没留下...