Beispiel #1
0
    public static void BindSIDDATI2(string Keywords, GridView gvw)
    {
        ReffDati2DAL _dalReffDati2DAL = null;
        Hashtable    _htParameters    = null;

        try
        {
            _dalReffDati2DAL = new ReffDati2DAL();
            _htParameters    = new Hashtable();

            _htParameters["p_keywords"] = Keywords;

            DataTable _dt = _dalReffDati2DAL.GetRows(_htParameters);
            gvw.DataSource = _dt;
            gvw.DataBind();
        }
        catch (Exception ex)
        {
        }
    }
Beispiel #2
0
    public static void BindDati2Pro(DropDownList ddl)
    {
        ReffDati2DAL _dalReffDati2Pro = null;
        Hashtable    _htParameter     = null;

        try
        {
            _dalReffDati2Pro = new ReffDati2DAL();
            _htParameter     = new Hashtable();

            _htParameter["p_keywords"] = "";

            ddl.DataSource     = _dalReffDati2Pro.GetRows(_htParameter);
            ddl.DataValueField = "SANDI";
            ddl.DataTextField  = "NAMADAERAH";
            ddl.DataBind();
        }
        catch (Exception)
        { }
    }