Solved

Iframe

Posted on 2006-11-21
1
362 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
Comment Utility
<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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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…

744 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

17 Experts available now in Live!

Get 1:1 Help Now