コード例 #1
0
 protected void Button29_Click(object sender, EventArgs e)
 {
     //-----------------ver aprobados----------------------
     SqlDataSource9.SelectParameters["STATUS"].DefaultValue = "aprobado|";
     SqlDataSource9.SelectParameters["RFC"].DefaultValue    = " ";
     SqlDataSource9.DataBind();
     GridView8.DataBind();
 }
コード例 #2
0
 protected void Button2_Click(object sender, EventArgs e)
 {
     SqlDataSource9.SelectParameters["STATUS"].DefaultValue = "aprobado|pendiente|rechazado";
     SqlDataSource9.SelectParameters["RFC"].DefaultValue    = TextBusc.Text;
     SqlDataSource9.DataBind();
     GridView8.DataBind();
     Panelbusc.Width   = 20;
     Panelbusc.Height  = 20;
     Panelbusc.Visible = false;
 }
コード例 #3
0
 protected void Button7_Click(object sender, EventArgs e)
 {
     try
     {
         if (TextBox7.Text != "")
         {
             SqlDataSource9.InsertParameters["Categoria"].DefaultValue = TextBox7.Text;
             SqlDataSource9.Insert();
             SqlDataSource9.SelectCommand = "SELECT ID_Categoria, Categoria FROM Categoria WHERE (Estado = 1)";
             SqlDataSource9.DataBind();
             borrar();
         }
         else
         {
             Response.Write("<script>alert('Error, resive los datos')</script>");
         }
     }
     catch
     {
         Response.Write("<script>alert('Error, resive los datos')</script>");
     }
 }