If - else confirmation error message in flash from .NET

me again with my values and .NET :-/

I was very succesful sending my values to .NET and my confirmation works great.
The problem is that if there is an error, i will show an error message in Flash.
The way i have it on flash is… if (this.writing==“ok”) values sent, else “show error message in flash”

The way i need to have in actionscript is if (this.writing==“ok”) values sent, else (this.writing==“fail”) bla bla bla.

because .NET wants to send me a “fail” message instead of assuming a no response equal failure… please help!

how do i write this proper.

here is my as code


on (press) {
    myData = new LoadVars();
    myData.position = "1";
    myData.status = "I";
    myData.sendAndLoad("COCUpdates.aspx", myData, "POST");
    myData.onLoad = function() {
        if(this.writing=="pass"){
            unloadMovieNum(22);
            loadMovieNum("mainA.swf", 20);
            loadMovieNum("intro.swf", 1);
        }
        else{
            gotoAndStop(2)
            _root.mc1.b3.confirmation.text = "No Data Saved";   
        }
    }
}

here is my asp code as well that right now is receiving the values from flash but i will be sending an error message to flash if it didn’t receive the values instead of just assuming that it didn’t receive anything.


using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace coc
{
    /// <summary>
    /// Summary description for WebForm1.
    /// </summary>
    public class COCUpdates : System.Web.UI.Page
    {
        protected System.Web.UI.WebControls.Label lblPos;
        protected System.Web.UI.WebControls.Label lblStat;
    
        private void Page_Load(object sender, System.EventArgs e)
        {
            // Put user code to initialize the page here
            string strPos = Request.Form["position"].ToString();
            string strSta = Request.Form["status"].ToString();
            //lblPos.Text = strPos;
            //lblStat.Text = strSta;
            Response.Write("writing=pass&" );
    }

        #region Web Form Designer generated code
        override protected void OnInit(EventArgs e)
        {
            //
            // CODEGEN: This call is required by the ASP.NET Web Form Designer.
            //
            InitializeComponent();
            base.OnInit(e);
        }
        
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {    
            this.Load += new System.EventHandler(this.Page_Load);

        }
        #endregion
    }
}