Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 September 28th, 2003, 11:11 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default image problem...

hi, i want to display an image after running an event. i use this on render block
<asp:Image id="Image1" runat="server" src="mail2.gif"...</asp:image>

it display the picture, but once i write code in page load event with this,

Image1.src=mail2.gif

... it show me error...


my referrence book just cover really a little of image control..... can any1 provide some documentation or tutorial of it? thanks.

Regards
life's Ng

 
Old September 29th, 2003, 01:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, try using...
Code:
Image1.ImageUrl = "mail2.gif"
... and if you are using C# be careful with the case of some of the letters.

Hope it helps

Jacob.

 
Old September 29th, 2003, 02:42 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default

yeah! thanks alot! i like eat Jacobs~~~

Best Regards
life's Ng






Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Image Problem pete robinson Classic ASP Basics 3 December 6th, 2007 09:39 AM
problem with image settings..... kethireddy435 ASP.NET 1.x and 2.0 Application Design 1 October 13th, 2007 09:35 AM
Chapter 7 - Image Problem SoftMind BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 June 19th, 2006 04:30 PM
Image Referencing Problem Ben Horne HTML Code Clinic 2 October 21st, 2003 09:10 AM
image display problem please help mateenmohd Classic ASP Basics 0 June 7th, 2003 02:00 PM





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