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
-
<frameset>
-
<FRAME name=frame2 src=page2.aspx>
-
<FRAME name=frame3 src=page3.aspx>
-
</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
-
document.form2.method="post";
-
document.form2.target=" frame3";
-
document.form2.submit();
-
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_selectedIndexchange() 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_SelectedIndexChanged(..) ), but it calls page3's page_load() function ..
But bank combo is in page2 only..
Why ?
Plz help me...