473,806 Members | 2,782 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

2 Frame On Same Page

3 New Member
Hi ,
I've a doubt using 2 frames in same page .

PAGE 1 has 2 frames called F1 and F2.

F1 refers page P2
F2 refers page P3

In this P2 has a drop down list (bank ), when it's changed branch combo get loaded depend on bank code using BankCode_Select edIndexChanged event.

both are server controls.

first time it's loaded correctly.. After that i'm submitting the page P2 (which is in frame F1)..
It retrives values and display it in P3 ( i mean in frame F2 )

Once again if i try to change bank code , it didn't fire BankCode_Select edIndexChanged event . instead it fires page_load() function of page3 ( in frame F2)...

i dont know why it's calling page_load of Page P3 , instead of page_load of Page P2
.
If anyone knows , plz help me
Jul 25 '07 #1
5 1445
Frinavale
9,735 Recognized Expert Moderator Expert
Hi ,
I've a doubt using 2 frames in same page .

PAGE 1 has 2 frames called F1 and F2.

F1 refers page P2
F2 refers page P3

In this P2 has a drop down list (bank ), when it's changed branch combo get loaded depend on bank code using BankCode_Select edIndexChanged event.

both are server controls.

first time it's loaded correctly.. After that i'm submitting the page P2 (which is in frame F1)..
It retrives values and display it in P3 ( i mean in frame F2 )

Once again if i try to change bank code , it didn't fire BankCode_Select edIndexChanged event . instead it fires page_load() function of page3 ( in frame F2)...

i dont know why it's calling page_load of Page P3 , instead of page_load of Page P2
.
If anyone knows , plz help me

How are you reloading the values into P3 based on the values in P2?

I could be wrong here but..I think what's happening is your whole page is getting submitted when the DropDownList's index is changed. In order to re-display the page, P3's page_load must be called and your values are getting lost.

This seems overly complicated for what you are trying to do.
Jul 25 '07 #2
gokula309
3 New Member
How are you reloading the values into P3 based on the values in P2?

I could be wrong here but..I think what's happening is your whole page is getting submitted when the DropDownList's index is changed. In order to re-display the page, P3's page_load must be called and your values are getting lost.

This seems overly complicated for what you are trying to do.
hi friend,
Page1.aspx has coding like this
Expand|Select|Wrap|Line Numbers
  1. <frameset>
  2. <FRAME name=frame2 src=page2.aspx>
  3. <FRAME name=frame3 src=page3.aspx>
  4. </frameset>
In frame 2(Actually frame1's SRC= page2.aspx) ,so in page 2 there is a bank combo (runat=server) ,
and one more combo called branch (runat=server) .
when bank combo changed , the branch combo must be reloaded to display branches based on bank code.
after that i click "OK" button , it calls a javascript which has the following code
Expand|Select|Wrap|Line Numbers
  1. document.form2.method="post";
  2. document.form2.target=" frame3";
  3. document.form2.submit();
  4.  
so It will display some details of bank's in frame3 ( Actually frame3's SRC= page3.aspx)

so page3 has datagrid to display the details.

when page1 is loaded page2 ( which is in frame2)
has bankcode combo (LOADED with values) and branch code combo (not loaded).
page3 is empty. ( which is in frame3)

when i select bank , it will load branch codes ( in this event page2's page_load() function and bankcombo_selec tedIndexchange( ) events are fired and branches loaded successfully.).

Then i'll click "OK" button , which submit's the form2 (page2's form name ) and it's result targeted to frame2 as like above code. (This time page3's page_load() function called and datagrid loaded, based on parameter send from page2 )

so page3's datagrid loaded with neccessary info of bank and branch ..

Now, my problem is ....

Again if i select some other bank in bank combo, it doesn't call it's corresponding page_load ( must be page2's page_load() fuction called and bankcombo_Selec tedIndexChanged (..) ), but it calls page3's page_load() function ..

But bank combo is in page2 only..

Why ?

Plz help me...
Jul 26 '07 #3
Frinavale
9,735 Recognized Expert Moderator Expert
Hi gokula309,

I'm sorry about the delayed reply.
I took some time to research your problem and discovered that any time that you need to call your server side code, the Whole page is refreshed. I also discovered that when a frameset page is refreshed, the original urls for each frame are loaded.

This means that your Page3.aspx will be re-loaded every time you submit your information to the server from any aspx page in your frameset. It doesn't matter whether the server side code was called from Page1.aspx, Page2.aspx, or Page3.aspx, all of them will be reloaded.

eg.
If you submit information from Page2.aspx, your Page1.aspx and Page3.aspx will be reloaded.

According to this article on Working with Frames in .NET, if you use SmartNavigation in your aspx pages, only the elements within the form will be submitted to the server.

I hope this helps you!

-Frinny
Jul 27 '07 #4
gokula309
3 New Member
Hi Frinny,
Thanks for your timely help... I tried some other ways too.. Not able to solve it. My friend told that one option for that AJAX..
Aug 1 '07 #5
Frinavale
9,735 Recognized Expert Moderator Expert
Hi Frinny,
Thanks for your timely help... I tried some other ways too.. Not able to solve it. My friend told that one option for that AJAX..
Ajax could work...

I still think that the frames are over complicating your problem.
I recommend thinking about putting your pages into user controls and adding them to a single page.

Cheers!
-Frinny
Aug 1 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2482
by: Bart Plessers \(artabel\) | last post by:
Hello, I am wondering if one could do following. I have a main frame with 3 subframes ("top", "left" and "contents") I have a link in the left frame, someting like: <a href="test.asp?Mypath=/multimedia/images/">images</a> When clicking the link in the left frame, the page "test.asp" is displayed in the "contents" frame, with parameter MyPath displayed correctly
3
1952
by: Morten Thorsen | last post by:
Hi frame experts c",) Hope you can help me out on this one I've got a frameset (index.html) on my server (server A) defining two frames. Left frame is named "menu" and contains a page (menu.html) which is located on the same server while right frame is named "main" and contains a page (main.html) which is located on another server (server B). This page has a form named "f" with an element named "id". I want to access/read the value of...
3
2470
by: qwerty | last post by:
I´m new to ASP.Net. My workmate has some experience with it. He claimed that in ASP.Net working with frames is much simpler than it was ASP. I asked explanation but he couldn't give me such. (a button inside a-tag with attribute target isn't anything new relating ASP.Net, its same old HTML). He claimed that you could change another page´s controls´s property´s value from another frame by using this method: ' Page "Bottom"
1
1838
by: success_ny | last post by:
I cannot seem to find the answer to this rather simple question. Pardon me if it looks illogial or silly. Can I create a frame in the same page without referring to other html files? I.e., I have a large dynamically created table in my JSP page. I would like to place it inside the scrollable frame. If I put the whole table into a separate file, I can easily do it by referring to that HTML file from the 'src' attribute. But what if I want...
5
3515
by: Martin Chen | last post by:
I have a frame set (as per MS FrontPage 2000). It has a contents and a main frame. The contents frame has a menu bar written with with javascript (in the context of a table). In IE6.1 everything works fine as it also does in firefox if I call the contents frame directly (i.e. outside of its frameset). However, if I call my main page (index.html) which invokes the frame set, the contents frame javascript menubar onmouseover function...
17
4184
by: Bruno | last post by:
I have a feature that is hosted on a different domain from the primary one in a frame, and need to retain values in a cookie. example: A web page at one.com contains a frame which has a page hosted at two.com If I view the frameset from one.com in Firefox, all works well with the content from two.com. But if trying to view this using IE (with standard security settings), the cookie set by two.com is not accessible.
42
3895
by: smerf | last post by:
Using javascript, is there a way to trap an external page inside a frame? I've seen scripts to break out of frames, but nothing to keep a page trapped in a frame.
2
3136
by: crferguson | last post by:
I'm having a really odd issue. Recently my company has upgraded our data server. For a couple of months I'm having to host two versions of the same website on our webserver until the new data server is placed in production. Basically, on the same webserver, I have "Website_Old" which pulls its data from our old data server. I now also have a mirror version of the same website on the same webserver named "Website_New", but this one...
4
6749
by: Matt | last post by:
I am no JavaScript guru so please bear with me and be as detailed as possible with your response. I thank you in advance. I have an ASP page that contains form elements. I also have an inline frame on this page that contains multiple checkboxes with the same name/id. This is a search form and users need the ability to select which categories they would like to search for. I have to put the categories in an inline frame to save real...
6
1954
by: Richard Maher | last post by:
Hi, Now that I am aware that JS on a page in Frame A can directly call a function on a page in Frame B, I no longer have to continue with my frameB.location.reload() fudge in order to get some code to run in B's context. This is fantastic news, and I'm having a ball! But before running off with all my convert's zeal and converting all my <script src="common.js"copy-books to direct parent.frame.function() calls I'd like to pause for a...
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10623
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10373
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3852
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.