Exemple #1
0
    protected void GridView2_SelectedIndexChanged(object sender, EventArgs e)
    {
        orderid = int.Parse(BookOrder.orderno.ToString());
        BookOrder.AddBookorder(1, int.Parse(GridView2.SelectedRow.Cells[1].Text.ToString()));
        Label8.Text            = BookOrder.orderno.ToString();
        Session["ordernumber"] = int.Parse(Label8.Text.ToString());
        Label9.Text            = Session["uid"].ToString();
        if (Label9.Text.Length == 0)
        {
            Response.Redirect("~/Member site/Login.aspx");
        }
        else
        {
            Session["m2"] = "Dear :   " + Session["cname"] + "your Are Order This Book .if you Lend The Book Click to Conform your Lending Else Click to Reorder ";

            Session["m1"] = "Dear :   " + Session["cname"] + "   Wait A Few Secound We Will Send A Reply For Your Lend";
            Response.Redirect("~/Member site/Membership.aspx");
        }
    }
 protected void GridView1_SelectedIndexChanged2(object sender, EventArgs e)
 {
     try
     {
         orderid = int.Parse(BookOrder.orderno.ToString());
         BookOrder.AddBookorder(1, int.Parse(GridView1.SelectedRow.Cells[1].Text.ToString()));
         Label12.Text           = BookOrder.orderno.ToString();
         Session["ordernumber"] = int.Parse(Label12.Text.ToString());
         Label13.Text           = Session["uid"].ToString();
         if (Label13.Text.Length == 0)
         {
             Response.Redirect("~/Member site/Login.aspx");
         }
         else
         {
             Response.Redirect("~/Member site/Membership.aspx");
         }
     }
     catch
     { }
 }
    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        try
        {
            BookOrder.AddBookorder(1, int.Parse(Session["bid"].ToString()));
            Session["ordernumber"] = int.Parse(BookOrder.orderno.ToString());
            // Response.Redirect("~/Member site/Login.aspx");
            Label6.Text = Session["uid"].ToString();
            if (Label6.Text.Length == 0)
            {
                Response.Redirect("~/Member site/Login.aspx");
            }
            else
            {
                Session["m2"] = "Dear :   " + Session["cname"] + "your Are Order This Book .if you Lend The Book Click to Conform your Lending Else Click to Reorder ";

                Session["m1"] = "Dear :   " + Session["cname"] + "   Wait A Few Secound We Will Send A Reply For Your Lend";

                Response.Redirect("~/Member site/Membership.aspx");
            }
        }
        catch {
        }
    }