469,890 Members | 1,853 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,890 developers. It's quick & easy.

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="transparent"></param>

<embed src="http://www.youtube.com/v/zAfQwDizpRo&rel=1"
type="application/x-shockwave-flash" wmode="transparent" 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

Nov 8 '07 #1
5 5231
Hi, BW

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

Regards,

Paulo Santos
http://pjondevelopment.50webs.com

On Nov 7, 10:30 pm, "Barrie Wilson" <bwil...@nowhere.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="transparent"></param>

<embed src="http://www.youtube.com/v/zAfQwDizpRo&rel=1"
type="application/x-shockwave-flash" wmode="transparent" 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

Nov 8 '07 #2
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
http://www.eggheadcafe.com
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="transparent"></param>

<embed src="http://www.youtube.com/v/zAfQwDizpRo&rel=1"
type="application/x-shockwave-flash" wmode="transparent" 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

Nov 8 '07 #3

"Peter Bromberg [C# MVP]" <pb*******@yahoo.NoSpamMaam.comwrote in message
news:37**********************************@microsof t.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="transparent"></param>

<embed src="http://www.youtube.com/v/zAfQwDizpRo&rel=1"
type="application/x-shockwave-flash" wmode="transparent" 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


Nov 9 '07 #4
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
http://pjondevelopment.50webs.com

On Nov 9, 12:56 am, "Barrie Wilson" <bwil...@nowhere.comwrote:
"Peter Bromberg [C# MVP]" <pbromb...@yahoo.NoSpamMaam.comwrote in messagenews:37**********************************@m icrosoft.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="transparent"></param>
<embed src="http://www.youtube.com/v/zAfQwDizpRo&rel=1"
type="application/x-shockwave-flash" wmode="transparent" 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 -

Nov 12 '07 #5

"PJ on Development" <pj*************@gmail.comwrote in message
news:11**********************@d55g2000hsg.googlegr oups.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 "intentional"
... as the Softies are so fond of saying these days
Nov 13 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Wolfgang Schwanke | last post: by
6 posts views Thread by Christopher Benson-Manica | last post: by
4 posts views Thread by colson | last post: by
4 posts views Thread by msnews.microsoft.com | last post: by
9 posts views Thread by Stephan Steiner | last post: by
4 posts views Thread by Alan Silver | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.