protected void LBsabt_Click(object sender, EventArgs e)
{
if (DdlCity.SelectedItem.Value != "0" && DdlCity.SelectedItem.Text == "تهران")
{
UserData user = new UserData
{
Name = Txtname.Text,
State = DdlState.SelectedItem.Text.Trim(),
City = DdlCity.SelectedItem.Text,
Zone = Ddlzone.SelectedItem.Text,
Mobile = TxtMob.Text,
Tell = txttell.Text,
Address = Txtaddu.Text,
PostCode = TxtcodeU.Text,
Email = TxtEmail.Text,
Price = Rbsefareshi.Checked ? LblPostS.Text : LblPostP.Text,
Sefareshi = Rbpishtaz.Checked ? "پست پیشتاز" : lblfree.Text,
SefareshiP = Rbpishtaz.Checked ? "پیشتاز" : lblfreeP.Text,
};
Session["UserData"] = user;
}
else {
UserData user = new UserData
{
Name = Txtname.Text,
State = DdlState.SelectedItem.Text.Trim(),
City = DdlCity.SelectedItem.Text,
Zone = "-",
Mobile = TxtMob.Text,
Tell = txttell.Text,
Address = Txtaddu.Text,
PostCode = TxtcodeU.Text,
Email = TxtEmail.Text,
Price = Rbsefareshi.Checked ? LblPostS.Text : LblPostP.Text,
Sefareshi = Rbpishtaz.Checked ? "پست پیشتاز" : lblfree.Text,
SefareshiP = Rbpishtaz.Checked ? "پیشتاز" : lblfreeP.Text,
};
Session["UserData"] = user;
}
}
Response.Redirect("پرداخت-مبلغ-خرید.aspx");
}