protected void Page_Load(object sender, EventArgs e) { AuthenticateUser(); intProfile = Int32.Parse(Request.Cookies["profileid"].Value); string strValue = String.Format("{0:C}", "0"); int intId = 0; if (Request.QueryString["id"] != null && Request.QueryString["id"] != "") { oCustomized = new Customized(intProfile, dsn); Int32.TryParse(Request.QueryString["id"], out intId); DataSet ds = oCustomized.GetItem(intId); if (ds.Tables[0].Rows.Count > 0) { strValue = String.Format("{0:C}", ds.Tables[0].Rows[0]["amount"]); } } Response.ContentType = "application/text"; Response.Write(strValue); Response.End(); }