ASP.NET C# URL¼ÓÃܽâÃÜ
ÐèÒªÒýÓõÄÀàÃû¿Õ¼ä
using System.Security.Cryptography;
using System.IO;
using System.text;
/// <summary>
/// ¼ÓÃÜ
/// </summary>
/// <param name="str"></param>
/// <param name="key"></param>
/// <returns></returns>
public static string Encode(string str, string key)
{
DESCryptoServiceProvider provider = new DESCryptoServiceProvider();
provider.Key = Encoding.ASCII.GetBytes(key.Substring(0, 8));
provider.IV = Encoding.ASCII.GetBytes(key.Substring(0, 8));
byte[] bytes = Encoding.GetEncoding("GB2312").GetBytes(str);
MemoryStream stream = new MemoryStream();
CryptoStream stream2 = new CryptoStream(stream, provider.CreateEncryptor(), CryptoStreamMode.Write);
stream2.Write(bytes, 0, bytes.Length);
stream2.FlushFinalBlock();
&
Ïà¹ØÎĵµ£º
//˼·:½«ÆäIP´æÈëÊý¾Ý¿âµÄʱºò,ÒÔÊý×ÖµÄÐÎʽ´æÈë.¼´¿É±È½Ï´óС.
//±ÈÈç:192.168.1.1 ·²ÊǺóÃæÎ»Êý²»Âú3λµÄ¶¼ÒÔ0Ìî³ä.....ÄÇô´æÈëÐÎʽΪ:192168001001
//ÒòΪ:1Ö»ÓÐһλ...ËùÒÔ¼Ó00ÕâÑùÊý¾Ý¿âÖÐÈ«²¿µÄ¶¼Îª12λµÄÊý×Ö,¼´¿É±È½Ï.
public string getip(string ip)
{
......
asp.net session ½éÉÜÒ»ÈýÖÖSession´æ´¢·½Ê½
www.firnow.com¡¡Ê±¼ä£º2009-03-04¡¡×÷Õß:ÄäÃû ±à¼:sky µã»÷£º¡¡1478 [ÆÀÂÛ]
¶ÔÓÚasp.netµÄ³ÌÐòÀ´Ëµ£¬sessionÊÇÒ»¸ö±ØÐèÒªÁ˽âµÄ¶ÔÏó¡£
ÏÂÃæ¾Í¶Ôsession×öÒ»¸ö¾ßÌå½éÉÜ¡£
¼òµ¥À´Ëµ£¬Session¾ÍÊÇ·þÎñÆ÷¸ø¿Í»§¶ËµÄÒ»¸ö±àºÅ£¬µ±Ò»Ì¨web·þÎñÆ÷ÔËÐÐʱ£¬¿ÉÄÜÊÇÓжà¸öÓû§¶¼ÔÚä¯ÀÀ ......
ASP.NETÓ¦ÓóÌÐòÉè¼ÆµÄ10´ó¼¼ÇÉ [ ASP.NETÓ¦ÓóÌÐòÉè¼ÆµÄ10´ó¼¼ÇÉ | ÔðÈαà¼: 51»¶ÀÖ°É - ¹ØÌÎ | 2007-09-25 10:38:16 ]
µ÷Õû×ÖÌå´óС: ´ó | ÖÐ | С
ÉùÃ÷:ÈçÓÐÉæ¼°µ½·¨ÂÉÏà¹ØÎÊÌâ,Ç뼰ʱÓë¹ØÌÎÁªÏµ! QQ:364586868 ÁªÏµQQ
--------------------------------------------------------------------------------
Ô ......
ASP.NET·ÖÒ³·½·¨µÄÁ˽â³Ì¶È
¡¾³öÏÖÆµÂÊ¡¿
¡ï¡ï¡ï¡ï¡î
¡¾½â´ð¡¿
ASP.NET·ÖÒ³µÄ³£Ó÷½·¨ÓÐÒÔϼ¸ÖÖ¡£
q ÆôÓò¿·ÖÊý¾Ý¿Ø¼þµÄÄÚÖ÷ÖÒ³¹¦ÄÜ£¬ÈçÉèÖÃGridView¿Ø¼þµÄ“AllowPaging”ÊôÐÔΪ“true”£¬ÀàËÆµÄÊý¾Ý¿Ø¼þ»¹ÓÐDetailsViewµÈ¡£
q ͨ¹ýSQL²éѯÓï¾ä£¬ÒÔÌáȡָ¶¨²¿·ÖµÄÊý¾ÝµÄ·½Ê½Íê³É·ÖÒ³µÄ¹¦ÄÜ¡£Ò ......
ÔÚASP.NetÒ»°ãµÄ³ÌÐò±àдÖУ¬ËùʹÓõÄÊý¾ÝÀïÃæ£¬ÈÕÆÚʱ¼äÊÇÒ»ÖÖÌØÊâµÄÊý¾ÝÀàÐÍ£¬Ò²ÊǾ³£±»Ê¹Óõġ£---µçÄԽ̳̼¼ÊõÑ§Ï°Íø
ÔÚVisual Basic.NETÖеÄÈÕÆÚʱ¼äÊý¾ÝÓÃÊýÖµµÄÊý¾ÝÀàÐͱ£´æ£¬¶øÇÒÓз¶Î§¡£
ÈÕÆÚµÄ·¶Î§Êǹ«Ôª1Äê1ÔÂ1ÈÕ¡«¹«Ôª9999Äê1 2ÔÂ3 1ÈÕ£¬Ê±¼äµÄ·¶Î§ÊÇ00£º00£º00¡«23£º59£º59¡£ÉùÃ÷¸ñÊ½È ......