473,402 Members | 2,050 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,402 software developers and data experts.

imagebutton used as hyperlink

Tom
I have an image button that does a few bits and bobs for
me. I want to go to a hyperlink once the button has been
selected, and my vb code has been run. It sounds like
something simple, but I can't figure it out for the life
of me. Is this at all possible? Thanks in advance
tom
Jul 19 '05 #1
3 2500
Is this a Windows app or a Web App?

"Tom" <tx*@maplesandcalder.com> wrote in message
news:06****************************@phx.gbl...
I have an image button that does a few bits and bobs for
me. I want to go to a hyperlink once the button has been
selected, and my vb code has been run. It sounds like
something simple, but I can't figure it out for the life
of me. Is this at all possible? Thanks in advance
tom

Jul 19 '05 #2
"phoenix" <pa******@skynetWORK.be> wrote in
news:ue**************@TK2MSFTNGP10.phx.gbl:
Look up the ShellExecute API. It can open your default browser to
open a specified page without knowing which browser it is.
I don't think there's a direct solution in dotnet. You could use the
Process class but then you have to specify the browser location by
looking up which app is bound to html/asp/... files and where it is.
Which is a lot more difficult.

Yves


You know about assumptions, right, something about u and umption?

Instead of using ShellExecute, you can use this "direct solution in
dotnet":

ProcessStartInfo psi = new ProcessStartInfo("http://www.microsoft.com/");
psi.UseShellExecute = true;
Process.Start(psi);

Mark
Jul 19 '05 #3
Tom
found it
system.diagnostics.

cheers
tom
-----Original Message-----
"phoenix" <pa******@skynetWORK.be> wrote in
news:ue**************@TK2MSFTNGP10.phx.gbl:
Look up the ShellExecute API. It can open your default browser to open a specified page without knowing which browser it is. I don't think there's a direct solution in dotnet. You could use the Process class but then you have to specify the browser location by looking up which app is bound to html/asp/... files and where it is. Which is a lot more difficult.

Yves
You know about assumptions, right, something about u and

umption?
Instead of using ShellExecute, you can use this "direct solution indotnet":

ProcessStartInfo psi = new ProcessStartInfo ("http://www.microsoft.com/");psi.UseShellExecute = true;
Process.Start(psi);

Mark
.

Jul 19 '05 #4

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

Similar topics

2
by: Paul Russell | last post by:
I haven't found a good example of how to use this button for the purposes of opening a new web page. Scenario: User clicks ImageButton (which points to my RSS file) and a URL open sort of event...
5
by: J McD | last post by:
Hi I have a DataGrid with an ImageButton column. When I click on an imagebutton I get a postback but it doesn't run the OnImgBtnClick method. I can actually comment out the line where I add this...
2
by: David Hearn | last post by:
I have an ImageButton control that I am using on one of my pages. Sometimes, this button will act as a button and redirect users to another page. But sometimes, it will just act as an image...
1
by: Nathan Sokalski | last post by:
I want to create a pushbutton-like control on my webform that has an image on it. I used to think that this is what the ImageButton control was, but it seems to me that the ImageButton is nothing...
13
by: tperri | last post by:
I have an HTML table with several fields like this: <A href="Savings.aspx?category=Food"><asp:imagebutton id="imgFood" ImageUrl="images\buttons\btn-food-i.gif"...
3
by: Tom | last post by:
I have an image button that does a few bits and bobs for me. I want to go to a hyperlink once the button has been selected, and my vb code has been run. It sounds like something simple, but I...
6
by: simon | last post by:
hello. have an image button that i'd like to add some onMouseOver/Out to an imageButton. line looks like this... <asp:ImageButton onMouseOut="MM_swapImgRestore()"...
3
by: JuniorProgrammer | last post by:
Am trying to add an Image Button into a Datalist at Design time. When I run it it comes up with error: Server tag not well formed. It works perfectly when I add just an Image Control. Please...
3
by: adnan.masood | last post by:
I want to put a image button on the page where if user clicks should download a zip file for the user I could do it following way but I want to put asp.net button. <a href="Myzip.zip"><img...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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
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.