I have a grid veiw binded to an object datasource and one of the fields is the path of an image.
I have in the edit item template a file upload control and a command button to allow the users to upload the image and update the db attribute but i cant figure out how to bind that file upload control to the appropriate database field.
I tryed having a hidden labelbox and an image control and bind that to the object datasource but how can i access the file upload control from c# code to upload the image and update the label or the image controls?
this is my code:
<asp:ObjectDataSource ID="odsProducts" runat="server"
<asp:GridView ID="gvProducts" runat="server" AutoGenerateColumns="False"
DataSourceID="odsProducts" CssClass="gvNormal" GridLines="None"
EmptyDataText="No Recods Found"
AllowSorting="true" AllowPaging="true" PageSize="10">
View Complete Post