<@Pagelanguage="c#"Debug="true"Codebehind="Image2Access.ASPx.cs"AutoEventWireup="false"Inherits="eMeng.Exam.Image2Access">
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHtml4.0Transitional//EN">
<Html>
<HEAD>
<title>上傳文件到Access數據庫</title>
<metaContent="MicrosoftVisualStudio7.0">
<metaContent="C#">
<metacontent="JavaScript">
<metacontent="http://schemas.microsoft.com/intellisense/IE5">
</HEAD>
<bodyMS_POSITIONING="GridLayout">
<formmethod="post"runat="server"enctype="multipart/form-data">
<h3align="center">上傳文件到Access數據庫</h3>
<ASP:DataGridAutoGenerateColumns="False"Width="99"HeaderStyle-BackColor="#ff0000"
HeaderStyle-Font-Bold="True"HeaderStyle-ForeColor="#ffffff"ItemStyle-BackColor="Beige"BorderColor="#000000"
Runat="server"HeaderStyle-HorizontalAlign="Center">
<Columns>
<ASP:TemplateColumnHeaderText="姓名">
<ItemTemplate>
<ASP:LabelRunat="server"Text='<#DataBinder.Eval(Container.DataItem,"PersonName")>'/>
</ItemTemplate>
</ASP:TemplateColumn>
<ASP:TemplateColumnHeaderText="電子郵件">
<ItemTemplate>
<ASP:LabelRunat="server"Text='<#DataBinder.Eval(Container.DataItem,"PersonEmail")>'/>
</ItemTemplate>
</ASP:TemplateColumn>
<ASP:TemplateColumnHeaderText="性別">
<ItemTemplate>
<ASP:LabelRunat="server"Text='<#DataBinder.Eval(Container.DataItem,"PersonSex")>'/>
</ItemTemplate>
</ASP:TemplateColumn>
<ASP:TemplateColumnHeaderText="照片">
<ItemTemplate>
<ASP:ImageRunat=serverImageUrl='<#FormatURL(DataBinder.Eval(Container.DataItem,"PersonID"))>'/>
</ItemTemplate>
</ASP:TemplateColumn>
</Columns>
</ASP:DataGrid>
<b>文件名字:</b><inputtype="text"runat="server">
<P>
<b>文件:</b><inputtype="file"runat="server">
<br>
<br>
<inputtype="submit"value="開始上傳"runat="server">
</P>
</form>
</body>
</Html>