zongoVideo Control: youtube video in asp.net,C# like media player

by daz 12/23/2009 9:29:00 PM

This is a Youtube like Control i developped in C#, asp.net 3.5  for a Client .  The idea was to have a control madia player like that require less code. So , pretty slick , what you need is to create a database table to hold the youtube Urls. No need to save the youtube embeded code in your DB. I provide a link demo View the Demo site

Well, not enought  time to complete the article ,so i also included the full source code for you to download. If you have any issue, please contact me throught the contact form.

<div align="center" >   

<

asp:ScriptManager ID="smVideo" runat="server"></asp:ScriptManager> table><tr><td><br /></td> td valign="top" ><asp:UpdatePanel ID="UpdatePanel1" runat="server" updatemode="Conditional" > <<<ContentTemplate>

Choose a video

 

<asp:DropDownList Width="60%" ID="cmbPlaylist" runat="server" AutoPostBack="True">  <asp:ListItem Selected="True" Value="yoFezM0pw4Y">FilsDuFaso</asp:ListItem> <asp:ListItem Value="5QlAxznkj5I">FilsDuFaso</asp:ListItem></asp:DropDownList> <br /><br /><asp:Literal ID="Literal1" runat="server"></asp:Literal> 

 </ContentTemplate></asp:UpdatePanel></td> <td></td></tr></table> 

 

Copyright 2009

http://DavidZ.afriklink.com

 

 

</div>

 

The CS file looks like

 private int width = 350;  

private int height = 300;

 

protected void Page_Load(object sender, EventArgs e)

{

 

if (!IsPostBack)

{

int idex = 1;

 

 

int auto = 1;

ddlPlaylist.SelectedIndex = idex;

 

 

// generate script on page load

Literal1.Text =

ZongoVideoScript.Get(ddlPlaylist.SelectedValue, auto, width, height);

}

 

 

else

{

 

 

// generate script on page postback

Literal1.Text =

ZongoVideoScript.Get(ddlPlaylist.SelectedValue, 0, width, height);

 }

View the Demo site

Download the files ZongoVideoSite.rar (17.90 kb)

View the Demo site

Download the files ZongoVideoSite.rar (17.90 kb)

Comments

12/28/2009 5:02:11 PM

SEO NEPAL

Nice study made .Hats off!Really cool programming

SEO NEPAL United States

1/9/2010 5:31:23 PM

tattoo sleeve

This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work.

tattoo sleeve United States

1/14/2010 12:21:10 AM

bathroom cabinets wilmington nc

Me and my friend were arguing about an issue similar to this! Now I know that I was right. lol! Thanks for the information you post.

bathroom cabinets wilmington nc United States

1/15/2010 2:31:00 PM

Fixed Annuities

Thanks for taking the time to discuss this,would you mind updating your blog with more information? It is extremely helpful for me.

Fixed Annuities United States

1/15/2010 6:41:07 PM

break weight loss plateau

When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get four emails with the same comment.
Is there any way you can remove me from that service?
Thanks!

break weight loss plateau United States

1/16/2010 12:58:37 AM

stock loan

Admiring the time and effort you put into your blog and detailed information you offer! I will bookmark your blog and have my children check up here often. Thumbs up!

stock loan United States

1/21/2010 3:08:15 PM

radley bags

I completely agree with the above comment, the internet is with a doubt growing into the most important medium of communication across the globe and its due to sites like this that ideas are spreading so quickly.

radley bags United States

1/23/2010 12:38:09 PM

Medical Answering Services

A blind man with a seeing eye dog at his side walks into a grocery store. The man walks to the middle of the store, picks up the dog by the tail, and starts swinging the dog around in circles over his head.

The store manager, who has seen all this, thinks this is quite strange. So, he decides to find out what's going on. The store manager approaches the blind man swinging the dog and says, "Pardon me. May I help you with something."

The blind man says, "No thanks. I'm just looking around.




Regards
Ellis

Medical Answering Services United States

1/24/2010 1:32:27 AM

Best Website Host

Admiring the time and effort you put into your blog and detailed information you offer! I will bookmark your blog and have my children check up here often. Thumbs up!

Best Website Host United States

1/25/2010 8:34:39 AM

Payday loan

When I was young I used to pray for a bicycle.

Then I realized that God doesn't work that way.

So I stole a bicycle and prayed for forgiveness.

Regards
Schrantz

Payday loan United States

1/25/2010 8:35:52 AM

dentist salt lake city

In the aftermath of the AOL/Time-Warner merger, it has been leaked that Yahoo! is taking over the following companies:

Disney
Data General
United Health Care.


The names of the new mega company will be:

Hoo-Dis, Hoo-Dat, and Hoo-Cares.





Regards
Smith






dentist salt lake city United States

1/25/2010 9:22:09 AM

plastic surgeon manhattan

A woman named Shirley was from Beverly Hills. One day, she had a heart attack and was taken to Cedars Sinai hospital. While on the operating table, she had a near-death experience. She saw God and asked, "Is this it?"

God said, "No, you have another 30 to 40 years to live."

Upon her recovery, she decided to stay in the hospital and have collagen shots, cheek implants, a face lift, liposuction and breast augmentation. She even had someone dye her hair. She figured since she had another 30 to 40 years, she might as well make the most of it.

She walked out of Cedars Sinai lobby after the last operation and was killed by an ambulance speeding up



Regards
Hudson




plastic surgeon manhattan United States

1/26/2010 3:01:17 PM

mlm leads

The blog was absolutely fantastic! Lots of great information and inspiration, both of which we all need!

mlm leads United States

1/27/2010 7:56:06 AM

Wireless Networking Baltimore

This is the best post on this topic i have ever read.


Regards

Pitter

Wireless Networking Baltimore United States

1/28/2010 7:53:42 AM

Ink Cartridge Recycling

This is the best post on this topic i have ever read.


Regards

Pitter

Ink Cartridge Recycling United States

1/28/2010 9:19:59 AM

coffee kiosk

Easily, the station is truly the superior on this laudable substance. I hap with your conclusions and module thirstily await brash to your futurity updates. Expression thanks instrument not retributive be ample, for the fantasti c clearness in your writing. I leave straightaway seize your rss food to fill secret of any updates. Upstanding line and overmuch success in your byplay enterprize!




Regards
Oliver








coffee kiosk United States

1/29/2010 10:24:09 AM

watch smallville season 8 free

You prefabricated grotesque squeamish points here. I performed a seek on the supplying and unconcealed almost all peoples gift concur with your journal.



Regards
Childs




watch smallville season 8 free United States

1/30/2010 12:52:04 PM

Provo Ut Real Estate

Would you same to airman a impermanent airman on my journal?





Regards
Watson

Provo Ut Real Estate United States

About the author

Name of author
DavidZ
.Net Programmer
E-mail me Send mail

Calendar

<<  August 2010  >>
MoTuWeThFrSaSu
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

View posts in large calendar

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

Sign in