asp.net+access发布网站
asp.net+access发布网站,web.config中的ConnectiongString该怎么写呢, 我是这样写的: <connectionStrings> <add connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=.\hsz\DB\hzs.mdb" name="hzsConnectionString"/> </connectionStrings> Data Source 要用相对路径,上传到ftp上的hzs.mdb在文件夹hsz中的DB中 急!!!谢谢!!
试试server.mappath() asp.net不识别server.mappath(); XML code: <!--可以在globar.asx里面写,或者在连接数据库的时候写--> data source=" +Server.MapPath("")+ "hzs.mdf"; 引用 XML code <!--可以在globar.asx里面写,或者在连接数据库的时候写--> data source=" +Server.MapPath("")+ "hzs.mdf"; 不行啊,Server.MapPath在web.config里面有用吗? XML code: <appSettings> <add key="access_con" value="provider=microsoft.Jet.Oledb.4.0;data source=" /> <add key="access_path" value="/hsz/DB/hzs.mdb" /> </appSettings> C# code Code highlighting produced by Actipro CodeHigh
相关问答:
select top 12 * from Product where [id] not in (select top 12 [id] from Product) 这样可以分页,但是我在后面想加个条件 select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
asp.net批量上传图片最好有源码,在线等!!!!!!! 源码很长的。 参考 C# code: HttpFileCollection files = HttpContext.Current.Request.Files; if (files.Count <= 1) { ......
发给我一份 280535258@qq.com 谢谢 要分可以说 多少都行 参考::!!!! 前台 <%@ Page language="c#" Codebehind="Domain.aspx.cs" AutoEventWireup="false" Inherits=&q ......
我用的是Godaddy的服务,使用 C# code: HttpRuntime.UnloadAppDomain(); 来重启程序会抛出异常,应该是权限不够,请教大家还有没有其他的办法? using System.ServiceProcess; public void ResetAsp ......
错误提示: Error creating bean with name 'DAOProxy' defined in class path resource [appcontext.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionMana ......