protected void btnDB_ServerClick(object sender, EventArgs e)
{
int size = FileUpload1.PostedFile.ContentLength;
HttpPostedFile file = FileUpload1.PostedFile;
string FileName = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName);// myFile.PostedFile.FileName.substring(myFile.PostedFile.FileName.lastindexof("\"))
int FileSize = FileUpload1.PostedFile.ContentLength;
float theFileSize = float.Parse(FileSize.ToString()) / 1024;
byte[] FileContent = new byte[FileSize];
//ac.Guid = Guidstr;
Stream objStream = FileUpload1.PostedFile.InputStream;
objStream.Read(FileContent, 0, FileSize);
Database db = new Database();
string Title = txtTitle.Text;
string UserID = User.Text;
string AcceptGroup = txtAcceptGroup.Text;
string OtherGroup = txtOtherGroup.Text;
DateTime AddTime = DateTime.Now;
string AddUser = Session["UserID"].ToString();
int Sequence = 0;
Response.Redirect("OldInput.aspx");
}
{
int size = FileUpload1.PostedFile.ContentLength;
HttpPostedFile file = FileUpload1.PostedFile;
string FileName = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName);// myFile.PostedFile.FileName.substring(myFile.PostedFile.FileName.lastindexof("\"))
int FileSize = FileUpload1.PostedFile.ContentLength;
float theFileSize = float.Parse(FileSize.ToString()) / 1024;
byte[] FileContent = new byte[FileSize];
//ac.Guid = Guidstr;
Stream objStream = FileUpload1.PostedFile.InputStream;
objStream.Read(FileContent, 0, FileSize);
Database db = new Database();
string Title = txtTitle.Text;
string UserID = User.Text;
string AcceptGroup = txtAcceptGroup.Text;
string OtherGroup = txtOtherGroup.Text;
DateTime AddTime = DateTime.Now;
string AddUser = Session["UserID"].ToString();
int Sequence = 0;
string Term = jc_j.Text + "届" + jc_c.Text + "次";
Response.Redirect("OldInput.aspx");
}