|
 |
aspx thread: ASP .NET (Working with frames)
Message #1 by "sumith p d" <sumithpdd@r...> on 16 Aug 2001 11:27:05 -0000
|
|
hello,
i have a problem while working with frames
i have frist.aspx with Frame A, Frame B,Frame C which have FrameA.aspx,
FrameB.aspx, FrameC.aspx respectively
From Frame A on Button1 click i need to refresh another aspx page which
is in frame B or Frame C and pass few values between these pages also
from frame A on Button2 click , I need to open a new window, how can i
achive this in ASP.Net (The buttons are a part of ToolBar webcontrol).
please suggest.
Message #2 by Todd Carrico <ToddC@m...> on Thu, 16 Aug 2001 08:44:08 -0500
|
|
Ok, My list of suggestion for Frames.
1. Frames are Evil
2. The Devil created Frames
3. If you are having a problem related to the Target, refer to item 1
4. If you are having a problem such as nesting frames that turn into a
cascading mess, refer to 1
5. If you are trying to refresh data in a particular frame, refer to 1.
I think Frames were a bad attempt to replace...I don't have an explanation
for that one. Suffice to say that they are difficult to work with. It takes
careful planning to pull it off.
As far as trying to "Pass" data between them, I would resort to tables and
get away from frames. You need more control than Frames give you IMO.
tc
-----Original Message-----
From: sumith p d [mailto:sumithpdd@r...]
Sent: Thursday, August 16, 2001 6:42 AM
To: ASP+
Subject: [aspx] ASP .NET (Working with frames)
hello,
i have a problem while working with frames
i have frist.aspx with Frame A, Frame B,Frame C which have FrameA.aspx,
FrameB.aspx, FrameC.aspx respectively
From Frame A on Button1 click i need to refresh another aspx page which
is in frame B or Frame C and pass few values between these pages also
from frame A on Button2 click , I need to open a new window, how can i
achive this in ASP.Net (The buttons are a part of ToolBar webcontrol).
please suggest.
Message #3 by "sumith" <sumithpdd@r...> on Mon, 20 Aug 2001 11:09:06
|
|
ok i agree but i am using a toolbar which has 2 buttons and on the 1 st
button click on the tool bar i need to open a new window with an 1 st
aspx page and on other click i will stay on the page can you tell me how
to achive this. both are server controls
Message #4 by "Chris Scott" <chris@e...> on Mon, 20 Aug 2001 12:58:44 -0700
|
|
Sumith,
You will need to connect some client-side script to the buttons onclick
event to open the new window e.g.:
...onclick=OpenWindow()...
<script language=javascript>
function OpenWindow(){
window.open("myUrl.aspx");
}
</script>
If you need to trigger a particular method in your code you could attach a
query string parameter to the url and check the Request object for this when
your page first loads.
For the other button just connect the its onclick event to the required
server-side method.
HTH
Chris
----- Original Message -----
From: "sumith" <sumithpdd@r...>
To: "ASP+" <aspx@p...>
Sent: Monday, August 20, 2001 11:09 AM
Subject: [aspx] RE: ASP .NET (Working with frames)
> ok i agree but i am using a toolbar which has 2 buttons and on the 1 st
> button click on the tool bar i need to open a new window with an 1 st
> aspx page and on other click i will stay on the page can you tell me how
> to achive this. both are server controls
|
|
 |