2024年4月10日发(作者:)

1、建所需数据库和表,语句如下:

--建立数据库

create database test

--使用该数据库

use test

--建立存放图片的表

create table piclist(

id int Identity primary key,

pic Image not null

)

2、制作上传图片的模块,代码如下:

前台html代码:

<%@ Page Language="C#" AutoEventWireup="true"

CodeFile="" Inherits="Test_UpPhoto" %>

"/TR/xhtml1/DTD/">

无标题页

OnClick="btnAdd_Click">

"