4 Replies - 1001 Views - Last Post: 08 February 2009 - 08:18 AM Rate Topic: -----

#1 AshishKumar_Gupta  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 28
  • Joined: 19-January 09

my video is not working

Post icon  Posted 05 February 2009 - 09:15 PM

Hi all,

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. :angry:
Is This A Good Question/Topic? 0
  • +

Replies To: my video is not working

#2 b.ihde  Icon User is offline

  • D.I.C for life
  • member icon

Reputation: 43
  • View blog
  • Posts: 1,070
  • Joined: 29-September 08

Re: my video is not working

Posted 06 February 2009 - 01:07 AM

Can you please post the appreciable code?

Thanks!
Was This Post Helpful? 0
  • +
  • -

#3 AshishKumar_Gupta  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 28
  • Joined: 19-January 09

Re: my video is not working

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>



Was This Post Helpful? 0
  • +
  • -

#4 General Adamus  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 110
  • Joined: 05-February 09

Re: my video is not working

Posted 07 February 2009 - 09:57 AM

You're not binding the field to the item template:

<%#DataBinder.Eval(Container, "DataItem.Video")%>

Adamus
Was This Post Helpful? 0
  • +
  • -

#5 AshishKumar_Gupta  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 28
  • Joined: 19-January 09

Re: my video is not working

Posted 08 February 2009 - 08:18 AM

Hi

I did it now my video is properly working.I got the point where i was doing wrong. :D

This post has been edited by AshishKumar_Gupta: 08 February 2009 - 08:19 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1