예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        MembershipUser ma = Membership.GetUser();

        key           = ma.ProviderUserKey.ToString();
        TextBox1.Text = key;
        CheckSource();
        if (TextBox2.Text == "0")
        {
            Response.Redirect("~/Client/ClientInfo.aspx?UserId=" + key);
        }
        else
        {
            DataView dv       = (DataView)SqlDataSource3.Select(DataSourceSelectArguments.Empty);
            int      clientid = (int)dv.Table.Rows[0][0];
            TextBox3.Text = clientid.ToString();
        }
        if (Request.QueryString["rfc"] != null)
        {
            if (Request.QueryString["rfc"].ToString() == "1")
            {
                UpdateLabel.Text = "Your Request had been Updated";
            }
            else if (Request.QueryString["rfc"].ToString() == "3")
            {
                UpdateLabel.Text = "Your Tentative Reservation had been Cancelled";
            }
            else
            {
                UpdateLabel.Text = "Your Request had been Submitted";
            }
        }
        else
        {
        }
        if (Request.QueryString["rfr"] != null)
        {
            if (Request.QueryString["rfr"].ToString() == "1")
            {
                UpdateLabel.Text = "Your Request had been Updated";
            }
            else if (Request.QueryString["rfr"].ToString() == "3")
            {
                UpdateLabel.Text = "Your Tentative Reservation (Date) had been Updated";
            }
            else
            {
                UpdateLabel.Text = "Your Request had been Submitted";
            }
        }
        else
        {
        }
        if (Request.QueryString["bbb"] != null)
        {
            if (Request.QueryString["bbb"].ToString() == "1")
            {
                UpdateLabel.Text = "You had beed confirmed your billing statement it is subjected for Contract";
            }
        }
        else
        {
        }
    }