最近在寫程式時遇到要把ListView裡的label值放到Session中供其它頁面使用,
google了好久,最後發現要寫在ListView的ItemCommand裡
Session["name"] = ((Label)(e.FindControl("labelName1"))).Text;
最近在寫程式時遇到要把ListView裡的label值放到Session中供其它頁面使用,
google了好久,最後發現要寫在ListView的ItemCommand裡
Session["name"] = ((Label)(e.FindControl("labelName1"))).Text;
請先 登入 以發表留言。