Solved

how to change contents of a frame programmatically

Posted on 2010-11-10
1
458 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

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

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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

920 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

13 Experts available now in Live!

Get 1:1 Help Now