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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|