Hi,
i'm having trouble formatting my label into the currency format in the code behind file.
i have a label in a user control:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TotalRaised.ascx.cs" Inherits="UserControls_TotalRaised" %>
<asp:Label ID="TotalRaised" CssClass="total" runat="server" Text="" ></asp:Label>
but cant apply it to the TotalRaised label below, any ideas?:
protected void Page_Load(object sender, EventArgs e)
{
String strConnString = ConfigurationManager.AppSettings["c4sConnectionString"];
String strQuery = "SELECT SUM(amount_paid) As TotalSchool FROM Collections";
SqlConnection con = new SqlConnection(strConnString);
SqlCommand cmd = new SqlCommand();
cmd.CommandType = C ...
Go to the complete details ...