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

C#Éú³Écom×é¼þ£¬¹©aspµ÷ÓÃ

C#Éú³Écom×é¼þ£¬¹©aspµ÷ÓÃ
Ò»¡¢vs2005—н¨ÏîÄ¿—C#Àà¿â
Àà¿âÔ´ÂëÈçÏÂ(°üº¬½Ó¿Ú£¬À࣬ʼþ½Ó¿Ú)£º
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Data.SqlClient;
using System.Runtime.InteropServices;
namespace entryclass
{
    //GuidÖµµÄ²úÉú£ºProgram FilesMicrosoft Visual Studio 8Common7Toolsguidgen.exe£¬ÔËÐÐËü£¬Ñ¡Öе¥Ñ¡4£¬µã“New Guid”£¬µã“Copy”£¬½øÈëÀà¿â£¬Õ³Ìù¼´¿É
   //Àà½Ó¿Ú
    [Guid("F2257E71-ECC9-47ef-A065-F5B530F24B07")]       
    public interface ini_mng_Interface       
    {
        [DispId(1)]              //¹Ì¶¨Ð´·¨£¬Ë÷ÒýºÅ´Ó1¿ªÊ¼
        string ini_dme(string entryuser, string entrypass, string agentname, string agentpass, string constr);
        [DispId(2)]   
        string ini_svr(string entryuser, string entrypass, string agentname, string agentpass, string constr);
    }
    // ʼþ½Ó¿Ú
    [Guid("45875EE5-5C8D-4016-897A-FCC7DD5A6834"),             //¹Ì¶¨Ð´·¨
    InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
    public interface ini_mng_Events
    {
    }
    //Àà
    [Guid("8EDFA9EA-9589-4157-AEEF-AB4861EFE5D6"),                 //¹Ì¶¨Ð´·¨
    ClassInterface(ClassInterfaceType.None),
    ComSourceInterfaces(typeof(hst_odr_Events))]
    public class ini_mng : ini_mn


Ïà¹ØÎĵµ£º

SqliteÔÚC#ÖеÄÓ¦ÓÃ

ÔÚ .NET ÀïÃæʹÓà SQLite£¬ ÎÒÕâÀïʹÓõÄwrapperÊÇ System.Data.SQLite£¬ËüÖ»ÐèÒªÒ»¸ödll,½Ó¿Ú·ûºÏADO.Net 2.0µÄ¶¨Òå,ÐÔÄÜÒ²²»´í,NHibernateÓõÄÒ²ÊÇËü£¬Ä¿Ç°Ö§³ÖADO.NET 3.5ÁË£¬Ö§³Ö¼¯³ÉÔÚ VS2005 ºÍ VS2008ÀïÃ棬¶øÇÒÖ§³Öwince£¬ÊǸöÁÁµã
ÒòΪ·ûºÏADO.NETµÄ¹æ·¶£¬ËùÒÔʹÓ÷½Ê½£¬»ù±¾ºÍ SqlClient, OleDbµÈÔ­ÉúµÄÒ»ÖÂ
us ......

C#¶ÁÈ¡º¬ÓÐxmlnsµÄXMLÎļþ

1 ÀàËÆxmlns=""µÄÎļþ
ʾÀýXMLÎļþ:
 <?xml version="1.0" encoding="UTF-8"?>
<WebSrvMessage xmlns="http://www.lenoval.com/">
  <version>1.0</version>
  <DataContent>
    <DateTag>2010-5-17</DateTag>
  </DataCont ......

C#(asp.net)ʵÏÖĿ¼(ÎÞÀ©Õ¹Ãû)ÖØд

ÔÚ2003ϵͳÏÂ,°´ÕÕÔÚIIS6ÖÐÍøÕ¾ÓÒ¼üÊôÐÔ£­Ö÷Ŀ¼£­ÅäÖã­ÔÚͨÅä·ûÓ¦ÓóÌÐòÓ³É䣭²åÈëÉèÖÃÌí¼ÓͳÅä·û,¿ÉÖ´ÐÐÎļþÑ¡ÔñC:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll¡¡×¢Òâ“È·ÈÏÎļþÊÇ·ñ´æÔÚ”Õâ¸öÑ¡ÏҪѡÉÏ
2 Õ¾µãÖÐÒýÈëUrlRewrting.dll
3 Web.configÅäÖÃÐÞ¸ÄÈçÏ£º
<RewriterConfig& ......

js C# ASP.Net ÕýÔòÈ¥µô³¬Á´½Ó(Ö»ÊÇ ºÍ )

//Ìæ»»ËùÓÐ
Regex reg = new Regex(@"(?is)</?a\b[^>]*>(?:(?!</?a).)*</a>");
string result = reg.Replace(yourStr, "");
//±£Áôwww.abc.comÁ´½Ó
Regex reg = new Regex(@"(?is)</?a\b.*?href=(['""]?)(?!(?:http://)?www\.abc\.com)[^'""\s>]+\1[^>]*>(?<text>(?:(?!</?a).) ......

ASP¡°²Ù×÷±ØÐëʹÓÃÒ»¸ö¿É¸üеIJéѯ¡±ÎÊÌâµÄ½â¾ö°ì·¨

³öÏÖÕâ¸öÔ­ÒòÊÇinternetÓû§·ÃÎʵÄȨÏÞ²»¹»£¬ÏµÍ³Ä¬ÈÏȨÏÞÊÇÖ»¶ÁµÄ£¬ËùÒÔÎÒÃÇÒª¸øËü·ÖÅä¿ÉÐÞ¸ÄȨÏÞ£¬·Ï»°²»¶à˵£¬½øÈëÖ÷Ì⣺
1.×ÊÔ´¹ÜÀíÆ÷——>¹¤¾ß——>Îļþ¼ÐÑ¡Ïî——>²é¿´
2.½«"¼òµ¥Îļþ¹²Ïí(ÍƼö)"Ñ¡ÏîÈ¥µô
3.Ñ¡ÔñÄãµÄWEBÎļþ¼Ð£¬¿´ÆäÊôÐÔ£¬ÕâʱÄã»á·¢ÏÖ¶àÁ˸ö"°²È«"Ñ¡Ï£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ