CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> .NET

 Relative Path for Image Control

Print topic Send  topic

Author Message
sgadson

Posts: 45
Posted: 11/04/2004, 3:54 PM

Hello,

My file upload component uploads images to my /Pics directory. I am having problems showing the image in my grid.

I have tried editing the html to include the path to the /Pics folder. However when I publish my site the aspx page is not picking up the html edits. The aspx page loads the default url of the site, therefore I get no image displayed.

Does anyone know how to fix this?

I am using VB.Net
_________________
Shawn :-)
View profile  Send private message
peterr


Posts: 5971
Posted: 11/04/2004, 4:07 PM

Maybe try pressing F9 to regenerate the whole site, which usually picks all HTML changes. I'm not sure why else this wouldn't work.

You could also take a look at the Employees example (http://examples.codecharge.com/EmployeeDirectory/EmpsDetail.php?emp_id=16 ) by creating a new .NET project based on that example, then review how the image is shown there. I think that it uses a little different method, but may be helpful too.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
sgadson

Posts: 45
Posted: 11/04/2004, 4:17 PM

Thanks for the quick response:

I tried publishing the entire site but it didn't work. Is this the correct html...

<td class="ClearDataTD"><img class="ClearInput" src="../Pics/{Show_Pic}" width="100" border="0"></td>

_________________
Shawn :-)
View profile  Send private message
Stan
Posted: 11/05/2004, 5:04 AM

You can try to use BeforeShow event of the Image with the following code

<FormName>Show_Pic.ImageUrl = "../Pics/" + DataItem.Show_Pic.GetFormattedValue()

Stan
sgadson

Posts: 45
Posted: 11/07/2004, 8:39 PM

Thanks Stan!

This worked with one minor change:

<FormName>Show_Pic.ImageUrl = "../Pics/" + Item.Show_Pic.GetFormattedValue()

_________________
Shawn :-)
View profile  Send private message

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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