コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     String _conn = ConfigurationManager.ConnectionStrings["TopRockConnection"].ConnectionString;
     Musics _mus = new Musics(_conn);
     CustomProfile _profile = (CustomProfile)HttpContext.Current.Profile;
     String _path = ConfigurationManager.AppSettings["MusicFilePath"].Replace("../", "");
     DisplayResult(_mus.GetMusicsByCategory(Convert.ToInt32(_profile.MusicCategory), _path));
     //Response.Write(_profile.MusicCategory);
 }