public void getDadosiRadioDei(string namePlaylist, string[] musics, string location)
        {
            Playlist pl = new Playlist();
            int reg1 = pl.RegisterMP(namePlaylist, location);

            Music mus = new Music();

            for (int i = 0; i < musics.Length; i++)
            {
                int reg2 = mus.Register(musics[i], reg1);
            }
        }
        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {
            Playlist pl = new Playlist();
            DataSet ds;

            if (Page.IsPostBack)
            {
                // Retrieve and display the property value.
                flag = (string)ViewState["flag"];
            }

            if (flag == "true")
            {
                ds = pl.LoadAllMP();
            }
            else
            {
                ds = pl.LoadByLocationMP(txbLocation.Text);
            }

            int currentPage = GridView1.PageIndex;
            int pos = currentPage * 10;

            DataRow dr = ds.Tables[0].Rows[GridView1.SelectedIndex + pos];
            int index = (int)dr["id_playlist"];

            Music mus = new Music();
            DataSet ds2 = mus.LoadById_playlist(index);
            GridView2.DataSource = ds2;
            GridView2.DataBind();
        }