ASP.NET Ò³Ãæ¼ä´«Öµ
ÔÚÒ³Ãæ¼äÌøת,»áÉæ¼°µ½ÖµºÍÊý¾ÝµÄ´«µÝÎÊÌâ.ÌØÓñ¾ÎĽ«ÎÒÖªµÀµÄһЩ·½·¨¹éÄÉÒ»ÏÂ.
1.´ø²ÎÊý´«µÝ
Óŵã:ʹÓ÷½±ã
ȱµã:°²È«ÐÔµÍ,Êʺϴ«µÝ¼òµ¥ÀàÐ͵ĶÔÏó,±ÈÈçÊý×Ö.×Ö·û.µ«¶Ô¶ÔÏó.Êý×éµÈ²»ºÏÊÊ´«µÝ.
Ó¦ÓÃ:
a.°²È«ÐÔ²»¸ß,Ó¦¶Ô·½Ê½:¶Ô´«µÝµÄÖµ½øÐмÓÃÜ.
b.´«µÝ¼òµ¥ÀàÐ͵ĶÔÏó.Ó¦¶Ô·½Ê½:ÔÚ´«µÝҳͨ¹ý¼òµ¥ÀàÐͶÔÏó¸ø³ö±êʶ,ÔÚ±»´«µÝҳͨ¹ý±êʶ»ñÈ¡¸´ÔӵĶÔÏó.
°¸Àý:
URL¼ÓÃÜÀà
URL±àÂë½âÂëÀà
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Text;
using System.Web;
/**//// <summary>
///Url±àÂë½âÂëÀà
/// </summary>
public class UrlEncrpt
{
static System.Text.Encoding encoding = System.Text.Encoding.UTF8;
public UrlEncrpt()
{
//
//TODO: ÔÚ´Ë´¦Ìí¼Ó¹¹Ô캯ÊýÂß¼
//
}
URLµÄ64λ±àÂë#region URLµÄ64λ±àÂë
/**//// <summary>
/// URLµÄ64λ±àÂë
/// </summary>
/// <param name="sourthUrl">±àÂëÇ°µÄ×Ö·û´®</param>
/// <returns>±àÂëºóµÄ×Ö·û´®</returns>
public static string Encrypt(string sourthUrl)
{
string eurl = HttpUtility.UrlEncode(sourthUrl);
eurl = Convert.ToBase64String(encoding.GetBytes(eurl));
return eurl;
}
#endregion
URLµÄ64λ½âÂë#region URLµÄ64λ½âÂë
/**//
Ïà¹ØÎĵµ£º
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string str = "123456789";
//string str1 = Eval("str").ToString ......
Ëѵģ¬ÍøÂçºÜÇ¿´óµÄ
1. Get(¼´Ê¹ÓÃQueryStringÏÔʽ´«µÝ)
·½Ê½£ºÔÚurlºóÃæ¸ú²ÎÊý¡£
Ìص㣺¼òµ¥¡¢·½±ã¡£
ȱµã£º×Ö·û´®³¤¶È×Ϊ255¸ö×Ö·û£»Êý¾Ýй©ÔÚurlÖС£
ÊÊÓÃÊý¾Ý£º¼òµ¥¡¢ÉÙÁ¿¡¢¹Ø¼üµÄÊý¾Ý¡£
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb; //µ¼ÈëÃüÃû¿Õ¼ä
using System.IO;
using Excel = Microsoft.Office.Interop.Excel;
using System.Reflection;
using System.Data;
usi ......
Ëæ×ÅÍøÂç¼¼ÊõµÄ·¢Õ¹£¬Ä¿Ç°¹úÄÚCMSµÄ¿ª·¢ÉÌÔ½À´Ô½¶à£¬¸÷×Ô¶¼ÓÐÆä¶ÀÌصÄÓÅÊÆ£¬´ó¼ÒÔÚÑ¡ÔñµÄʱºò¾õµÃÑÛ»¨çÔÂÒ£¬²»ÖªµÀÑ¡ÔñÄĸö±È½ÏºÃ£¬ÎÒ¸öÈËÈÏΪ¿ªÔ´µÄCMS»¹ÊÇÊʺÏÎÒÃÇѧϰ¼°Ñо¿Ê¹Óã¬Ï±߾ͼ¸¸ö¹úÄÚµÄasp.net¿ªÔ´CMS½øÐмòµ¥½éÉÜ¡£
1.We7 CMS
We7 CMSÊÇÓÉÎ÷²¿¶¯Á¦¿ª·¢µÄÒ»¿î³ä·Ö·¢¾ò»¥ÁªÍøWeb2.0£¨È粩¿Í¡¢RSSµÈ£©µÄÐÅÏ¢× ......
ËäÈ»Õâ¸ö¶«Î÷ºÜ»ù±¾£¬µ«ÊÇ×Ô¼ºÓÐʱºò»¹ÊǺܻìÂÒ£¬ËùÒÔ½ñÌì¾ÍССµÄÕûÀíÁËÏ£¬Ïȸø´ó¼Ò´øÀ´µÄÊÇÒ³ÃæµÄÌøתÎÊÌâ¡£
ÒÔÏÂÊÇËÄÖÖ ´ò¿ªÐÂÒ³ÃæµÄ·½·¨.
1. Ö±½ÓתÏòÐÂÒ³Ãæ,ÔÒ³Ãæ²»±£Áô
Response.Redirect("Webform6.aspx?id=1");
2. Ö±½ÓתÏòÐÂÒ³Ãæ,ÔÒ³Ãæ²»±£Áô
nServer.Transfer("Webform6.aspx?id=1",true);
3. ´ò¿ª ......