asp.net +access
ΪʲôÎÒ·ÃÎÊaccessÊý¾Ý¿âµÄʱºò¾³£»áÁ¬½Óʧ°Ü°¡¡£ÎÒµÄÁ¬½Ó´®ÊÇдÔÚweb.configÀïÃæµÄ
<add key="myds" value="Provider=Microsoft.Jet.OLEDB.4.0;Data source="/>
<add key="myconn" value="\App_Data\WaterDB.mdb"/>
´úÂëÈçÏ£º
public static readonly string ConnectionString = ConfigurationManager.AppSettings["myds"] +HttpContext.Current.Server.MapPath("~")+ (ConfigurationManager.AppSettings["myconn"].Trim());
C# code:
<connectionStrings>
<add name="ydycon" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=|DataDirectory|WaterDB.mdb" providerName="System.Data.OleDb"/>
</connectionStrings>
C# code:
string conn=System.Configuration .ConfigurationManager.ConnectionStrings ["ydycon"].ToString()
ÅäÖÃÎļþÈçÏÂ
<add key="Connectionstring" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="/>
<add key="dbPath" value="~/App_Data/testdb.mdb"/>
CS
C# code
Code highlighting produced by Actipro CodeHighlighter
Ïà¹ØÎÊ´ð£º
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 ......
rt ÎÒÉú³ÉµÄÎļþµÄ±£´æ¶¼ÊÇutf-8 ÈçºÎÄÜÊÖ¶¯¿ØÖƳÉASCII
System.IO.File.WriteAllText(@"c:\a.txt", "hello", Encoding.ASCII);
ÄÇÊ×ÏÈ¿´Äã¶Á½øÀ´µÄÎļþÊǸöʲô±àÂë¸ñʽ,Èç¹ ......
ÄÄλ´ó¸çÓÐûÓÐASP.NETÖÐÀûÓÃCookiesʵÏÖÓû§×Ô¶¯µÇ¼µÄ´úÂë...ллÁË...Ô½ÏêϸԽºÃ....
ʲôÒâ˼£¿×Ô¶¯µÇ¼£¿
mark òÊÓÊÇ´æ´¢cookies ÎÒÒ²¶Ôcook±È½ÏÃÔºý ¹Ø×¢ÏÂ
¼ÈÈ»ÄãÖªµÀÓÃcookies×Ô¼º¶¯¶¯´óÄÔ¶àºÃ£¡ ......
ËÖªµÀ£¬×îºÃÊÇʵÀý£¬²âÊÔ¹ýµÄ¸üºÃ£¬Ð»Ð»·ÖÏí£»
http://www.92dotnet.com/showtopic-428.aspxC# code:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using Sy ......
ASP.NET ´íÎó ÎÞ·¨Ê¶±ðµÄ±ê¼Çǰ׺»òÉ豸ɸѡÆ÷¡°asp¡±
´úÂëÈçÏ£º
<%@ Page Language="C#" ContentType="text/xml" AutoEventWireup="true" CodeFile=" ......