default.aspx.cs
来自「水晶报表详细资料水晶报表详细资料水晶报表详细资料」· CS 代码 · 共 27 行
CS
27 行
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
byte[] myBytes1 = new byte[] { 1, 2, 3, 4 };
string str = HttpServerUtility.UrlTokenEncode(myBytes1);
Response.Write("使用UrlTokenEncode方法编码字节数组:</br>" + str + "</br>");
byte[] myBytes2;
myBytes2 = HttpServerUtility.UrlTokenDecode(str);
Response.Write("使用UrlTokenDecode方法解码Url字符串标记:</br>");
foreach (byte myByte in myBytes2)
{
Response.Write(myByte.ToString() + "</br>");
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?