473,490 Members | 2,695 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Open a new web page in a web form? Please help!!

Hi All,

How I can open a new web page in a web form?

I know response.redirect("...aspx") will re-direct the current page to another.
However, what I want is to remain the current page unchange and by clicking
a button on current form to open a new web page.

Any assistance is highly appreciate.

Cheers

Larry

Nov 19 '05 #1
4 1494
Opening a new window is a client side operation and not directly
controllable from the server. You'll have to have your page emit some
javascript that calls window.open(). You can use the
Page.RegisterStartupScript() or Page.RegisterScriptBlock() methods to easily
accomplish this. I've provided the links to the MSDN documentation for easy
reference.

http://msdn.microsoft.com/library/de...cripttopic.asp

http://msdn.microsoft.com/library/de...blocktopic.asp

--
HTH
----------------
Dave Fancher
http://davefancher.blogspot.com

"Larry" <la***@widextech.com> wrote in message
news:38********************@news.microsoft.com...
Hi All,

How I can open a new web page in a web form?

I know response.redirect("...aspx") will re-direct the current page to
another. However, what I want is to remain the current page unchange and
by clicking a button on current form to open a new web page.

Any assistance is highly appreciate.

Cheers

Larry

Nov 19 '05 #2
Larry,

Have you thought what you want to do with that extra page?

Often is creating a textbox on the currentpage the goal that is wanted to be
achieved when people ask this question.

(Use panels that you make visible and invisible for that).

And that is much easier to do.

Cor
Nov 19 '05 #3

Larry wrote:
Hi All,

How I can open a new web page in a web form?

I know response.redirect("...aspx") will re-direct the current page to another. However, what I want is to remain the current page unchange and by clicking a button on current form to open a new web page.

Any assistance is highly appreciate.


<form runat="server" id="myForm" target="_blank"> should work.

If you don't want to open new pages for all buttons' clicks, you will
need javascript to change myForm's target at client-side.

Nov 19 '05 #4
Hi,

Another option is to convert the aspx page to a control and add the
control to a panel.

http://msdn.microsoft.com/library/de...sercontrol.asp

Ken
------------------------
"Larry" <la***@widextech.com> wrote in message
news:38********************@news.microsoft.com...
Hi All,

How I can open a new web page in a web form?

I know response.redirect("...aspx") will re-direct the current page to
another.
However, what I want is to remain the current page unchange and by clicking
a button on current form to open a new web page.

Any assistance is highly appreciate.

Cheers

Larry


Nov 19 '05 #5

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

Similar topics

3
3975
by: sentinel | last post by:
Hi, Wonder if anyone can help with this problem: I am using an app with several pages, using a session to track vars between the pages, and using an image map to re-direct back and forwards...
1
462
by: Konstantin | last post by:
Can someone help me figure out a way to open a form only once in an MDI app. I have an MDI app that contains several forms. I use each form depending on the type of document that the user needs...
1
12007
by: edself | last post by:
I have a form which displays a subform datasheet of information. I'd like to be able to quickly click on a particular record and open up another form showing more detailed information about that...
14
3737
by: Simon Abolnar | last post by:
I would like to know how to open child form from dialog form. Thanks for help! Simon
8
1282
by: Vivek | last post by:
Hi, I am using this code to open the form... --------------------------------------------------------------------------------------- Private frmAddUser as AddUser() Dim fc As Form For Each fc...
1
1858
by: Don Croner | last post by:
I am using access 2003 with windows xp. I have created a data base for to keep track of my 180 employees. I have created a table with 21 records. Then I created a form to input employee data. I...
5
5472
by: BD | last post by:
I am coding with C# in Visual Studio 2005 for a database application residing on remote MS SQL Server 2005. What I want to do is open the same form but from 2 different places and only one...
2
5305
by: Del | last post by:
I have a form call frmMMD-PCKR. This form has seven buttons, each button represents a part. When I click on any of the buttons they open another form called frmTallyTagMMDPCKR. On the...
4
1420
by: Franck | last post by:
I'm a vb programmer but i have to touch C# a bit now. I'm looking for a thing that doesn't seems to exist anywhere here im talking of how to open a form. in vb it was just frmMyform.show or...
5
3686
by: Mai Le | last post by:
Hello Experts. Coul you please help me to fix my program. I created a login from with 2 levels. Admin an User. If Admin login will open A form and If User login will open B form I had table...
0
7112
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,...
0
7356
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
5448
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
4878
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
4573
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...
0
3084
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
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1389
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 ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.