Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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³ÌÐòÔ±£ºÍøÕ¾ÖеݲȫÎÊÌâ

×öÏîĿҲÓÐÒ»¶Îʱ¼äÁË£¬ÔÚ³ÌÐòÖÐÒ²Óöµ½ºÜ¶à°²È«·½ÃæµÄÎÊÌâ¡£Ò²¸Ã×ܽáÒ»ÏÂÁË¡£Õâ¸öÏîÄ¿ÊÇÒ»¸ö CMS ϵͳ¡£ÏµÍ³ÊÇÓà ASP.NET ×öµÄ¡£¿ª·¢µÄʱºò·¢ÏÖ΢Èí×öÁ˺ܶలȫ´ëÊ©£¬Ö»ÊÇÓÐЩÐÂÊÖ³ÌÐòÔ±²»ÖªµÀÔõô¿ªÆô¡£ÏÂÃæÎÒͨ¹ý¼¸¸ö·½Ãæ¼òµ¥½éÉÜ£º
¡¡¡¡1£ºSQL ×¢Èë
¡¡¡¡2£ºXSS
¡¡¡¡3£ºCSRF
¡¡¡¡4£ºÎļþÉÏ´«
SQL ×¢Èë
¡¡¡¡ÒýÆðÔ­Ò ......

c#¶ÌÐÅÍø¹ØÖйØÓÚ¶ÌÐÅÄÚÈݱàÂëµÄת»»

ÎÞÂÛÔÚcmpp»òsgipÖУ¬¶¼»áÓöµ½¶ÌÐűàÂë¸ñʽת»»µÄÎÊÌâ¡£
ÒòΪÏÖÔÚ¶ÌÐűàÂë³£ÓõĸñʽÓÐÈýÖÖ£º0£ºASCII´®£¬8£ºUCS2±àÂ룬15£ºº¬GBºº×Ö¡£ÔÚ·¢ËÍ»ò½ÓÊÕ¶ÌÐÅʱ£¬¶¼»áÓõ½ÏàÓ¦µÄ±àÂëת»»¡£ÈçÒÔÏ´úÂ룺
public static String Decode(Byte[] buf, int StartIndex, int Length, CODING Coding)
{
......

c# 4.0 ÐÂÌØÐÔ dynamic

ǰ¶Îʱ¼ä¿´¹ýһЩ¹ØÓÚdynamicÕâ¸öC#4ÖеÄÐÂÌØÐÔ£¬¿´µ½ÓÐЩÅóÓÑÈÏΪdynamicµÄ±×´óÓÚÀû£¬ÈçÎÞ·¨Ê¹ÓñàÒëÆ÷ÖÇÄÜÌáʾ£¬ÎÞ·¨ÔÚ±àÒëʱ×ö
¾²Ì¬ÀàÐͼì²é£¬ÐÔÄܲîµÈµÈ¡£Òò´ËÔÚÕâÆªÎÄÕÂÖÐÎÒ½«¾ÍÕâЩÎÊÌâÀ´¶Ôdynamic×öÒ»¸ö½ÏÏêϸµÄ½éÉÜ£¬Ï£Íûͨ¹ýÕâÆªÎÄÕ£¬ÄÜʹ´ó¼Ò¶Ôdynamic¹Ø¼ü×ÖÓÐ
¸ö¸üÉîÈëµÄÈÏʶ¡£
dynamic½éÉÜ
ÏàÐźܶàÈËÓ¦¸Ã ......

asp utf 8 Í·ÎļþÊý¾Ý¿âÁª½Ó³Ø

 <%@Language="VBScript" CodePage="65001"%>
<% option explicit%>
<% on error resume next %>
<% Session.CodePage="65001" %>
<% response.charset="utf-8" %>
<%
dim conn,connstr,sql,rs,rs2,rs3
connstr="dbq=" & server.MapPath("../data091003/data09 ......

asp ÎÄ×ÖÑ­»·¹ö¶¯£¨up£©

<div id="storyScroller" style="width:100%;height:140px;line-height:28px;overflow:hidden;">
 <div id="storyScrollMid">
  <ul id="storyScrollUl" style=" list-style-type:circle; list-style-position: outside; margin-left:18px; margin-right:0px">
<li>item01</l ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ