Mega Code Archive
Categories
/
ASP.Net Tutorial
/
Data Binding
Use an ImageField to display an image stored on the servers hard drive
You can't use an ImageField to display images stored in a database table. <%@ Page Language="C#" %>
Show ImageField
" SelectCommand="SELECT FileName, AltText FROM Photos" InsertCommand="INSERT Photos (FileName, AltText) VALUES (@FileName, @AltText)" Runat="server">
Add Photo
' Columns="50" Runat="server" />
File: Web.config