示例#1
0
        protected void B1_Click(object sender, EventArgs e)
        {
            if (Text1.Text.ToString() == "")
            {
                MessageBox.Show("Lütfen Kargo Takip Kodunu Girin.");
            }

            else
            {
                try
                {
                    GridView1.Visible = true;
                    int id = bu1.Idvarmi(Convert.ToInt32(Text1.Text));
                    bu1.kapat();
                    bu1.ac();

                    SqlDataSource1.SelectCommand = "select KargoId,GondericiAdSad,SonDurum,AliciAdSad from Kargolar where KargoId=" + id + ";";
                    bu1.kapat();
                }
                catch (Exception)
                {
                    MessageBox.Show("Takip Kodunuzu Yanlış Girdiniz...");
                }
            }
        }