Solved

Iframe

Posted on 2006-11-21
1
427 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 250 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to dynamically set the form action using jQuery.

717 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