Solved

Iframe

Posted on 2006-11-21
1
380 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WSDL Soap Error 12 261
iOS retina Display, HTML Email Signature 5 493
Some high points and examples of what's great about Facebook React? 5 120
Stupid git question 2 61
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 …
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now