Wrox Programmer Forums
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 22nd, 2007, 03:16 AM
Authorized User
Join Date: Nov 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to set one frame src from other frame

I am using Asp.net with C#. I am new with asp.net 2.0 .
First I faced a problem how to create frameset.
I solve a problem as create a table and in every <td> create <iframe> .
Now my problem is this when a linkButton or hyperlink clicked on one frame. I want it's link page open in other frame src.
Ok! help me to solve this problem.

Kumar Ashish
Kumar Ashish
Old February 22nd, 2007, 09:04 AM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

You need to do something in javascript like parent.frames[n].location.href='page';

================================================== =========
Read this if you want to know how to get a correct reply for your question:
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET

Old March 13th, 2007, 04:13 AM
Authorized User
Join Date: Feb 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts

You may create a frameset (a .htm file) and in the <head> </head>
        <frame name="f1" src="abc.aspx">
        <frame name="f2" src="...">


now if you need to have the respone in frame2, when clicked a link in abc.aspx of frame1,
just goto the DESIGN>HTML TAB add this line in the <head> </head> section
<base target="f2">
that will work.
you will have a good guidance if you are working in VS.net, you can create there a frame set, and goto html view of the frame set page. you will find some guidance.

But using framesets is not recomended in strict html. frame set has some problems.

Aritra Mukherjee,
CS-4th Year,

Similar Threads
Thread Thread Starter Forum Replies Last Post
parsing form data from frame to other frame audio-catalyst Classic ASP Basics 5 January 3rd, 2006 02:57 PM
Build Frame set in ASP.NET mistry_bhavin General .NET 1 February 24th, 2005 02:37 AM
Call right frame Page_Load event from left frame. ochanarachel Classic ASP Basics 0 January 28th, 2005 05:13 AM
Refresh a frame from another frame czambran Javascript 3 October 21st, 2004 11:20 AM
Use cookie to set main frame npepin Javascript 0 October 18th, 2004 02:01 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.