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

hyperlink function in a normal button

Hi,

I want to simply add hyperlink functionality to a normal web control button.
I understand that i can use the hyperlink button for this but in this case i
dont want to do this.

Say i have a webcontrol button on the webform. within the onclick function
how would i hyperlink to a new aspx page in the same virtual directory? Is it
something to do with href? I dont wanna use the full hyperlink
(http://www.google.com.au/) but i want to just specify the .aspx page because
its in the same virtual directory....

I am developing a web app in asp.net using code behind and vb server and
client code.
Nov 18 '05 #1
1 1648
well this is what you do

either
1. add onclick on the button which opens the relative url using javascript

or

2. on server side click handler. do a
Response.Redirect("virtualdir/newfile.aspx") // something like this

3. on server side click handler. do a
Server.Transfer("virtualdir/newfile.aspx")

response.redirect does a round trip to the client before reaching the
destination. server.transfer on the other than goes straight across.
but in this case client has no information on transfer and if the client
press F5 or refresh from the newpage would still be taken back to old page.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Joshua Weir" <Jo********@discussions.microsoft.com> wrote in message
news:E6**********************************@microsof t.com...
Hi,

I want to simply add hyperlink functionality to a normal web control button. I understand that i can use the hyperlink button for this but in this case i dont want to do this.

Say i have a webcontrol button on the webform. within the onclick function
how would i hyperlink to a new aspx page in the same virtual directory? Is it something to do with href? I dont wanna use the full hyperlink
(http://www.google.com.au/) but i want to just specify the .aspx page because its in the same virtual directory....

I am developing a web app in asp.net using code behind and vb server and
client code.

Nov 18 '05 #2

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

Similar topics

9
by: Leigh Kendall | last post by:
I can't find any issue in the MS KB, but I'm experiencing the following problem which seems to be specific to IE5, and NOT any other version of IE 5.5+ or NN 6+. Issue: I'm using an asp.net...
1
by: Pat | last post by:
All, What I want to do: ******************* Click on a hyperlink in the last column in a datagrid, have it grab a value in the fourth column in the same row and send it to the codehind into a...
1
by: Joshua Weir | last post by:
Hi, Is there an onclick event function for hyperlink buttons? I couldnt seem to find one. How else would i do checks at the client side (such as if correct information is displayed in a textbox...
0
by: Waran | last post by:
Hi, In a datagrid I am displaying 2 columns. One is a Hyperlink Colum and the other is a Button Column. The values for the hyperlink columns are fetched from the database and its a url. When I...
4
by: wrytat | last post by:
I have a form with a textbox for the user to enter a quantity and another textbox for the delivery date. I disabled this delivery date textbox such that the user has to press a calendar link next...
3
by: TPhelps | last post by:
I have a sample of an unbound (autogeneratecolumns is true) sortable/pagable datagrid that works. I want to change one of the columns to a hyperlink. The examples I find use a bound column. I...
4
by: sulemanzia | last post by:
I have a form with a Command button. i have a text box also which is bound to my Button. i have created a standard module and created an onclick event for my button which is something like this (...
2
rsmccli
by: rsmccli | last post by:
Hello, Using Access 2002 I have a function that will accept a path to a document as a string, then open and print it. I have a table (tblScopeHyperlinks) that saves all hyperlinks inputted from...
6
by: vspsdca | last post by:
Hi, I'm a newbie here and does not really have any formal training on VBA. I just need help to get my hyperlink to work. I have a form in MS Access with a browse button where a user can select a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.