Solved

how to change contents of a frame programmatically

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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