473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

How to invoke second win form

Hi
I have project (in C#) that consists with two win forms:
index.aspx and create.aspx

How to invoke (load) create.aspx from index.aspx by eg. pressing button.
- in the same window
- and in new IE window

Thanks
Nov 18 '05 #1
6 1090
in codebehind you'll most likely use
Resposne.Redirect();

in clientside/html you can use an "onClick()"

You can ONLY open a second window by using the clientside/html way, using
the window.open()
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Lupina" <lu****@op.pl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi
I have project (in C#) that consists with two win forms:
index.aspx and create.aspx

How to invoke (load) create.aspx from index.aspx by eg. pressing button.
- in the same window
- and in new IE window

Thanks

Nov 18 '05 #2
P.S...
Fix your clock/timezone.

If I had noticed I wouldn't have answered.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Lupina" <lu****@op.pl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi
I have project (in C#) that consists with two win forms:
index.aspx and create.aspx

How to invoke (load) create.aspx from index.aspx by eg. pressing button.
- in the same window
- and in new IE window

Thanks

Nov 18 '05 #3
Thanks

Response.Redirect("create.aspx"); - works well
but could you give me more details how to use

window.open() and
onClick()

I'm green in asp.net.

PS: Time zone is now set well :)

Nov 18 '05 #4
nope, time is still wrong.

those items you asked about are javascript/clientside calls, this is the
wrong group for them.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Lupina" <lu****@op.pl> wrote in message
news:eF**************@TK2MSFTNGP10.phx.gbl...
Thanks

Response.Redirect("create.aspx"); - works well
but could you give me more details how to use

window.open() and
onClick()

I'm green in asp.net.

PS: Time zone is now set well :)

Nov 18 '05 #5
If you on Google and type in both of those keywords I am sure that you will
get thousands of pages describing them.

--Landi

"Lupina" <lu****@op.pl> wrote in message
news:eF**************@TK2MSFTNGP10.phx.gbl...
Thanks

Response.Redirect("create.aspx"); - works well
but could you give me more details how to use

window.open() and
onClick()

I'm green in asp.net.

PS: Time zone is now set well :)

Nov 18 '05 #6
If you search on Google for those two keywords I am sure you will find a
thousand sites telling you how to work with them.

--Landi

"Lupina" <lu****@op.pl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi
I have project (in C#) that consists with two win forms:
index.aspx and create.aspx

How to invoke (load) create.aspx from index.aspx by eg. pressing button.
- in the same window
- and in new IE window

Thanks

Nov 18 '05 #7

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

Similar topics

4
by: Ben Reese | last post by:
Simplified. I have 2 forms running on seperate threads (and message queues) I am having some odd problems with with the form on the second Thread/message queue freezing and/or dyinig, seemingly at...
6
by: Vladimir | last post by:
May be it's not obvious what am i asking for... I have 2 threads in my application. The first thread responds for the user interface and sending key combinations, the second thread listening...
10
by: Abel | last post by:
I have this code string theClassName = "Rules.FillListBox.FillListBox" + theType + ", Rules" Type theClass = Type.GetType(theClassName) Object o = Activator.CreateInstance(theClass) object...
2
by: rawCoder | last post by:
Hi I am having this InvalidOperationException with message Cannot call Invoke or InvokeAsync on a control until the window handle has been created This is raised when i try to invoke a method...
4
by: Altramagnus | last post by:
I have a form first created my the main thread. I have another thread monitoring the IO. Upon receiving certain message, I want to show/unhide the form. When the form is first created ( handle...
3
by: Jeff Stewart | last post by:
I have a worker thread running a POP3 mail retriever that raises a NewEmail event every time a message is retrieved. The NewMail handler updates a ListView in my form with a line representing the...
11
by: cindy | last post by:
I have a form, has javascript registered so a modal pops up. Button click will close form. Now I need to do an update with modal form data before it closes. I can put a second button and register...
3
by: SatCom | last post by:
Hello, I had originally posted this in the winforms.controls discussion, forgive the double post, Here is where I need help... I have been porting some VB6 to VB2005 and here is the issue with...
6
by: k.mellor | last post by:
Hi, I hope someone can help. I have written a simple form to demonstrate my problem/question. The code follows. The form starts a thread, which using delegates updates a label (Every second...
1
by: Phillip Taylor | last post by:
I have an application which displays a ListView control on a form. I start a second thread to run in the background and populate the control. When the second thread finishes it's work, it invokes a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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
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...

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.