My video is not displaying picture means i am retrieving video file from sqlserver
and displaying in aspx page but it is not displaying aything(pic) on aspx page please help.




Posted 05 February 2009 - 09:15 PM
Posted 06 February 2009 - 01:46 AM
protected DataTable DisplayMusic()
{
SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"]);
con.Open();
SqlDataAdapter da = new SqlDataAdapter("select video,id from video1 where id=1", con);
DataTable tb = new DataTable();
da.Fill(tb);
return tb;
}
// This code is to show video
protected void Button2_Click(object sender, EventArgs e)
{
DataTable tb1 = new DataTable();
tb1 = DisplayMusic();
Repeater1.DataSource = tb1;
Repeater1.DataBind();
}
<ItemTemplate>
<object id="video" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" height="400" width="300">
<param name="" value='<%# "VideoHandler.ashx?id=" + Eval("ID")%>'/>
<param name="showcontrols" value="true" />
<param name="autostart" value="true" />
</object>
</ItemTemplate>
Posted 07 February 2009 - 09:57 AM
Posted 08 February 2009 - 08:18 AM
This post has been edited by AshishKumar_Gupta: 08 February 2009 - 08:19 AM
