Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 29th, 2008, 12:23 PM
Authorized User
 
Join Date: Feb 2007
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to toddw607 Send a message via Yahoo to toddw607
Default Placing HTML object in ASP.NET

I'm attempting to place an object within a frame on an aspx page. This code works but only by itself, I'm just unsure where to place it in my ASP.NET code:
             
Code:
<HTML>
Code:
<OBJECT CLASSID="clsid:  ...  " >
<PARAM NAME="URL" value="Figure102.cgm">
</OBJECT>
</HTML>
  And here is the frame I would like to use:
  
Code:
 <frame src='<%= newCGM %>'>

       Except where it says "newCGM" I am trying to get the html object in there. Any thoughts? TIA

 
Old April 29th, 2008, 02:57 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

A frame expects a URL to another resource (page).

Are you sure you really want a frame or do you just want to embed the object into the page? Is the latter, just get rid of the <HTML> around the object and put the <OBJECT> tag where you want it to appear.

-Peter
peterlanoie.blog
 
Old April 29th, 2008, 03:15 PM
Authorized User
 
Join Date: Feb 2007
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to toddw607 Send a message via Yahoo to toddw607
Default

The only problem with that is that there are other frames on the page and when I did that it overrides the other frames and only displays the object.

 
Old April 30th, 2008, 03:58 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Is that because of the lack of dimension for the element?

I haven't worked with the <object> tag so I'm not familiar what its behavior is.

-Peter
peterlanoie.blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML email problem in asp.net sanjivbshinde ASP.NET 2.0 Professional 5 May 29th, 2008 06:49 AM
HTML Button in Asp.Net vallabh53 .NET Framework 1.x 0 October 17th, 2007 01:01 AM
Viewing HTML in ASP.NET 2.0 rgturner ASP.NET 2.0 Professional 11 September 9th, 2007 10:04 PM
Making COM Object For ASP.NET Use bluethecow ASP.NET 2.0 Basics 1 September 30th, 2006 10:06 PM
HTML tags is not working in textarea in ASP.net suman9730 General .NET 1 May 23rd, 2006 04:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.