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

asp /asp.net c#Á´½ÓOrcale Êý¾Ý¿âµÄ·½°¸

1£¬ÔÚweb·þÎñÆ÷ÉÏ°²×°OracleÊý¾Ý¿â¿Í»§¶Ë£¬ÕâÊÇÁ¬½ÓOracleÊý¾Ý¿âµÄ»ù´¡£¨µ«£¬²»Ò»¶¨ÊDZØÐëµÄ£©¡£
2£¬ÔÚ¿Í»§¶ËµÄNet Manager ÖнøÐÐÅäÖ÷þÎñµÄÃû³Æ£¬ÅäÖÃÈçͼ£¨ÕâÒ»µã·Ç³£µÄÖØÒªÒÔºóµÄÁ´½ÓÈ«¶¼ÔÚÕâ¸ö·þÎñÃû³ÆµÄ»ù´¡ÉϽøÐеģ©
3£¬ASPÁ´½Ó·þÎñµÄÁ´½Ó×Ö·û´®ºÍ·½·¨ÈçÏ£º
<%
connstr= "Provider=MSDAORA.1;Password=***;User ID=***;Data Source=ipcheck;"
set conn=server.createobject("ADODB.CONNECTION")
conn.open  connstr
%>
4£¬ASP.net(C#) Á´½ÓÊý¾Ý¿â ¿ÉÒÔʹÓÃÕâƪÎÄÕ½éÉܵķ½Ê½
Ìí¼Ó
  <appSettings>
    <add key="SysDSN" value="Data Source=ServerName;User ID=userid;Password=password;Unicode=True"/>
  </appSettings>
ÔÙÕߣ¬¾Í¿ÉÒÔÌí¼ÓÒ»¸ömyclassÎļþ¼Ð£¬Ö®ºóÔÚÆäÖн¨¸öÀàÎļþ£¬Ä¬ÈÏÃüÃû¿Õ¼äÊÇmyClass
ÀàÎļþÃûΪconn.cs
ÓÉÓÚVS.NET2005²»Ä¬ÈÏÖ§³ÖoracleÊý¾Ý¿â£¬ËùÒÔÒªÌí¼ÓÆäÒýÓãºÔÚ½â¾ö·½°¸×ÊÔ´¹ÜÀíÆ÷ÀïÌí¼ÓÒýÓãºSystem.Data.OracleClient£¨×ÐϸÕÒÕÒàÞ~ÔÚ.NETÑ¡ÏÖУ©
ÄÚÈÝ£¨²»¶Ï¸üУ©£º
  1using System;
  2using System.Data;
  3using System.Configuration;
  4using System.Web;
  5using System.Web.Security;
  6using System.Web.UI;
  7using System.Web.UI.WebControls;
  8using System.Web.UI.WebControls.WebParts;
  9using System.Web.UI.HtmlControls;
 10using System.Data.OracleClient;
 11
 12namespace User.Data
 13{
 14    public class conn
 15    {
 16
 17        ¹¹Ô캯Êý#region ¹¹Ô캯Êý
 18        /**//// <summary>
 19        /// ¹¹Ô캯Êý(ĬÈÏ)
 20        /// </summary>
 21        public conn() { }
 


Ïà¹ØÎĵµ£º

asp.netµÄ´íÎó Failed to access IIS metabase

asp.netµÄ´íÎó--Failed to access IIS metabase ÊÕ²Ø
 
Server Error in '/sdxx' Application.
--------------------------------------------------------------------------------
Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the current web ......

dz̸ASP.NETÖеÄÈýÖֻỰ״̬

dz̸ASP.NETÖеÄÈýÖֻỰ״̬
     ³£ÓõÄASP.NETµÄ»á»°×´Ì¬ÖÐÓÐÈýÖÖ.·ÖΪ½ø³ÌÄڻỰ״̬¡¢×´Ì¬·þÎñÆ÷»á»°×´Ì¬¡¢SQL Server »á»°×´Ì¬
   
     ÏÈ̸̸½ø³ÌÄڻỰ״̬£¨Inprocess£©ÕâÊÇÒ»ÖÖĬÈϵÄģʽ£¬µ«ÊÇÖ»ÒªÔÚWeb.configÖнøÐмòµ¥µÄÅäÖþͿɽøÐиü¸Ä£¬¾ßÌå ......

C# µ¥ÊµÀýÉè¼Æģʽ

SingletonģʽµÄʵÏÖ
SingletonģʽµÄʵÏÖ»ùÓÚÁ½¸öÒªµã£º
1£©²»Ö±½ÓÓÃÀàµÄ¹¹Ô캯Êý£¬¶øÁíÍâÌṩһ¸öPublicµÄ¾²Ì¬·½·¨À´¹¹ÔìÀàµÄʵÀý¡£Í¨³£Õâ¸ö·½·¨È¡ÃûΪInstance¡£Public±£Ö¤ÁËËüµÄÈ«¾Ö¿É¼ûÐÔ£¬¾²Ì¬·½·¨±£Ö¤Á˲»»á´´½¨³ö¶àÓàµÄʵÀý¡£
2£©½«ÀàµÄ¹¹Ô캯ÊýÉèΪPrivate£¬¼´½«¹¹Ô캯Êý"Òþ²Ø"ÆðÀ´£¬ÈκÎÆóͼʹÓù¹Ô캯Êý´´½¨Ê ......

asp ͼƬѭ»·¹ö¶¯£¨left£©

<div class="scrollImgList1" id="scrollImgList1">
 <div class="LeftBotton" onmousedown="ISL_GoUp_1()" onmouseup="ISL_StopUp_1()" onmouseout="ISL_StopUp_1()"></div>
 <div class="Cont" id="ISL_Cont_1">
  <div class="ScrCont">
   <d ......

C#Á¬½ÓmysqlÊý¾Ý¿â

using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using MySql ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ