?
Solved

Iframe

Posted on 2006-11-21
1
Medium Priority
?
442 Views
Last Modified: 2010-04-06
I'm using ASP.NET 1.1

<TR>
<TD>
<asp:DataGrid id="DataGrid1">                        
<Columns>
<asp:ButtonColumn DataTextField="Services" HeaderText="Services" CommandName="Select"></asp:ButtonColumn>
</Columns></asp:DataGrid>
</TD>

<TD vAlign="top"><iframe src="Airticket.htm"></iframe>
</TD>
</TR>

Boss, My Question is:
When I Click on Datagrid   I want  to call    .htm  file  which is  rlated to seleted item.
I mean I want to change    iframe's   src   at runtime.
Pls need ur support.
Thanks,
0
Comment
Question by:sohrabus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 28

Accepted Solution

by:
gamebits earned 500 total points
ID: 17992720
<iframe name="myframe" src="Airticket.hm"></iframe>

Airticket.htm would be the default page that load up into the iframe when opening the page where the iframe is.

I added a name to the iframe so you can target it.

A link to open a new page in the iframe would be like this

<a href="www.mydomain.com/whatever.htm" target="myframe">See whatever</a>

this will get the page called whatever.htm to open up inside the iframe.

Now how you implement that with your datagrid and ASP.NET I don't have a clue, I don't know anything about ASP.

Gamebits
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question