Solved

Iframe

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
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.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

770 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