.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

I need a static music player on my website that continues to play music when the user navigates to d

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :ASP.Net
I'm not sure if this is the right area, but I'm needing to have a music player on my website that stays static when the user navigates through my site, and continues to play without interruption.  Currently I have a Flash player that works great, but obviously it stops playing when the user goes to a different area of the site.  Make sense??  Thanks in advance!!

View Complete Post

More Related Resource Links

C# - Easy - Play music + Next song! - Please Look

Hello! Today i try write my own Music Player in C# - winmm.dll, but I don't know, how to go to next song, when last is end. My Aplication: Button1. Load music. Button2. Add address from textBox, to listbox. Button3. Stop playing. And all work, when i add my music to playlist, and click on selected address, music start. But: - How i can go to next song, when last end?. Because now, when song is end, player no start play next song. Eg: Music1 Music2 Music3 Music4 Eg. - When I click on Music2 it starts to play, but then wants go to the next song when Music2 end - in this case Music3 . - When I click on Music1 it starts to play, but then wants go to the next song when Music1 end - in this case Music2 . etc... Easy Play list... Eg: In listBox have: C:/Music/Blablabla.mp3 C:/Music/Blablabla2.mp3 C:/Music/Blablabla3.mp3 And i want: C:/Music/Blablabla.mp3 started.... Song.... End. Now my program: Play song... When song end, make nothing. I want when: C:/Music/Blablabla.mp3 when song is end, go to C:/Music/Blablabla2.mp3. When C:/Music/Blablabla2.mp3 end go to: C:/Music/Blablabla3.mp3. When C:/Music/Blablabla3.mp3 end, go to: C:/Music/Blablabla.mp3 (First song) This is my code:     using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.

IF Command for a .wav music player C#

Hey, I have a basic wave format music player, it has a textbox browse button, play, play looping, and a stop.I want to create an IF in the code, Instead of it only playing waves and if you tried mp3 it crashes out, I want it so its like this   1 SoundPlayer spWave = new SoundPlayer(txtPath.Text);   2   3 If the filename extension is wave   4 {   5       spWave.Play()  6 }   7 else   8 {   9      Messagebox.show("")   10 }   11   now, the only line of code I need is the "if the filename extension is wave" I have an openFileDialog, textbox named as "txtPath"If theres any variables list them below your line of code.Noob

Play uninterrupted music across postbacks

Hi,I'm in need of providing uninterrupted music to the visitor of my web site.The music is played by a 3rd party Flash object. I need to some how maintain an instance of this flash object in memory so that the visitor of the site will experience uninterrupted music (even while navigating to the other pages in the site).The idea is to have one instance in memory (hidden which survives postbacks) and the othe displayed to the visitor (this will sync up with the hidden player).If you suggest using iFrame in a master page, pl let me know how to handle multiple master pages scenario. My site contains more than one master page. And with iFrame we don't get to see the actual URL being served in the address bar.I know pop-up window is another option. But would like to know if I can do anything with the iFrame.Thanks.

Need to play music and videos


I have created a documents library in a SP2010 site for users to upload any type of media, including music, video, images, whatever.

When one of the uploaded items is clicked, I expected it to open the appropriate software to display an image, or play music or video, etc.

The music and video examples aren't working properly.  When the video is clicked, it opens Windows Media Player and plays the audio, but not the video.  Instead it shows an animated starburst thing.

When music is clicked, a File Download dialogue box pops up ... nothing plays.  However, when I click on the music file outside of SP2010, it plays via iTunes.

When I created the library, I selected "none" for the document template which defaults to Microsoft Word.  I notice that the "type" icon beside both music and video is a blank page with the right hand corner turned down.  It looks like it hasn't figured out what the items are.  The music item has an extension of m4a.  The video has an extension of AVI.


Creating a user friendly alias for the website path


 Hello mates,

I am hosting my ASP.NET application on a Windows 2003 Server.

To browse to my application one has to type the path :http://serverName/applicationName

I want users to only type  applicationName on the web adress area.I believe there is something to do with alias and CNAME on DNS records that can adress this.

Any help on how to go about doing this will be highly appreciated.

UI Frontiers: MIDI Music in WPF Applications


Every PC contains a built-in 16-piece band ready to play some music. Charles shows you how MIDI support in the NAudio sound library lets you play tunes in your .NET apps.

Charles Petzold

MSDN Magazine March 2010

Windows Mobile and Accelerometers: Shake and Skip to Interact with Your Music


This article describes an approach to using accelerometers with Windows Mobile to control Windows Media Player Mobile.

Chris Mitchell

MSDN Magazine September 2009

Least Privilege: Teach Your Apps To Play Nicely With Windows Vista User Account Control


User Account Control in Windows Vista keeps the OS safe from intentional and accidental configuration changes.

Chris Corio

MSDN Magazine January 2007

Advanced Basics: The Sound of Music


So you've got a burning desire to accompany your application's splash screen with a rousing chorus of "Funky Cold Medina" (that's Tone Loc for those of you who aren't children of the 80s). Prior to working with Visual Studio® 2005, adding even simple tunes and system sounds to your application could be a challenge.

Brad McCabe

MSDN Magazine January 2006

How Restrict and Allow user to Pages of Website.


i have 4 pages of website

2 pages are authorized to used by USER and 2 pages are restricted for user

admin can authorized to go all 4 pages


i need coding for Login window from which Admin/User Login



MVC2 Music Store - How to get store controller - store.aspx working {genre names displayed}



<p>Select from <%: Model.NumberOfGenres %> genres:</p><ul> <% foreach (string genreName in Model.Genres) { %>

<li> <%: genreName %> </li>

<% } %>


MOST PEOPLE WILL BE USING VISUAL STUDIO 2008 sp1, to get this to work change the <%:, ONLY WITH SEMI COLONS, TO <%=

Silverlight media player change source and play from javascript

I am having trouble accessing an embedded Silverlight 2 media player in an aspx page from Javascript and was hoping someone might offer some insight on what's going on. What I want to do is fire a javascript event on the client when a button is pressed to change the Silverlight media player media source and then play the newly selected file. I found what seemed like a pretty straightforward example on the silverlight.net site that looked like this:<%@ Page Title="" Language="VB" MasterPageFile="~/master.master" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="Test" %> <%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls" TagPrefix="asp" %> <asp:Content ID="Content1" ContentPlaceHolderID="Middle" Runat="Server"> <asp:MediaPlayer ID="Media1" runat="server" Height="240px" Width="320px"> </asp:MediaPlayer> <button id="Button1" onclick="onPlay()" type="button">Play</button> <script type="text/javascript"> function onPlay() { try { var player = $find("ctl00_Middle_Media1"); player.set_mediasource("example.mp3");

Backup iPhone SOftware - backup ibooks, iphone sms, contacts, call list, music, video, photo

Do you wanna backup your important iphone SMS, Contacts, Call List, iBook, Photos, Music, Videos and other files? If yes, just continue. iPhone Took Kits is an professional iPhone SMS Transfer , iPhone SMS Backup, iPhone SMS copy, backup iPhone to PC Software which can perfectly and quickly backup iPhone SMS to computer. With this Backup iPhone SMS Software, to transfer SMS from iPhone to Computer is just a piece of cake. Moreover, this iPhone Tool Kits also can backup iPhone Contacts, iPhone Photos, iPhone Music/Video, iPhone Call List, iPhone iBook and be using as iPhone Disk & File Utilities. Key Features Of iPhone SMS Backup Software * # Easy to Use This top-rated and powerful iPhone SMS Backup software is simple to install and easy to operate. * # Multiple Device Compatibility, Auto-Scanning, Indexing and Searching Supports all iPhone, iPad and iPod Touch models. Auto-scans your iPhone, iPad or iPod Touch device, and auto-indexes all files by album, artist, genre, and type. Also auto-searches by album, artist, genre and type. * # Backup SMS to to Computer with Multiple File Formats * # Backup Music/Video to Any Folder on Computer You can now also transfer Music/Video from your iPhone, iPad or iPod Touch to your computer * # Backup Photos to Any Folder on Computer * # Backup Call List to Computer with Multiple File Formats * # Backup Contacts to Computer with Multipl

Can I have an SQL Express database open in VS2010E along with the website? "Login failed for user ..

Hi, as the topic says..Whenever I have my database open in Visual Studio 2010 Express, I get this error:Cannot open user default database. Login failed.Login failed for user 'IIS APPPOOL\DefaultAppPool'.Cannot open user default database. Login failed.Login failed for user 'IIS APPPOOL\DefaultAppPool'.

Jon Galloway's mvc Music Store Editor Templates' bug


If the dropdownList html helpers controls fail to show in the Album Http Get url after updating the Album.ascx template like i also experienced, which almost threw me overboard, just change the EditorTemplate folder to EditorTemplates .Not adding the 's' will give you a different result.The album.ascx changes will not show.

Hope somebody finds this useful.

how to detect the IP position of my website user ?


Hello all , 

how to detect the IP position of my website user ?

thanks in advance 

logging out users when user opens website in two browsers or two tabs of same browser.



We have the implement the following scenario in our application:

  1. We use windows authentication. User opens our website in tab1 and does some action but with out clicking on save he opens a new tab tab2 and opens the same website again.
  2. Now, if the user session in tab1 is active i need to warn users that the he is already logged on to application in some other browser and go to some log out page. But if the user session in tab1 is timed out then he must be able to continue with the website in tab2 as usual, but if he tries to do anything in tab1 he should go to session expired page.

I tried implementing it in following way.

  1. I have a hidden field in each page which will be set to unique Id using GUID.NewID().
  2. when user requests for a page the following code is executed.
  3. if (Request.Headers["Cookie"] == null)
                    //this means user is requesting hte page for first time.
                    //Generate a new GUID store it in session and also in the hidden variable on page.
                    Session["DefaultPage"] = Guid.NewGuid().ToString();
                    ((TextBox)page.FindControl("hiddenGUID")).Text = Session["DefaultPage"].ToString();
                else if (Reque
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend