Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 29th, 2008, 05:04 AM
Authorized User
 
Join Date: Dec 2007
Posts: 65
Thanks: 9
Thanked 2 Times in 2 Posts
Send a message via AIM to sandeepgreaternoida Send a message via MSN to sandeepgreaternoida Send a message via Yahoo to sandeepgreaternoida
Smile how to link an image in visual studio 2003

how to link an image in visual studio 2005.
what i was ment : if some one click over image some desired webpage should open.
why is not possible this way: <a hrf="somewebsite.com"><img src="somepic.jpg"></a>



regards,

sandeep

Last edited by sandeepgreaternoida; December 30th, 2008 at 01:26 AM.. Reason: i was ment to this
 
Old December 29th, 2008, 09:26 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

What do you mean link to an image?? A simple Image tag would suffice...
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
 
Old December 29th, 2008, 03:13 PM
Authorized User
 
Join Date: Dec 2008
Posts: 50
Thanks: 1
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by sandeepgreaternoida View Post
how to link an image in visual studio 2005.
pls. provide me the code ...i was unable to do that.

regards,

sandeep
in visual studio in designer mode insert an image from the toolbox usually on left, right click on image and properties and select a link for the image.

or use the following code

<a href="http:/www.yahoo.com" ><img src='http://www.yahoo.com/logo.jpg' style='border:0px;' alt='yahoo.com logo' /></a>

hope that helps...

thanks

Last edited by zeronexxx; December 29th, 2008 at 03:16 PM..
The Following User Says Thank You to zeronexxx For This Useful Post:
sandeepgreaternoida (December 30th, 2008)
 
Old December 29th, 2008, 03:26 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

It is worthwhile to point out that 'Image' will appear at least twice in your toolbox (depending on your settings): once as a server control and once as an HTML control.

If all you need is a static image then the latter will suffice since all it is is:

html Code:
<image src="foo.jpg" ... />

If the image needs to be dynamic or you need to do some sort of manipulation to the properties are runtime use the former which will place:

aspnet Code:
<asp:Image id="image1" ImageUrl="foo.jpg" runat="server" ... />

in your code view.

Again your question is very broad but any of the scenarios provided in this thread will add an image to your Web Form.

hth
-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
The Following User Says Thank You to dparsons For This Useful Post:
sandeepgreaternoida (December 30th, 2008)





Similar Threads
Thread Thread Starter Forum Replies Last Post
asking information about Visual Studio 2003 books hari_purwanto_ui ASP.NET 2.0 Basics 3 October 1st, 2007 08:54 AM
Visual Studio 2003 Not Responding pcliu Reporting Services 0 August 30th, 2006 03:12 AM
Visual Studio 2003 vs. Visual Studio 2005 eitanbarazani C# 2005 4 May 9th, 2006 01:34 AM
Visual Studio 2005 AND vs 2003 MAB VS.NET 2002/2003 1 December 27th, 2005 05:40 PM
Visual Studio 2002 Vs. 2003 psmothers BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 September 13th, 2004 09:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.