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

asp.net ¿ª·¢³£Óõķ½·¨Ò»

×ܽáasp.net¿ª·¢³£Óõķ½·¨Ò»
using System;
using System.Globalization;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.IO;
namespace MoneyWise
{
/// <summary>
/// utils µÄժҪ˵Ã÷¡£
/// </summary>
public class utils
{
private utils()
{
}
public static string ToBin(int source)
{
int t = source;
string ret = "";
for (int i = 0; i < 32; i++)
{
ret = ((t & 1) == 1 ? "1" : "0") + ret;
t >>= 1;
}
return ret;
}
public static bool CreateDirs(string path)
{
for (int i = 0; i < path.Length; i++)
{
if (path[i] == '\\' || path[i] == '/')
{
if (Directory.CreateDirectory(path.Substring(0, i)).Exists == false)
return false;
}
}
Directory.CreateDirectory(path);
return true;
}
public static void CopyDirectory(string SourceDirectory, string TargetDirectory)
{
if (SourceDirectory[SourceDirectory.Length - 1] == '\\' || SourceDirectory[SourceDirectory.Length - 1] == '/')
SourceDirectory = SourceDirectory.Substring(0, SourceDirectory.Length - 1);
if (TargetDirectory[TargetDirectory.Length - 1] == '\\' || TargetDirectory[TargetDirectory.Length - 1] == '/')
TargetDirectory = TargetDirectory.Substring(0, TargetDirectory.Length - 1);
DirectoryInfo source = new DirectoryInfo(SourceDirectory);
DirectoryInfo target = new DirectoryInfo(TargetDirectory);
try
{
//Determine whether the source directory exists.
if(!source.Exists)
return;
if(!target.Exists)
target.Create();
//Copy files.
FileInfo[] sourceFiles = source.GetFiles();
for(int i = 0; i < sourceFiles.Length; ++i)
File.Copy(sourceFiles[i].FullName, target.FullName + "\\" + sourceFiles[i].Name,true);
//Copy directories.
DirectoryInfo[] sourceDirectories = source.GetDirectories();
for(int j = 0; j < sourceDirectories.Length; ++j)


Ïà¹ØÎĵµ£º

ʹÓÃASP.Net FormsģʽʵÏÖWebServiceÉí·ÝÑéÖ¤

ʹÓÃASP.Net FormsģʽʵÏÖWebServiceÉí·ÝÑéÖ¤
    ÔÚ°²È«ÐÔÒªÇó²»ÊǺܸߵÄASP.Net³ÌÐòÖУ¬»ùÓÚFormsµÄÉí·ÝÑéÖ¤ÊǾ­³£Ê¹ÓõÄÒ»ÖÖ·½Ê½£¬¶øÈç¹ûÐèÒª¶ÔWebService½øÐÐÉí·ÝÑéÖ¤£¬×î³£ÓõĿÉÄÜÊÇ»ùÓÚSoap ±êÍ·µÄ×Ô¶¨ÒåÉí·ÝÑéÖ¤·½Ê½¡£Èç¹û¶ÔÁ½Õß×öһϱȽϵϰ£¬ÏÔÈ»£¬»ùÓÚFormsµÄÑéÖ¤·½Ê½¸ü¼Ó·½±ãÒ×Óã¬ÄÜ·ñ½«F ......

asp.net×Ô¶¨Òå´íÎó´¦ÀíÒ³ÃæµÄ¼¸ÖÖ·½·¨

ASP.NET ÌṩÈýÖÖÓÃÓÚÔÚ³öÏÖ´íÎóʱ²¶»ñºÍÏìÓ¦´íÎóµÄÖ÷Òª·½·¨£ºPage_Error ʼþ¡¢Application_Error ʼþÒÔ¼°Ó¦ÓóÌÐòÅäÖÃÎļþ (Web.config)¡£
Èç¹ûÄú²»µ÷Óà Server.ClearError »òÕß²¶»ñ Page_Error »ò Application_Error ʼþÖеĴíÎó£¬Ôò½«¸ù¾Ý Web.config ÎļþµÄ <customErrors> ²¿·ÖÖеÄÉèÖô¦Àí´íÎó¡£ÔÚ <cus ......

Asp.Net½â¾öSession¶ªÊ§


ÔÚasp.netÀïÃæ£¬ºÜ¶àʱºòʹÓÃsessionÀ´±£´æÒ»Ð©¶ÔÏ󣬱ÈÈç˵¹ºÎï³µµÈµÈ£¬Óкܶàʱºò£¬¾ÍËãÄãÉèÖÃÁËsession³¬Ê±µÄʱ¼ä£¬session»¹ÊÇ»áÎÞÔµÎ޹ʵĶªÊ§£¬ÕâÀïÓÐÒ»ÖֱȽϼòµ¥µÄ·½·¨¿ÉÒÔÉèÖÃsession¶ªÊ§µÄʱ¼ä¡£
ÔÚweb.configÀïÃæÈçÏÂÅäÖÃ
    <sessionState 
     & ......

Asp.netÓëSQLÒ»Æð´ò°ü²¿Êð°²×°


Õû¸öSQLºÍAsp.net(vb.net)Ò»Æð´ò°üµÄÈ«¹ý³ÌдһÏ¡£
Ò».×¼±¸±ØÒªµÄÎļþ
1. SQL½Å±¾Îļþ£¬Éú³ÉÒÔºó°²×°¹ý³ÌÖÐÐèÒªµÄ±íºÍ´æ´¢¹ý³ÌµÈµÈ£»
Éú³ÉÖ®ºó£¬¾ÍÔÝʱ°ÑËüÃüÃûΪdb.sql(×¢Òâ´óСд)
2.LisenceFile.rtfµÄ°²×°Îļþ£¬ÒòΪÎÒµÄϵͳÊǸöÈ˵쬶øÇÒfreeµÄ£¬ËùÒÔ¾ÍûÓÐ×ö¡£Õâ¸öÒÔºóÒ²ÊÇÒªÓõ½µÄ¡£
¶þ.ÔÚ×Ô¼ºÏÖÓеÄÏîÄ¿Àïà ......

ʹÓÃasp.net mvc ´´½¨Ò»¸öblog·¢²¼ÏµÍ³

 
ÎÒÊÔ×ÅȥʹÓÃasp.net mvcÄ£°åÈ¥´´½¨Ò»¸öblog·¢²¼ÏµÍ³¡£µ±È»£¬ÍøÉÏÓкܶàopen sourceµÄÄã¿ÉÒÔʹÓã¬ÌرðÊǺܶàphpдµÄÄ£°å¡£
ÕâÀïÖ»ÊÇÈ¥ÊÔ×ÅѧϰʹÓÃasp.net mvcÄ£°åÈ¥´´½¨Ò»¸öblog·¢²¼ÏµÍ³£¬ÎÒ×Ô¼ºÓᣴ󲿷ֵÄblog¶¼»áÓÐÈçÏÂһЩ²¿·Ö×é³É£º
ÕâÀﻹ»áʹÓÃCommon Library .net Õâ¸öopen sourceµÄproject¡£Äã¿ÉÒÔµ½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ