473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to open a page outside an iframe?

Nad
Hello,

When I click on a linkbutton of a datagrid on a web form I open another web
form on the same page within an iframe. The page within the iframe has a
datagrid also and when I click on a linkbutton in that datagrid I redirect to
another webform.

The problem I'm having is that this last webform opens within the iframe but
I want it to open on another page outside the iframe.

Any ideas will be appreciated.

Nov 19 '05 #1
4 3377
you would have to link page inside iframe to post back to the container
page.
this can be done through using parent property in javascript, but
beaware that if pages are in different domains, this would through a
security warning

Nad wrote:
Hello,

When I click on a linkbutton of a datagrid on a web form I open another web
form on the same page within an iframe. The page within the iframe has a
datagrid also and when I click on a linkbutton in that datagrid I redirect to
another webform.

The problem I'm having is that this last webform opens within the iframe but
I want it to open on another page outside the iframe.

Any ideas will be appreciated.

Nov 19 '05 #2
On Fri, 01 Jul 2005 12:59:03 -0700, Nad wrote:
Hello,

When I click on a linkbutton of a datagrid on a web form I open another web
form on the same page within an iframe. The page within the iframe has a
datagrid also and when I click on a linkbutton in that datagrid I redirect to
another webform.

The problem I'm having is that this last webform opens within the iframe but
I want it to open on another page outside the iframe.

Any ideas will be appreciated.

Not possible with IFRAME, I am afraid. However, in your primary page you
could use a form, or the location object, and you have to set the target
to _top.

Nov 19 '05 #3
Nad
Thanks but I'm afraid I'm new to web development. My html looks like this and
ButtonColumn does not support an onclick event. I don't know how to proceed.

<form ...>
<asp:DataGrid ...>
<Columns>
<asp:BoundColumn ...></asp:BoundColumn>
<asp:BoundColumn ...></asp:BoundColumn>
<asp:ButtonColumn Text="View Visit"
CommandName="visit"></asp:ButtonColumn>
</Columns>
</asp:DataGrid>
</form>
"Ashish" wrote:
you would have to link page inside iframe to post back to the container
page.
this can be done through using parent property in javascript, but
beaware that if pages are in different domains, this would through a
security warning

Nad wrote:
Hello,

When I click on a linkbutton of a datagrid on a web form I open another web
form on the same page within an iframe. The page within the iframe has a
datagrid also and when I click on a linkbutton in that datagrid I redirect to
another webform.

The problem I'm having is that this last webform opens within the iframe but
I want it to open on another page outside the iframe.

Any ideas will be appreciated.

Nov 19 '05 #4
Nad
Sorry I don't understand. Can you elaborate?

"intrader" wrote:
On Fri, 01 Jul 2005 12:59:03 -0700, Nad wrote:
Hello,

When I click on a linkbutton of a datagrid on a web form I open another web
form on the same page within an iframe. The page within the iframe has a
datagrid also and when I click on a linkbutton in that datagrid I redirect to
another webform.

The problem I'm having is that this last webform opens within the iframe but
I want it to open on another page outside the iframe.

Any ideas will be appreciated.

Not possible with IFRAME, I am afraid. However, in your primary page you
could use a form, or the location object, and you have to set the target
to _top.

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: la_haine | last post by:
I have a collection of pages that are designed to be called into an iframe (named displayView), and the managers don't want people to be able to view them unless they're in that iframe. If I use...
1
by: William Starr Moake | last post by:
Another problem with the browser-based WYSIWYG editor I'm trying to assemble using IE's design mode. This opens the selected page in the editor iframe named iView: <select name="template"...
1
by: Ian | last post by:
I'm sure there's a really simple way to do this but I'm not really familar with javascript so a bit of help would be much appreciated. What I have currently is a php program which takes in a...
2
by: DaveO | last post by:
Hi All. I have a web with the default startup page as : index.htm that contains an iFrame. The default page, that loads in the iFrame, when index.htm is loaded, is htmPage1.htm I want...
18
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to...
1
by: kambakht | last post by:
I am using an iframe in my index.aspx thus all the webforms in application navigate in this iframe. While main appication links are present on the top of page above iframe, in main window. These...
1
by: NH | last post by:
Hi, I am sure this must be simple do (famous last words?!). I have an excel file in a folder on the website and I just want to have it open up immediately (in an iframe or something?) once the...
7
by: Peter | last post by:
ASP.NET 2.0 I am trying to open a Word document and Excel document from a dialog web page, what's the best way to do that? I have tried the following: Response.Clear();...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.