C
Christian Schlemmer
hi,
in a DetailsView i have a image display.
images i want to store in a seperate directory, but it a path is added to
Bind update and delete is not working.
just Bind makes my DetailsView updateable, but scripts and images would be
nice to be seperated.
<asp:TemplateField HeaderText="Bild">
<ItemTemplate>
<asp:Image ID="Bild" ImageUrl='<%# Bind("Bild") %>'
runat="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:Image ID="Bild" ImageUrl='<%# Bind("Bild") %>'
runat="server" />
</EditItemTemplate>
</asp:TemplateField>
Bind with path parameters displays the image correctly, but makes my
DetailsView uneditable
<asp:TemplateField HeaderText="Bild">
<ItemTemplate>
<asp:Image ID="Bild" runat="server" ImageUrl='<%#
Bind("Bild", "../Upload/{0}") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:Image ID="Bild" runat="server" ImageUrl='<%#
Bind("Bild", "../Upload/{0}") %>' />
</EditItemTemplate>
</asp:TemplateField>
Container.DataItem displays the image correctly, but makes my DetailsView
also uneditable
<ItemTemplate>
<asp:Image ID="Bild" ImageUrl='<%# "../Upload/" &
Container.DataItem("Bild") %>' runat="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:Image ID="Bild" ImageUrl='<%# "../Upload/" &
Container.DataItem("Bild") %>' runat="server" />
</EditItemTemplate>
would be apprechiated for a suggestion.
thanks a lot
Christian
in a DetailsView i have a image display.
images i want to store in a seperate directory, but it a path is added to
Bind update and delete is not working.
just Bind makes my DetailsView updateable, but scripts and images would be
nice to be seperated.
<asp:TemplateField HeaderText="Bild">
<ItemTemplate>
<asp:Image ID="Bild" ImageUrl='<%# Bind("Bild") %>'
runat="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:Image ID="Bild" ImageUrl='<%# Bind("Bild") %>'
runat="server" />
</EditItemTemplate>
</asp:TemplateField>
Bind with path parameters displays the image correctly, but makes my
DetailsView uneditable
<asp:TemplateField HeaderText="Bild">
<ItemTemplate>
<asp:Image ID="Bild" runat="server" ImageUrl='<%#
Bind("Bild", "../Upload/{0}") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:Image ID="Bild" runat="server" ImageUrl='<%#
Bind("Bild", "../Upload/{0}") %>' />
</EditItemTemplate>
</asp:TemplateField>
Container.DataItem displays the image correctly, but makes my DetailsView
also uneditable
<ItemTemplate>
<asp:Image ID="Bild" ImageUrl='<%# "../Upload/" &
Container.DataItem("Bild") %>' runat="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:Image ID="Bild" ImageUrl='<%# "../Upload/" &
Container.DataItem("Bild") %>' runat="server" />
</EditItemTemplate>
would be apprechiated for a suggestion.
thanks a lot
Christian