前台 <asp:Label ID="lblRegionCost" runat="server" Text='<%# (Convert.ToDecimal(DataBinder.Eval(Container.DataItem,"RegionCost"))) .ToString("N2")%>'></asp:Label> 后台 AgentPrice ap = (AgentPrice)e.Item.DataItem; Label lblRegionCost = e.Item.FindControl("lblRegionCost") as Label; lblRegionCost.Text= String.Format( "{0:N2}", ap.RegionCost);