473,386 Members | 1,775 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,386 software developers and data experts.

code behind button click open 2nd web page

Hi
I am using vb.net code behind.

In my code I have a button click event on my main web
form.

Private Sub btNew_Click(ByVal sender As System.Object,
ByVal e As
System.EventArgs) Handles btNew.Click
Server.Transfer("New.aspx?") ' this moves to a
new pagie
End Sub

I would like to open a second web form without closing or
leaving the first form.
I need to do this with the form Button not a hyperlink
button.

Can this be done?

Thanks
Brian
..
Nov 19 '05 #1
3 3346
<an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
Hi
I am using vb.net code behind.

In my code I have a button click event on my main web
form.

Private Sub btNew_Click(ByVal sender As System.Object,
ByVal e As
System.EventArgs) Handles btNew.Click
Server.Transfer("New.aspx?") ' this moves to a
new pagie
End Sub

I would like to open a second web form without closing or
leaving the first form.
I need to do this with the form Button not a hyperlink
button.


If you can use an HtmlButton, then you can set the client-side "onclick"
event to the appropriate JavaScript to open the new page.

John Saunders
Nov 19 '05 #2
No this web page looks like a windows app. I need the to
use the buttons.. is there a way to make a hyperlink
button look like a form button?
-----Original Message-----
<an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
Hi
I am using vb.net code behind.

In my code I have a button click event on my main web
form.

Private Sub btNew_Click(ByVal sender As System.Object,
ByVal e As
System.EventArgs) Handles btNew.Click
Server.Transfer("New.aspx?") ' this moves to a
new pagie
End Sub

I would like to open a second web form without closing or leaving the first form.
I need to do this with the form Button not a hyperlink
button.
If you can use an HtmlButton, then you can set the

client-side "onclick"event to the appropriate JavaScript to open the new page.

John Saunders
.

Nov 19 '05 #3
<an*******@discussions.microsoft.com> wrote in message
news:0e****************************@phx.gbl...
No this web page looks like a windows app. I need the to
use the buttons.. is there a way to make a hyperlink
button look like a form button?


Sorry, what are you saying no to? Is there a problem with the
HtmlInputButton control?

John Saunders
-----Original Message-----
<an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
Hi
I am using vb.net code behind.

In my code I have a button click event on my main web
form.

Private Sub btNew_Click(ByVal sender As System.Object,
ByVal e As
System.EventArgs) Handles btNew.Click
Server.Transfer("New.aspx?") ' this moves to a
new pagie
End Sub

I would like to open a second web form without closing or leaving the first form.
I need to do this with the form Button not a hyperlink
button.


If you can use an HtmlButton, then you can set the

client-side "onclick"
event to the appropriate JavaScript to open the new page.

John Saunders
.

Nov 19 '05 #4

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

Similar topics

7
by: Jo | last post by:
Hi, I have a small (hopefully!) problem. I have two buttons on my web page and when button A is clicked, the code behind takes about 3 seconds to execute. While it's executing though, I don't want...
8
by: Steph | last post by:
Hi. I'm very new to MS Access and have been presented with an Access database of contacts by my employer. I am trying to redesign the main form of the database so that a button entitled...
4
by: Carlo Marchesoni | last post by:
I have a button that opens a new Window (some kind of search-window), which is fired using JavaScript (btnSearch.Attributes=".....";) Now I need to run some code behind code BEFORE this JavaScript...
1
by: Machi | last post by:
let say i have a web form with a button on it ... when i click the button, it will pop up one small window to allow me to save a pdf file, everything is done using code behind as below ... however,...
5
by: VB Programmer | last post by:
Here's the quick situation: 1. Using VS.NET I create 1 fully functioning aspx page, with code behind. (Simple webform: It has a few text boxes, 1 hyperlink, 2 and buttons.) 2. I uploaded it to...
2
by: Ric | last post by:
im new to asp.net. from what i understand, you have the aspx file (presentation), user-control(ascx file), code-behind(vb file) and components(compiled vb and dll files). the aspx file contains a...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
19
by: Alan Silver | last post by:
Hello, I have been developing ASP.NET with a text editor so far (better way to learn initially), and have now been trying Visual Web Developer. I want to create a project for an existing site...
2
by: VMI | last post by:
I have a LinkButton_search on my Page1.aspx that opens up a popup page called popup.aspx. I do this with LinkButton.Attributes.Add() on the Page_Load of Page1.aspx. How can I add server-side code...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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...

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.