随笔分类 - ASP.NET学习笔记
摘要:1 1. ASP与Access数据库连接: 2 3 <% 4 dim conn,mdbfile 5 mdbfile=server.mappath("数据库名称.mdb") 6 set conn=server.createobject("adodb.connection") 7 conn.open "driver={microsoft access driver (*.mdb)};uid=admin;pwd=数据库密码;dbq="&mdbfile 8 %> 9 10 11 2. ASP与SQL数据库连接: 12 13
阅读全文
摘要:protected void Button1_Click(object sender, EventArgs e) { string FullFileName = this.flLl.PostedFile.FileName; string fileName = FullFileName.Substring(FullFileName.LastIndexOf("\\") + 1); this.txtimage.Text = "~/photo/"+ fileName; string type = fileName.Substring(fi...
阅读全文

浙公网安备 33010602011771号