Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.netÁ¬½ÓaccessÊý¾Ý¿â½øÐÐÌí¼Ó¸üÐÂɾ³ý²éѯ²Ù×÷

Á¬½ÓaccessÊý¾Ý¿â´úÂ룬дÔÚÒ»¸öµ¥¶ÀµÄÀàÀï
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OleDb;
namespace AppWebDLL
{
    public class ConnApp
    {
        public OleDbConnection getCon() {
          
            string strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+System.Web.HttpContext.Current.Server.MapPath("App_Data\\UserDB.mdb")+";Jet OLEDB:Database Password=admin";
            OleDbConnection objConnection = new OleDbConnection(strConnection);
            return objConnection;
        }
    }
}
ÎÒÕâϰ¹ßÕâÑùдµÄ£¬ÔÚÕâÀïSystem.Web.HttpContext.Current.Server.MapPathÊÇÓÃÀ´È¡µÃaccessµÄÏà¶Ô·¾¶µÄ£¬ÔÚÕâ¸öÀàÀïÏëҪʹÓÃSystem.Web.HttpContext.Current.Server.MapPath£¬ÏÈÒªÒýÓÃsystem.webÕâ¸öÀà¡£
Ôöɾ¸Ä²é´úÂ룬ÒÔÎÒµÄÀàдµÄ£¬ÕâÀïҪעÒâÒ»¸ö£¬Èç¹ûÄãµÄ×ֶκÍaccessµÄ¹Ø¼ü×ÖÒ»Ñù£¬ÄÇôÄã¾ÍÒªÔÚÄãµÄ×Ö¶ÎÉÏ¼Ó [ ]£¬ÈçpasswordÊÇaccessµÄ¹Ø¼ü×Ö£¬Èç¹ûÄãµÄ×Ö¶ÎÓÐÕâ¸ö£¬ÄãÔÚ×ö²Ù×÷µÄʱºò¾ÍÒªÕâÑùд[password]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AppWebDLL;
using System.Data;
using System.Data.OleDb;
using System.Collections;
namespace AppBLL
{
public class Land
{
ConnApp capp = new ConnApp();
OleDbConnection db;
OleDbCommand olecom = null;
//²éѯËùÓÐÓû§
public ArrayList GetAllUser() {
ArrayList alluserlist = new ArrayList();
db = capp.getCon();
try
{
string sql = "select USERNAME from userinfo";
olecom = new OleDbComman


Ïà¹ØÎĵµ£º

asp.netÖÐÈÝÒ×»ìÏýµÄajax¸ÅÄî


AJAXÊÇAsynchronous JavaScript and XMLËõд¡£Õâ¸ö¸ÅÄî´ú±íµÄÊÇÒ»ÖÖ¼¼Êõ£¬µ±ÄúÔÚ˵“ÎÒÔÚÏîÄ¿ÖÐʹÓÃÁËAJAX¼¼Êõʱ”£¬Ö»ÊÇ´ú±íÁËÄúʹÓÿͻ§¶ËXMLHttpRequest¶ÔÏóÓë·þÎñÆ÷¶Ë½øÐÐÒ첽ͨÐÅ¡£²»¹ýÒòÎªËæ×ÅAJAX¼¼ÊõµÄÔËÓÃÍùÍù»á´øÀ´·á¸»µÄ¿Í»§¶ËЧ¹û£¬Òò´Ë¶ÔAJAX¼¼ÊõµÄ¹ãÒåÀí½âÒ²¿ÉÒÔÈÏΪÕâÊÇÒ»ÖÖ²Ù×÷ ......

FckeditorÅäÖù¥ÂÔ asp.net°æ

ÍøÂçÎı¾±à¼­Æ÷----Fckeditor֮ʹÓÃÆª
1.ÏÂÔØFckeditor£¬asp.net°æ·ÖÁ½²¿·Ö£¬FCKeditorºÍFCKeditor.Net: ASP.Net Control¡£
¹Ù·½ÍøÕ¾£ºhttp://ckeditor.com/download
2.FckeditorÔÚÏîÄ¿Öеɡ£
  ºÜ¼òµ¥£¬²»ÔÙ׸Êö¡£
²Î¿¼ÎÄÏ×£ºhttp://www.cnblogs.com/zhubo/archive/2008/10/21/using_fckeditor_net.html
³£ ......

ASP.NET·¾¶ÎÊÌâС½á

1.·ûºÅ“/”Ö¸³ÌÐòÔËÐÐËùÔÚ¸ùĿ¼£¬¼´IIsËùÔÚĿ¼¡£
Èç¹ûiisËùÔÚĿ¼Ϊ£ºd:\programs
½â¾ö·½°¸Îªd:\programs\d
ÍøÕ¾Â·¾¶Îª£ºd:\programs\d\web\
·ûºÅ“/”´ú±íµÄÊÇ£ºd:\programs£¬²»¹ÜÄãµÄÍøÕ¾Ç°ÃæÓжàÉÙ¼¶£¬¶¼Ó¦¸Ã×÷Ϊһ¸öÕûÌå¡£
2.·ûºÅ“~/”£¬ÔòÊÇÖ¸ÍøÕ¾ËùÔÚ¸ùĿ¼¡£¼´d:\programs\ ......

ÔÚASP.NETÖÐÉÏ´«Í¼Æ¬²¢Éú³ÉËõÂÔͼ

private void btnUploadPicture_Click(object sender, System.EventArgs e)
{
   //¼ì²éÉÏ´«ÎļþµÄ¸ñʽÊÇ·ñÓÐЧ
   if(this.UploadFile.PostedFile.ContentType.ToLower().IndexOf("image") < 0)
   {
   &n ......

±à³ÌÈí¼þaspºÍasp.netµÄÇø±ð


»ú¹¹Ãû³Æ£º    ÈÕÆÚ£º2009 - 09 - 14    ²é¿´´ÎÊý£º
334 ´Î
        ASP.NetºÍASPµÄ×î´óÇø±ðÔÚÓÚ±à³Ì˼άµÄת»»£¬¶ø²»½ö½öÔÚÓÚ¹¦ÄܵÄÔöÇ¿¡£ASPʹÓÃVBS/JSÕâÑùµÄ½Å±¾ÓïÑÔ»ìºÏhtmlÀ´±à³Ì£¬¶øÄÇЩ½Å±¾ÓïÑÔÊôÓÚÈõÀàÐÍ¡¢ÃæÏò½á¹¹µÄ±à³ÌÓïÑÔ£¬¶ø·ÇÃæÏò¶ÔÏó£¬Õâ¾ÍÃ÷Ï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ