A
Andre
Hi,
In my detailsview, when editing, i try to use a Filepload field to
change the file name in my DB and upload it to the server.
But when i click the Update button i receive this error : Must declare
@image1
Every other field in my detailsview (textbox, checkbox, calendar) are
working #1, but not this one...
Here's a copy of my code :
<asp:TemplateField HeaderText="Image 1">
<EditItemTemplate>
<asp:FileUpload ID="FileUpload1" runat="server" />
</EditItemTemplate>
<ItemTemplate>
<asp:Image ID="image1" runat="server" ImageUrl='<%# "images/" &
Eval("image1") %>' Width="150" />
</ItemTemplate>
</asp:TemplateField>
Any ideas ?
Thanks
In my detailsview, when editing, i try to use a Filepload field to
change the file name in my DB and upload it to the server.
But when i click the Update button i receive this error : Must declare
@image1
Every other field in my detailsview (textbox, checkbox, calendar) are
working #1, but not this one...
Here's a copy of my code :
<asp:TemplateField HeaderText="Image 1">
<EditItemTemplate>
<asp:FileUpload ID="FileUpload1" runat="server" />
</EditItemTemplate>
<ItemTemplate>
<asp:Image ID="image1" runat="server" ImageUrl='<%# "images/" &
Eval("image1") %>' Width="150" />
</ItemTemplate>
</asp:TemplateField>
Any ideas ?
Thanks