A
Andy B
Hi...
I have an aspx page with a gridView on it. There is a HyperLink field on the
gridView that goes to the following link: PlayAudio.aspx?ID={0} ({0} is the
id number of the audio in the database). PlayAudio.aspx gets the audio
itself from the database and streams it to the user. The code below is in
the PlayAudio.aspx file:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class PlayAudio : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
int ID = Convert.ToInt32(Request.QueryString["ID"]);
// Get information about the specified song
AudioDB AudioHelper = new AudioDB();
AudioDataSet.AudioDataTable Songs = AudioHelper.GetSongByID(ID);
AudioDataSet.AudioRow Song = Songs[0];
//output the song now
Response.ContentType = "text/html";
Response.BinaryWrite(Song.Audio);
}
}
What I need to do, is make it possible to embed this aspx page inside of a
main page where the audio is played without bringing up mediaplayer and
leaves me the ability to show song details on the page at the same time the
file plays. How would I do this?
I have an aspx page with a gridView on it. There is a HyperLink field on the
gridView that goes to the following link: PlayAudio.aspx?ID={0} ({0} is the
id number of the audio in the database). PlayAudio.aspx gets the audio
itself from the database and streams it to the user. The code below is in
the PlayAudio.aspx file:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class PlayAudio : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
int ID = Convert.ToInt32(Request.QueryString["ID"]);
// Get information about the specified song
AudioDB AudioHelper = new AudioDB();
AudioDataSet.AudioDataTable Songs = AudioHelper.GetSongByID(ID);
AudioDataSet.AudioRow Song = Songs[0];
//output the song now
Response.ContentType = "text/html";
Response.BinaryWrite(Song.Audio);
}
}
What I need to do, is make it possible to embed this aspx page inside of a
main page where the audio is played without bringing up mediaplayer and
leaves me the ability to show song details on the page at the same time the
file plays. How would I do this?