<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="WapReport.Index" %>
后台事件
try { string url = Request.QueryString["url"].ToString().Trim(); this.hid_url.Value = Base64Helper.Decode(url); //aHR0cDovLzE5Mi4xNjguMTAxLjIwMi93aXRib29rL2JpbmdrdW4vaW5kZXguYXNw // this.hid_url.Value = "http://192.168.101.202/witbook/bingkun/index.asp"; this.hid_username.Value = "admin"; } catch (Exception) { this.hid_url.Value = "About.aspx"; }
生成工具:
后台事件
protected void Button1_Click(object sender, EventArgs e) { string url = TextBox1.Text.Trim(); string decodeUrl = Base64Helper.Encode(url); TextBox2.Text = decodeUrl; } protected void Button2_Click(object sender, EventArgs e) { if (TextBox2.Text.Trim()!="") { string decodeUrl = TextBox2.Text.Trim(); Response.Redirect("Index.aspx?url=" + decodeUrl); } }