Windows Media Player control is greyed out in toolbox

Last post 05-01-2009 7:39 AM by guidos. 6 replies.

Sort Posts:

  • Windows Media Player control is greyed out in toolbox

    07-16-2007, 4:53 PM
    • Member
      point Member
    • mcparente
    • Member since 07-16-2007, 8:41 PM
    • Posts 1

    I'm trying to use the Windows Media Player control on an .aspx web form page in design mode using Visual Web Developer 2005 Express. I have added the correct references and succeeded in adding the correct control to the toolbox; however, the WMP control is grey-out, and I can't use it. How can I get this control enabled? How else can I add a WMP control to my .aspx page and be able to reference the object library using VB.NET? Please help!

  • Re: Windows Media Player control is greyed out in toolbox

    07-17-2007, 11:07 AM
    Answer
    • Member
      410 point Member
    • bolinc
    • Member since 03-13-2007, 9:36 PM
    • Posts 94

    The Windows Media Player control is not available for use on webpages. If you have a windows form you can place a WMP on there. If you know html you can use that to place a wmp section on an aspx page.

  • Re: Windows Media Player control is greyed out in toolbox

    07-17-2007, 11:29 PM
    Answer

    Hi mcparente,

    I agree with bolinc, the control is the WinForm control which is not available for Web Form project. To play the video in aspx page, please refer to the following code.

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <embed src="test.wmv"></embed>
            </div>
        </form>
    </body>
    </html>

     

    Sincerely,
    Benson Yu
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
  • Re: Windows Media Player control is greyed out in toolbox

    07-23-2007, 1:25 AM
    Answer

    Visual Studio no longer supports ActiveX controls in the Web toolbox. If you wish to use ActiveX controls such as WMP, you have to manually type <object> or <embed> elements in Source view.

    Thanks

    ------------------------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Windows Media Player control is greyed out in toolbox

    07-23-2007, 8:56 AM

    To use WMP,provided its available use

    <embed></embed> tag in transitional 4.01 doctype

    and

    <object> in XHTML

    Not sure if there is anything in VS2005 to do that.

    Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
  • Re: Windows Media Player control is greyed out in toolbox

    11-10-2008, 12:47 AM
    • Member
      2 point Member
    • mani05_ksr
    • Member since 11-10-2008, 5:44 AM
    • Posts 1

    hi,

    can u tell how to add windows media player componenent and sound recoder in web application.(dotnet)

  • Re: Windows Media Player control is greyed out in toolbox

    05-01-2009, 7:39 AM
    • Member
      4 point Member
    • guidos
    • Member since 04-24-2009, 1:43 AM
    • Posts 2

    Use the following code to embed a windows media control in your asp.net webapplication:

     

    <OBJECT ID="Player" 
        CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 
        VIEWASTEXT> 
                        <PARAM name="autoStart" value="True"> 
                        <PARAM name="URL" value="Files/Audio/Miami.mp3"> 
                        <PARAM name="rate" value="1"> 
                        <PARAM name="balance" value="0"> 
                        <PARAM name="enabled" value="true"> 
                        <PARAM name="enabledContextMenu" value="true"> 
                        <PARAM name="fullScreen" value="true"> 
                        <PARAM name="playCount" value="1"> 
                        <PARAM name="volume" value="100"> 
        </OBJECT>

     Hope this helps.

    Regards, Guido

Page 1 of 1 (7 items)