because your <%#DataBinder.Eval(Container.DataItem,"purchase_order_num")%> is a child control of Label3, use<asp:Label id="Label3" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"purchase_order_num")%>'>
</asp:Label>... Label tt=(Label)e.Item.FindControl("Label3"); or (didn't test, so it might not work) LiteralControl lc=(LiteralControl)e.Item.FindControl("Label3").Controls[0];
string x = lc.Text;
</asp:Label>... Label tt=(Label)e.Item.FindControl("Label3"); or (didn't test, so it might not work) LiteralControl lc=(LiteralControl)e.Item.FindControl("Label3").Controls[0];
string x = lc.Text;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货