473,508 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to open another aspx page in a specific frame?

Hi

I am very new to ASP development and I have a problem that I have spent days
on and cannot find a solution. Any help would be gratefully accepted.

I am using VB.NET to develop a ASP.NET application. I have a Frameset html
page with 2 frames, on frame 1 I have a LinkButton which will process some
data (not coded yet) and then open another aspx page on frame 2.

Can I achieve this using VB.NET? If not do I have to use client side
scripting?

I currently have the following but it loads the page in Frame 1.

Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles LinkButton1.Click

Response.Redirect("MainMenu.aspx")

End Sub

Thanks in advance, Peter
Nov 17 '05 #1
3 15876
Many thanks for coming back to me.

I have tried this and it works fine, but how do I execute code before the
page is displayed? for example if I need to check whether the user has
access to the page.

Peter

"Hina" <hi**********@hotmail.com> wrote in message
news:09****************************@phx.gbl...
Hi Peter,

Instead of using Link Button use Hyperlink Button, in
which you set the NavigateURL Property =MainMenu.aspx and
Target Property = FRAME 2.
I think this will work.

Regards,
Hina
-----Original Message-----
Hi

I am very new to ASP development and I have a problem

that I have spent days
on and cannot find a solution. Any help would be

gratefully accepted.

I am using VB.NET to develop a ASP.NET application. I

have a Frameset html
page with 2 frames, on frame 1 I have a LinkButton which

will process some
data (not coded yet) and then open another aspx page on

frame 2.

Can I achieve this using VB.NET? If not do I have to

use client side
scripting?

I currently have the following but it loads the page in

Frame 1.

Private Sub LinkButton1_Click(ByVal sender As

System.Object, ByVal e As
System.EventArgs) Handles LinkButton1.Click

Response.Redirect("MainMenu.aspx")

End Sub

Thanks in advance, Peter
.

Nov 17 '05 #2
Use Javascript in the button click event on the server. Response.write lets
you run scripts after events execute on the server.

Response.Write("<SCRIPT>window.framename.location= 'blah.aspx'</SCRIPT>")

** note that java syntax probably isn't correct. I'm too lazy to look it up
though. =)

"Peter" <pe***@tyler-online.co.uk> wrote in message
news:#F**************@TK2MSFTNGP09.phx.gbl...
Many thanks for coming back to me.

I have tried this and it works fine, but how do I execute code before the
page is displayed? for example if I need to check whether the user has
access to the page.

Peter

"Hina" <hi**********@hotmail.com> wrote in message
news:09****************************@phx.gbl...
Hi Peter,

Instead of using Link Button use Hyperlink Button, in
which you set the NavigateURL Property =MainMenu.aspx and
Target Property = FRAME 2.
I think this will work.

Regards,
Hina
-----Original Message-----
Hi

I am very new to ASP development and I have a problem

that I have spent days
on and cannot find a solution. Any help would be

gratefully accepted.

I am using VB.NET to develop a ASP.NET application. I

have a Frameset html
page with 2 frames, on frame 1 I have a LinkButton which

will process some
data (not coded yet) and then open another aspx page on

frame 2.

Can I achieve this using VB.NET? If not do I have to

use client side
scripting?

I currently have the following but it loads the page in

Frame 1.

Private Sub LinkButton1_Click(ByVal sender As

System.Object, ByVal e As
System.EventArgs) Handles LinkButton1.Click

Response.Redirect("MainMenu.aspx")

End Sub

Thanks in advance, Peter
.


Nov 17 '05 #3
Many thanks for your help, I now have a working button. :-))

Peter

"Eric Wise" <NO*****@pica.army.milSPAM> wrote in message
news:ey*************@tk2msftngp13.phx.gbl...
Use Javascript in the button click event on the server. Response.write lets you run scripts after events execute on the server.

Response.Write("<SCRIPT>window.framename.location= 'blah.aspx'</SCRIPT>")

** note that java syntax probably isn't correct. I'm too lazy to look it up though. =)

"Peter" <pe***@tyler-online.co.uk> wrote in message
news:#F**************@TK2MSFTNGP09.phx.gbl...
Many thanks for coming back to me.

I have tried this and it works fine, but how do I execute code before the page is displayed? for example if I need to check whether the user has
access to the page.

Peter

"Hina" <hi**********@hotmail.com> wrote in message
news:09****************************@phx.gbl...
Hi Peter,

Instead of using Link Button use Hyperlink Button, in
which you set the NavigateURL Property =MainMenu.aspx and
Target Property = FRAME 2.
I think this will work.

Regards,
Hina
>-----Original Message-----
>Hi
>
>I am very new to ASP development and I have a problem
that I have spent days
>on and cannot find a solution. Any help would be
gratefully accepted.
>
>I am using VB.NET to develop a ASP.NET application. I
have a Frameset html
>page with 2 frames, on frame 1 I have a LinkButton which
will process some
>data (not coded yet) and then open another aspx page on
frame 2.
>
>Can I achieve this using VB.NET? If not do I have to
use client side
>scripting?
>
>I currently have the following but it loads the page in
Frame 1.
>
> Private Sub LinkButton1_Click(ByVal sender As
System.Object, ByVal e As
>System.EventArgs) Handles LinkButton1.Click
>
> Response.Redirect("MainMenu.aspx")
>
> End Sub
>
>Thanks in advance, Peter
>
>
>.
>



Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3913
by: ck388 | last post by:
I am trying to open a frameset in a new window......where the frame called "main" shows the file called customerGeneral.aspx. I can't get it to work though...i always get something like...
3
2411
by: B.G. | last post by:
I know I've done this in the past, but dang, I forget how I did it! If you know how its done, I'd sure appreciate it if you would share that info with me. I want to go from a non-frames page to...
1
1431
by: Bongolation | last post by:
I've looked in the FAQ and didn't see anything on this. There must be a simple solution to this VERY common problem: A site featuring many text articles and archives has a frameset of two...
5
4025
by: Kojak | last post by:
I have a own search engine in a intranet. It can be opened by the search button or with the target="_search". On the page is a Textbox and a button. The page works well, but just opens in the...
3
1668
by: Greg Smith | last post by:
I am trying to create a FrontPage web site that uses aspx pages I created with VS. I am having fits trying to aspx pages to appear in a frame. Am I trying to do the impossible or am I just...
13
4485
by: Matt | last post by:
Does anyone know how to hide the ASPX extension of web pages in ASP.Net 2.0? Thanks, Matt
0
1280
by: teo | last post by:
Hallo, I need to open a page with frames; I need to open it NOT with the usual first page in its centre, but with a different page in the centre. Detailed explanation:
7
3992
by: Peter | last post by:
ASP.NET 2.0 I am trying to open a Word document and Excel document from a dialog web page, what's the best way to do that? I have tried the following: Response.Clear();...
2
3221
by: ismailc | last post by:
Hi, I need help please. I have a page with a stylesheet that is read from an aspx form. On the form I have an hyperlink object - which iIwant the Targeturl to open within the current frame where...
0
7129
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...
0
7333
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,...
0
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5637
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,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3208
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...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.