asp¼°asp.netµÄurlencodeÎÊÌâ
ÎÒÏëÔÚaspÖмÓÒ»¸öÁ´½Ó£¬Ö¸Ïòasp.netÍøÒ³£¬µ«asp.netµÄÍøÖ·ÊǾ¹ýHttpUtility.UrlEncode±äÐκÍHttpUtility.UrlDecode±ä»ØµÄ£¬¶øaspµÄserver.urlencodeÈ´²úÉú²»Á˺ÍHttpUtility.UrlEncodeÒ»ÑùµÄ±àÂ룬ÇëÎÊÓÐûÓнâ¾ö°ì·¨
²¹³ä£ºÔÀ´asp.netµÄÊÇ"web.aspx?str="+HttpUtility.UrlEncode(str)
ºÍHttpUtility.UrlDecode(Request.QueryString["str"].ToString().Trim())
¶øaspµÄÊÇ"web.aspx?web.aspx?str="+server.urlEncode( server.URLpathencode(str))
asp.netÌá½»¶ËΪ£º"web.aspx?str="+ HttpUtility.UrlEncode( str£¬System.Text.Encoding.GetEncoding("gb2312"))
asp.net½ÓÊÕ¶ËΪ£ºstr= HttpUtility.UrlDecode(Request.QueryString["str"].ToString().Trim(),System.Text.Encoding.GetEncoding("gb2312"))
ÆäÖÐstrΪÐèÒª´«µÝµÄ±äÁ¿
Ïà¹ØÎĵµ£º
asp.net(C#)×Ö·û´®¼ÓÃÜ
2010-03-12 09:59
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;//CryptographyÃÜÂëÊõ
namespace DAL
{
......
ASP.NET ³É¹¦µÄÆäÖÐÒ»¸öÔÒòÔÚÓÚËü½µµÍÁË Web ¿ª·¢ÈËÔ±µÄÃż÷¡£¼´±ãÄú²»ÊǼÆËã»ú¿ÆÑ§²©Ê¿Ò²¿ÉÒÔ±àд ASP.NET ´úÂë¡£ÎÒÔÚ¹¤×÷ÖÐÓöµ½µÄÐí¶à ASP.NET ¿ª·¢ÈËÔ±¶¼ÊÇ×Ôѧ³É²ÄµÄ£¬ËûÃÇÔÚ±àд C# »ò Visual Basic® ֮ǰ¶¼ÔÚ±àд Microsoft® Excel® µç×Ó±í¸ñ¡£ÏÖÔÚ£¬ËûÃÇÔÚ±àд Web Ó¦ÓóÌÐò£¬×ܵÄÀ´Ëµ£¬ËûÃÇËù×öµÄ¹¤ ......
ÔÚûÓÐ<asp:UpdatePanel ID="up" runat="server"> <ContentTemplate>ÎÞˢл·¾³ÖУº
Response.Write("<script>alert('¹§Ï²Äú£¬Òѳɹ¦¼ÓÈëµ½ÄúµÄÈ˲ſ⣡');</script>");
ÔÚÓÐ<asp:UpdatePanel ID="up" runat="server"> <ContentTemplate>ÎÞˢл·¾³Ö ......
¸Õ¸Õ ¿´µ½Õâôһ¸öÎÊÌ⣬ÕâÀïÒ²×ö¸ö±ê¼Ç£ºhttp://topic.csdn.net/u/20080411/14/7b0f9da5-0413-4149-91e9-72c3df3018a3.html?seed=327251592
µÚÒ»ÖÖ·½Ê½£º
//ÔÚVisual Studio 2008Öе÷ÊÔͨ¹ý
testPop_Page.aspx:Ö÷Ò³ÃæASPX´úÂë
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  ......
1.ASP¶ÔExcelµÄ»ù±¾²Ù×÷
(1) ½¨Á¢Excel¶ÔÏó
´´½¨Excel¶ÔÏó¿ÉÒÔͨ¹ýÏÂÃæµÄ´úÂëÀ´ÊµÏÖ:
<%
set objExcelApp = CreateObject("Excel.Application")
objExcelApp.DisplayAlerts = false ’²»ÏÔʾ¾¯¸æ
objExcelApp.Application = false ’²»ÏÔʾ½çÃæ
%>
(2) н¨Exce ......