473,503 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to open a web form with a button??

Hi all,

I am a beginner in using ASP.net, and I want to ask: If I have two
web-forms in the same project(Web-Application) and I want one of them
to open the another via a button? How can I do it? And what if I have
each one in a different project??? How can this be done?
Regards,
RASHRASHETTA
Nov 19 '05 #1
2 4362
just use response.redirect inside click event of button...or if u want both
to pages to remain open, then user href property of a hyperlink button
control.

"Rashrashetta" <ra*********@hotmail.com> wrote in message
news:6c**************************@posting.google.c om...
Hi all,

I am a beginner in using ASP.net, and I want to ask: If I have two
web-forms in the same project(Web-Application) and I want one of them
to open the another via a button? How can I do it? And what if I have
each one in a different project??? How can this be done?
Regards,
RASHRASHETTA

Nov 19 '05 #2
hi,
this is very simple.
if u want to pass any data between first page to second page u can use
on the button click of first page add code Server.Transfer("Secondpage.aspx");

if u donot want to pass data but to display the page
Add code
Response.redirect("Secondpage.aspx");

if u want to open page residing on other project
specify the entire path
response.Redirect(http://localhost/project/webpage2.aspx");

cheers
jeebu

"Rashrashetta" <ra*********@hotmail.com> wrote in message news:6c**************************@posting.google.c om...
Hi all,

I am a beginner in using ASP.net, and I want to ask: If I have two
web-forms in the same project(Web-Application) and I want one of them
to open the another via a button? How can I do it? And what if I have
each one in a different project??? How can this be done?


Regards,
RASHRASHETTA

Nov 19 '05 #3

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

Similar topics

1
6456
by: ST | last post by:
This is my other error when I click on Immunoflourescence. I believe this is related to the other error I just posted (Input string was not in a correct format.) Please let me know if you have...
3
3697
by: VbUser25 | last post by:
hi.. i have a form i accept some user inputs in the form. there is a link on the form from where i open the excel file in the same browser (not in a new page...simply using a href. i am also...
1
2685
by: lawrence | last post by:
This PHP function prints out a bunch of Javascript (as you can see). This is all part of the open source weblog software of PDS (www.publicdomainsoftware.org). We had this javascript stuff...
1
5398
by: Jorge Ponte | last post by:
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for...
2
2926
by: carlor | last post by:
Hi there, I have a form that contains a link button. When the user clicks the link button I need to enable a couple of other buttons on the page and open a new browser window giving it focus...
4
9847
by: jaYPee | last post by:
I know how to open a form from another form. Say open form2 from form1 using a command button. But my problem is everytime I clicked the button it open again another instance of that form. ...
14
3740
by: Simon Abolnar | last post by:
I would like to know how to open child form from dialog form. Thanks for help! Simon
4
4697
by: fat | last post by:
I have a drop down combo box that displays a list of customers , and the list is growing.. I would like to click the dropdown arrow and have a List box in a new form open, then i can choose a...
3
10548
by: kev | last post by:
Hi folks, I have a form for registration (frmRegistration) whereby i have two buttons. One is Save which saves record using the OnClick property. I used wizard to create the save button. The...
5
7614
by: billa856 | last post by:
Hi, My project is in MS Access 2002. In that I want to open one form multiple times. I put one button on my main form. Now whenever I click on that button than form will be open. Now when I...
0
7199
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
7323
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
7453
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
5576
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,...
0
3162
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
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1507
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
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
377
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.