CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 IMG SRC tag doing wrong?

Print topic Send  topic

Author Message
Don Johnson
Posted: 01/04/2004, 11:04 PM

Hi all!


When using grid with image displaying row it is only possible to show images
located in root folder, but not in any subfolder.

Is it bug or somehow could be fixed?

I tried to use everything in IMG property sheet to set

i.e. /pictures/{image_field} but it shows only pictures from / root but not
from the subfolder /pictures

Any help?

focus1
Posted: 01/05/2004, 12:51 AM

Hi

Just type the correct path in the src field of the format tab of the image
e.g. ../pictures/MyGif.gif (Do not use the Search Form)

Regards
focus1
infobih.com
Posted: 01/06/2004, 10:30 AM

Thanks,

but I tried that. It is simple. But regardless you put in format tab any
path . It show only images from the root folder where .aspx pages stored
to.. but not in any subfolder

Use subfolder is important for security reasons. I have to set write
permission to subfolder to upload pictures

Anybody else got similar problem????

Help

"Don Johnson" <don@infobih.com> wrote in message
news:bta2kd$c14$1@news.codecharge.com...
> Hi all!
>
>
> When using grid with image displaying row it is only possible to show
images
> located in root folder, but not in any subfolder.
>
> Is it bug or somehow could be fixed?
>
> I tried to use everything in IMG property sheet to set
>
> i.e. /pictures/{image_field} but it shows only pictures from / root but
not
> from the subfolder /pictures
>
> Any help?
>
>

BlinkyBill

Posts: 86
Posted: 01/06/2004, 4:12 PM

Quote infobih.com:
Thanks,

but I tried that. It is simple. But regardless you put in format tab any
path . It show only images from the root folder where .aspx pages stored
to.. but not in any subfolder

Use subfolder is important for security reasons. I have to set write
permission to subfolder to upload pictures

Anybody else got similar problem????

Help

[/quote

Don,

I'm assuming that you sourcing the images from a table correct? If so in the properties tab for the image, change the source from DatabaseColumn to DatabaseExpression then change to ControlSource to:


'images/' + ImageColumn

or what ever your image path is. To make sure it all works delete you existing image object and place a new one in the IDE.

This should work fine.
View profile  Send private message
K Dub
Posted: 01/28/2004, 9:29 PM

:-)

Here ya go... :) I was searching for this very problem the other day. And here's how to make it work...

Select the image and add a "BEFORE SHOW" event to it.
Select CUSTOM CODE. And use the following code:

NewGridImage.ImageUrl=@"http://your/folder/path/" + NewGridImage.ImageUrl;

Replace NewGrid with the name of the grid that the control is in. And Image with the name of the Image control you are using...

So if your grid is named Widgets, and you named your image control Faces... you will use:

WidgetsFaces.ImageUrl=@"http://your/folder/path/" + WidgetsFaces.ImageUrl;

Got it?

Hope that helps... cause I know I was going crazy, too... :)
Don Johnson
Posted: 03/31/2004, 11:59 AM

I was success with Billy advice, but new problem arises. When I want to set up width of image in the Format tab i.e. 100 px, doesnt work. It displays image as it is. Any solution , where to put image dimensions to keep it under control???

Any help?

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.