示例#1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        ObjectDataSource3.DataBind();
        ObjectDataSource3.Select();

        GridView1.EmptyDataText = "No se encontro el registro.";
        GridView1.DataSourceID  = "ObjectDataSource3";
        //Mensaje01.Text = "si entra aquin";
        //GridView1.DataBind();
    }
    // Boolean blnBanderaDescuentoAfectado = false;

    protected void Page_Load(object sender, EventArgs e)
    {
        String error = Utilis.validaPermisos(Session, NUMFUNCION);

        if (!error.Equals(""))
        {
            Response.Redirect(error);
        }

        //// determinar si el usuario tiene los permisos para aceptar una cotizacion con descuento.
        //String error2 = Utilis.validaPermisos(Session, 18);
        //if (error2.Equals(""))
        //{
        //    blnBanderaDescuentoAfectado = true;
        //}

        if (!IsPostBack)
        {
            ObjectDataSource3.DataBind();
            ObjectDataSource3.Select();
            GridView1.DataBind();
        }
    }