http://forums.asp.net/t/1372384.aspx/1[
^]
//IN FRONT END
string sqlqueryPlayVideo = "Alumniproc";
DataSet dsPlayVideo = DBManager.DataAccess.getdata(sqlqueryPlayVideo);
if (dsPlayVideo.Tables[0].Rows.Count > 0)
{
string path = Server.MapPath("~/");
string VideoPath = path + dsPlayVideo.Tables[0].Rows[0]["Gallery_Content"].ToString();
if (VideoPath != null)
{
string fileextenction = "";
if (VideoPath.EndsWith(".wmv"))
{
fileextenction = Path.GetExtension(VideoPath).ToLower();
this.paramMediaPath.Attributes.Add("value", VideoPath);
}
}
}
//AT BACK END
<object id="MediaPlayer" width="690" height="300" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Windows Media Player components..." type="application/x-oleobject">
<param name="FileName" id="paramMediaPath" runat="server" />
<param name="ShowControls" value="true" />
<param name="ShowStatusBar" value="false" />
<param name="ShowDisplay" value="false" />
<param name="autostart" value="false" />
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"
width="424" height="379" src="ccent31.wmv"
filename="ccent31.wmv" autostart="0" showcontrols="0" showstatusbar="0" showdisplay="0">
</embed>
</object>