protected int Get_Id_Generic(int genDefaId)
    {
        MainContentGeneric resourcesinfo = new MainContentGeneric();
        DataSet dsresourcesinfo = new DataSet();
        int GeneIdG = 0;

        dsresourcesinfo = resourcesinfo.Get_Id_Generic(Convert.ToInt32(genDefaId));
        foreach (DataTable table in dsresourcesinfo.Tables)
        {
            foreach (DataRow row in table.Rows)
            {
                GeneIdG = Convert.ToInt32(row["GeneId"].ToString());
            }
        }
        if (GeneIdG.ToString() == "") return 0;
        else return GeneIdG;
    }