CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/2/2005 5:35:48 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 9 Views: 26 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
10 Items, 1 Pages 1 |< << Go >> >|
jasonli
Asp.Net User
How can I implement IFrame?9/2/2005 5:35:48 PM

0/0

I remember that there is a control named IFrame. It is a window that can load a URL page.
But I didn't find from beta2. I have a requirement that when a button clicked, a popup windows shows up and load pre-defined URL.
If VS.NET2005 doesn't have this control, how can I implement it?
Thanks,
Meson
Asp.Net User
Re: How can I implement IFrame?9/2/2005 7:05:57 PM

0/0

Javascript. I don't know the command offhnad (someone else will give it to you anyway), but you do this with client-side Java script.
bleroy
Asp.Net User
Re: How can I implement IFrame?9/7/2005 12:35:02 AM

0/0

window.open, and it's not an iFrame: an iFrame is an inline frame, that appears inside of your page, not in a new window.

Hope that helps
Bertrand
----
This posting is provided "AS IS" with no warranties, and confers no rights.
jasonli
Asp.Net User
Re: How can I implement IFrame?9/8/2005 3:29:26 AM

0/0

Window.open is not what I want. How can I implement the inline frame?
use HTML frame?
Thanks,

Meson
Asp.Net User
Re: How can I implement IFrame?9/8/2005 4:55:38 AM

0/0

<iframe src="" ></iframe>

It isn't a .net control, but it is what you need to use.
bleroy
Asp.Net User
Re: How can I implement IFrame?9/8/2005 6:48:06 PM

0/0

Well, sorry for the confusion, but you said "I have a requirement that when a button clicked, a popup windows shows up and load pre-defined URL." An iFrame won't do that.
Bertrand
----
This posting is provided "AS IS" with no warranties, and confers no rights.
jasonli
Asp.Net User
Re: How can I implement IFrame?9/9/2005 3:01:30 AM

0/0

Sorry, Bleroy.

It was my fault. I made a mistake.

jasonli
Asp.Net User
Re: How can I implement IFrame?9/9/2005 3:29:18 AM

0/0

I put the following statement in aspx page:
<iframe  id="frame1" scrolling="auto" runat="server"></iframe>

And put the some code at the codebehind:
 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim frame1 As System.Web.UI.HtmlControls.HtmlGenericControl
        frame1 = CType(Me.FindControl("frame1"), HtmlGenericControl) ' HtmlControl)
        frame1.Attributes("src") = "http://www.google.com"
    End Sub

An error message shows up:
Object reference not set to an instance of an object.

What should I do?
Thanks,
capola
Asp.Net User
Re: How can I implement IFrame?9/9/2005 5:43:32 AM

0/0

You could always have the iframe present, and have it invisible. When a button is clicked you can position it where ever you want (giving it absolute positioning and top/left coordinates) and specify what is source URL is. You could also inject automatically data to it if you do not want to specify a URL.

If you do not want to have the iframe tag present on the page, but want to create it dynamically, you can use innerhtml or inseradjacenthtml to add the iframe code within an existing html tag (say a div) or before/after an html element.

Bottom line look at the following

http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/IFRAME.asp
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/insertadjacenthtml.asp?frame=true
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/innerhtml.asp?frame=true

I think Iframes are much better than pop ups, considering all th epop up blockers out there.

good luck

jasonli
Asp.Net User
Re: How can I implement IFrame?9/25/2005 5:22:04 AM

0/0

Now it works. Just as simple as the following:
Source View:
  < iframe id="iFrame" width =100% height =100% runat="server"> 

Code behind:
iFrame.Attributes.Add("src", strYourURL) 

Thanks everyone's reply.
10 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional Ajax Authors: Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett, Pages: 598, Published: 2007
Beginning Dreamweaver MX 2004 Authors: Charles E. Brown, Imar Spaanjaars, Todd Marks, Pages: 792, Published: 2004
Dreamweaver in a Nutshell: A Desktop Quick Reference Authors: Heather Williamson, Bruce A. Epstein, Pages: 470, Published: 2002
JavaScript: The Definitive Guide Authors: David Flanagan, Pages: 994, Published: 2006
Core Java 2 Authors: Cay S. Horstmann, Gary Cornell, Pages: 0, Published: 2002
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Macromedia Coldfusion MX Web Application Construction Kit: Web Application Construction Kit Authors: Ben Forta, Nate Weiss, Leon Chalnick, Angela C. Buraglia, Pages: 1500, Published: 2002
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
XML in a Nutshell: A Desktop Quick Reference Authors: Elliotte Rusty Harold, W. Scott Means, Pages: 689, Published: 2004
Developing Microsoft ASP.NET Server Controls and Components Authors: Nikhil Kothari, Vandana Datye, Pages: 689, Published: 2002

Web:
How can I implement IFrame? - ASP.NET Forums How can I implement IFrame? Last post 09-25-2005 1:22 AM by jasonli. 9 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Remote Scripting with IFRAME Jan 28, 2002 ... In the remainder of this article you'll see how to implement these ... As you can see, in it's simplest form IFRAME remote scripting simply ...
[#RF-1993] Implement IFRAME creation in IE6 only - jboss.org JIRA Optimize iframe variable existence & other conditions check 3. Add a4j:log, open page in FF, execute menu ajax re-render and check log for errors/warnings. ...
How to implement iframe? - CodingForums.com New Coder. Join Date: Apr 2003. Posts: 14. Thanks: 0. Thanked 0 Times in 0 Posts . ljCharlie is an unknown quantity at this point. How to implement iframe? ...
superreview requested: [Bug 456980] implement swapDocShells() for ... Discussion subject changed to "superreview granted: [Bug 456980] [FIX]implement swapDocShells() for chrome content browser/iframe ...
[#RF-1993] Implement IFRAME creation in IE6 only - jboss.org JIRA Implement IFRAME creation in IE6 only. Created: 22/Jan/08 09:28 PM Updated: 30/ Jan/08 09:13 AM. Component/s: None. Affects Version/s: 3.2.0, 3.1.4 ...
CSS and Iframes Well, I have decided to implement iFrames on my website, however as content may change varying from frame to frame, this can be quite a ...
Embed External Content via iframe and div • Perishable Press I’m doing of all things… a myspace div overlay for someone, and the question of how to implement iframes cleanly and efficiently cropped up. ...
How to implement COMET with PHP Table des matières. How to implement COMET with PHP. Comet with iframe technique : server timestamp demo. The backend script (PHP). The client script (HTML) ...
iFrame in Gameserver - PC Help Forum Hello, i have a question. is it possible to implement an iframe into a gameserver? The Game is called Soldat ( SOLDAT - Homepage of the free 2d.

Videos:
2008-02-21-AndrewMcAfee-Enterprise20-PARCForum-V1209-iPod-HighRez2.mov PARC FORUM: February 21 ∙ 4:00 – 5:00 pm ∙ George E. Pake Auditorium, Palo Alto Research Center TITLE: "Enterprise 2.0: The State of an Art" SPE...
Lawn Mower Racing Racer Build Lowered ALSO see LOWERED Tried @ the TRACK, during the first lap I was shifting into high gear, then does it ever take off. Basic approach to lowering a Raci...
Programming Robotron in C# part 4 I'm sure you can see what's been added here! Yay! We have a player! Surprisingly the player movement and firing code was easy as pie to implement. L...
OSCAR: An Architecture for Generally Intelligent Agents In this presentation from the AGI-08 Conference, John Pollock describes how OSCAR is a fully implemented architecture for a cognitive agent, based la...
glass technology Ultra-modern structural glass technology with superb thermal insulation. Our dramatic descender fronts create totally new dimensions that are not ac...
OpenGL Sampels Help Wanted Ive been programming on and off in openGL for just under a year now and this video is a sample of some of the stuff ive done. They were all done in b...
MSI K9N2 Diamond Motherboard The MSI K9N2 Diamond is based on the nForce 780a chipset. The MSI K9N2 Diamond supports AMD socket AM2 and AM2+, phenom CPU, PCI-Express generation 2...
MSI K9N2 Diamond Motherboard The MSI K9N2 Diamond is based on the nForce 780a chipset. The MSI K9N2 Diamond supports AMD socket AM2 and AM2+, phenom CPU, PCI-Express generation 2...
Milpitas City Council Meeting Milpitas City Council Meeting
The Space WHAT crowd is this? what have we here! we must not pass it by; A Telescope upon its frame, and pointed to the sky: Long is it as a barber's pole, or ...




Search This Site:










masterpage / content holder / problem

personalization will timeout after idle?

auto download.

persist authentication

controlling aceess to specific locations

i create a web project and i get an error about not being able to load a file or assembly.

array not working properly

naming upload files

error in event module in 2.0.4

system exception error

login page

move from active directory to asp.net membership

webparts + untitled title + masterpage

opening acrobat reader in asp.net

hosting for ddn

every page loads twice (!!??)

2.1.2 html/text

admin file manager for non-admins?

generate debug info

how to setting button's font color and backcolor?

using classes inherited from htmlinput* as custom control

i need help urgently!!

enumerating rows in datatables and dataviews

using http post to send data

filling tree node

connection string question

when i do a directory search, can i search from the top group?

need free templating system for vb.net

how can i pass ctl-z + enter as input stream?

how to copy a file from the pc to a pda device using asp.net

 
All Times Are GMT