DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 10 Aug 2007 15:38:08 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Tina


DetailsView - DataImageUrlField   
I can't get an image to show in a DetailsView.  I am trying both an 
ImageField and a template field with an image in it with databindings to the 
datasource.  I know the datasource works because the image shows in the 
test.  All I get is the RED X.

I have google searched this problem and I have seen it reported several 
times but never answered.  Is this a bug?  Is there a workaround?


here is my DetailsView definition......................
                <asp:DetailsView ID="dvDetails" runat="server" Height="50px" 
Width="708px" AutoGenerateRows="False" DataSourceID="dsDetails">
                    <Fields>
                        <asp:CheckBoxField DataField="active" 
HeaderText="active" SortExpression="active" />
                        <asp:BoundField DataField="numresumesposted" 
HeaderText="numresumesposted" SortExpression="numresumesposted" />
                        <asp:BoundField DataField="address1" 
HeaderText="address1" SortExpression="address1" />
                        <asp:BoundField DataField="hoursavailable" 
HeaderText="hoursavailable" SortExpression="hoursavailable" />
                        <asp:BoundField DataField="maxhoursperweek" 
HeaderText="maxhoursperweek" SortExpression="maxhoursperweek" />
                        <asp:BoundField DataField="resumetitle" 
HeaderText="resumetitle" SortExpression="resumetitle" />
                        <asp:BoundField DataField="resumefilestring" 
HeaderText="resumefilestring" SortExpression="resumefilestring" />
                        <asp:ImageField AccessibleHeaderText="Photo" 
DataImageUrlField="photo">
                        </asp:ImageField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Image ID="Image1" runat="server" 
Height="166px" ImageUrl='<%# Eval("photo") %>'
                                    Width="175px" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Fields>
                </asp:DetailsView>

thanks,
T
Date:Fri, 10 Aug 2007 15:38:08 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us