Solved

how to change contents of a frame programmatically

Posted on 2010-11-10
1
459 Views
Last Modified: 2012-06-21
I have several webpages in webapplication. Page Default.aspx contains 2 frames(with identifiers "frame1" and "frame2") with 2 other pages Menu.apsx and FormGenerator.aspx. Depending on selection option in DropDownList on Menu.aspx I want to load to "frame2" one of pages WebForm1.aspx or WebForm2.aspx or WebForm3.aspx. How to implement this.
I attached the source code of how I tried to implement this issue(but it does not work) application-form-generator.zip
0
Comment
Question by:AlexKostrub
1 Comment
 
LVL 15

Accepted Solution

by:
aibusinesssolutions earned 500 total points
ID: 34108650
You'll need to use javascript to accomplish that, since you aren't using normal links.

In the menu.aspx

parent.frame2.location='webform2.aspx';

You could add it to the onChange() function of the dropdown.

You could do it programatically by using the attribute tag.

DropDownList1.Attributes.Add("onChange", "somefunction('this.value')")
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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 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