예제 #1
0
    public void ShowConnectionType()
    {
        DataSet ds = objAdmin.ShowConnectionType();

        if (ds.Tables[0].Rows.Count > 0)
        {
            ddlConnectionType.DataTextField  = "ConnectionName";
            ddlConnectionType.DataValueField = "ConnectionTypeId";
            ddlConnectionType.DataSource     = ds;
            ddlConnectionType.DataBind();
            ddlConnectionType.Items.Insert(0, "select");
        }
    }
    public void ShowConnectionType()
    {
        fs1.Visible = true;
        DataSet ds = objAdmin.ShowConnectionType();

        if (ds.Tables[0].Rows.Count > 0)
        {
            gvConnectionDetails.DataSource = ds.Tables[0];
            gvConnectionDetails.DataBind();
        }
        else
        {
            gvConnectionDetails.EmptyDataText = "No Data Available";
            gvConnectionDetails.DataBind();
        }
    }