摘要:
namespace dal { public class oledo { private olehelp olehelpex; public oledo() { olehelpex = new olehelp(); } /// ... 阅读全文
摘要:
循序渐进很重要 阅读全文
摘要:
namespace dal { public class olecado { private olehelp olehelper; public olecado() { olehelper = new olehelp(); } ///... 阅读全文
摘要:
Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('上传成功!');</script>"); 阅读全文
摘要:
private String HtmlCode(string TString) { if (TString != null) { TString = TString.Replace("\r", "<br>"); TString = TString.Replace(" ", " "); ... 阅读全文
摘要:
namespace dal { public class olehelp { private OleDbConnection conn = null; private OleDbCommand cmd = null; private OleDbDataReader oddr = null; public olehelp() { conn = new OleDbConnection(ConfigurationManager.AppSettings["connstring"].ToString()); } privat... 阅读全文
摘要:
protected void Button1_Click(object sender, EventArgs e) { if (FileUpload1.PostedFile.FileName == "") { Page.ClientScript.RegisterStartupScript(Page.GetType(), "message"... 阅读全文
摘要:
protected void btnfileup_Click(object sender, EventArgs e) { try { if (FileUpload1.PostedFile.FileName == "") { Page.ClientScript... 阅读全文
摘要:
首先在web.config中添加: <system.web> <httpRuntime maxRequestLength="40960" executionTimeout="6000"/> </system.web> 提交按钮的代码如下 protected void btnfileup_Click(object sender, EventArgs e) {... 阅读全文