Embedding <OBJECT> in ASP.NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Barrie Wilson

    Embedding <OBJECT> in ASP.NET


    anyone have any idea why I might be having an impossible time embedding a
    YouTube <objectin an .ASPX file:

    <object width="425" height="355">
    <param name="movie"
    value="http://www.youtube.com/v/zAfQwDizpRo&rel =1"></param>
    <param name="wmode" value="transpar ent"></param>

    <embed src="http://www.youtube.com/v/zAfQwDizpRo&rel =1"
    type="applicati on/x-shockwave-flash" wmode="transpar ent" width="425"
    height="355"></embed>
    </object>

    (all just copied to the Clipboard from YouTube)

    simple stuff ... never had a problem doing this on a web page; in VS 2005
    it's hanging in design mode ... won't accept keystrokes, won't save the
    file, etc ...

    I also cannot figure how you embed WMP in an ASPX page ... I know people do
    this stuff all the time

    any suggestions?

    TIA
    BW



  • PJ on Development

    #2
    Re: Embedding &lt;OBJECT&g t; in ASP.NET

    Hi, BW

    Have you tried to paste the code in the Source view and then saving
    the file?

    Regards,

    Paulo Santos


    On Nov 7, 10:30 pm, "Barrie Wilson" <bwil...@nowher e.comwrote:
    anyone have any idea why I might be having an impossible time embedding a
    YouTube <objectin an .ASPX file:
    >
    <object width="425" height="355">
    <param name="movie"
    value="http://www.youtube.com/v/zAfQwDizpRo&rel =1"></param>
    <param name="wmode" value="transpar ent"></param>
    >
    <embed src="http://www.youtube.com/v/zAfQwDizpRo&rel =1"
    type="applicati on/x-shockwave-flash" wmode="transpar ent" width="425"
    height="355"></embed>
    </object>
    >
    (all just copied to the Clipboard from YouTube)
    >
    simple stuff ... never had a problem doing this on a web page; in VS 2005
    it's hanging in design mode ... won't accept keystrokes, won't save the
    file, etc ...
    >
    I also cannot figure how you embed WMP in an ASPX page ... I know people do
    this stuff all the time
    >
    any suggestions?
    >
    TIA
    BW

    Comment

    • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

      #3
      RE: Embedding &lt;OBJECT&g t; in ASP.NET

      As indicated, do this in source view and save the file. WMP can be embedded
      with similar tags, there is an entire help section on MSDN for the Windows
      Media SDK that has sample code.
      -- Peter

      unBlog: http://petesbloggerama.blogspot.com
      BlogMetaFinder: http://www.blogmetafinder.com



      "Barrie Wilson" wrote:
      >
      anyone have any idea why I might be having an impossible time embedding a
      YouTube <objectin an .ASPX file:
      >
      <object width="425" height="355">
      <param name="movie"
      value="http://www.youtube.com/v/zAfQwDizpRo&rel =1"></param>
      <param name="wmode" value="transpar ent"></param>
      >
      <embed src="http://www.youtube.com/v/zAfQwDizpRo&rel =1"
      type="applicati on/x-shockwave-flash" wmode="transpar ent" width="425"
      height="355"></embed>
      </object>
      >
      (all just copied to the Clipboard from YouTube)
      >
      simple stuff ... never had a problem doing this on a web page; in VS 2005
      it's hanging in design mode ... won't accept keystrokes, won't save the
      file, etc ...
      >
      I also cannot figure how you embed WMP in an ASPX page ... I know people do
      this stuff all the time
      >
      any suggestions?
      >
      TIA
      BW
      >
      >
      >
      >

      Comment

      • Barrie Wilson

        #4
        Re: Embedding &lt;OBJECT&g t; in ASP.NET


        "Peter Bromberg [C# MVP]" <pbromberg@yaho o.NoSpamMaam.co mwrote in message
        news:374D7C3D-B626-42C4-BF71-ED81CE6DEB81@mi crosoft.com...
        As indicated, do this in source view and save the file. WMP can be
        embedded
        with similar tags, there is an entire help section on MSDN for the Windows
        Media SDK that has sample code.
        -- Peter
        thanks, Peter ... guess that makes the schmaltzy VS editor as good as
        Notepad in this scenario ... oh well ... maybe VS 2008 will be a better
        experience; this kind of thing was easy in FrontPage .... what happened?


        "Barrie Wilson" wrote:
        >
        >>
        >anyone have any idea why I might be having an impossible time embedding a
        >YouTube <objectin an .ASPX file:
        >>
        ><object width="425" height="355">
        > <param name="movie"
        >value="http://www.youtube.com/v/zAfQwDizpRo&rel =1"></param>
        > <param name="wmode" value="transpar ent"></param>
        >>
        > <embed src="http://www.youtube.com/v/zAfQwDizpRo&rel =1"
        >type="applicat ion/x-shockwave-flash" wmode="transpar ent" width="425"
        >height="355" ></embed>
        ></object>
        >>
        >(all just copied to the Clipboard from YouTube)
        >>
        >simple stuff ... never had a problem doing this on a web page; in VS
        >2005
        >it's hanging in design mode ... won't accept keystrokes, won't save the
        >file, etc ...
        >>
        >I also cannot figure how you embed WMP in an ASPX page ... I know people
        >do
        >this stuff all the time
        >>
        >any suggestions?
        >>
        >TIA
        >BW
        >>
        >>
        >>
        >>

        Comment

        • PJ on Development

          #5
          Re: Embedding &lt;OBJECT&g t; in ASP.NET

          The point is that the VS really instantiate any component of the page
          when working in Design view.

          It's almost as working with an <DIVwith contentEditable ='true'

          So VS tries to instantiate the OBJECT and, probably, it's marked
          somwhat unfave, and hence the error.

          I don't knwo how FrontPage handled this kind of thing, but probably
          the two development teams never got a chance to talk about it.. :-P

          Regards,

          Paulo Santos


          On Nov 9, 12:56 am, "Barrie Wilson" <bwil...@nowher e.comwrote:
          "Peter Bromberg [C# MVP]" <pbromb...@yaho o.NoSpamMaam.co mwrote in messagenews:374 D7C3D-B626-42C4-BF71-ED81CE6DEB81@mi crosoft.com...
          >
          As indicated, do this in source view and save the file. WMP can be
          embedded
          with similar tags, there is an entire help section on MSDN for the Windows
          Media SDK that has sample code.
          -- Peter
          >
          thanks, Peter ... guess that makes the schmaltzy VS editor as good as
          Notepad in this scenario ... oh well ... maybe VS 2008 will be a better
          experience; this kind of thing was easy in FrontPage .... what happened?
          >
          >
          >
          "Barrie Wilson" wrote:
          >
          anyone have any idea why I might be having an impossible time embedding a
          YouTube <objectin an .ASPX file:
          >
          <object width="425" height="355">
          <param name="movie"
          value="http://www.youtube.com/v/zAfQwDizpRo&rel =1"></param>
          <param name="wmode" value="transpar ent"></param>
          >
          <embed src="http://www.youtube.com/v/zAfQwDizpRo&rel =1"
          type="applicati on/x-shockwave-flash" wmode="transpar ent" width="425"
          height="355"></embed>
          </object>
          >
          (all just copied to the Clipboard from YouTube)
          >
          simple stuff ... never had a problem doing this on a web page; in VS
          2005
          it's hanging in design mode ... won't accept keystrokes, won't save the
          file, etc ...
          >
          I also cannot figure how you embed WMP in an ASPX page ... I know people
          do
          this stuff all the time
          >
          any suggestions?
          >
          TIA
          BW- Hide quoted text -
          >
          - Show quoted text -

          Comment

          • Barrie Wilson

            #6
            Re: Embedding &lt;OBJECT&g t; in ASP.NET


            "PJ on Development" <pjondevelopmen t@gmail.comwrot e in message
            news:1194904758 .256287.139880@ d55g2000hsg.goo glegroups.com.. .
            So VS tries to instantiate the OBJECT and, probably, it's marked
            somwhat unfave, and hence the error.
            yeah .... but it could at least be handled gracefully ...
            I don't knwo how FrontPage handled this kind of thing, but probably
            the two development teams never got a chance to talk about it.. :-P
            wouldn't be the first time at Microsoft ... but maybe it was "intentiona l"
            ... as the Softies are so fond of saying these days


            Comment

            Working...