472,969 Members | 1,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,969 software developers and data experts.

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 1478
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
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
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
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
by: Simon Abolnar | last post by:
I would like to know how to open child form from dialog form. Thanks for help! Simon
8
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
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
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
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
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
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
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.