mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-08-28 05:04:16 -05:00
Added name decode test page.
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
<Content Include="BattleVideo.aspx" />
|
||||
<Content Include="css\main.css" />
|
||||
<Content Include="test\BoxUp.aspx" />
|
||||
<Content Include="test\NameDecode.aspx" />
|
||||
<Content Include="test\PadMath.aspx" />
|
||||
<Content Include="test\Decode.aspx" />
|
||||
<Content Include="Default.aspx" />
|
||||
@@ -101,6 +102,13 @@
|
||||
<Compile Include="test\BoxUp.aspx.designer.cs">
|
||||
<DependentUpon>BoxUp.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="test\NameDecode.aspx.cs">
|
||||
<DependentUpon>NameDecode.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="test\NameDecode.aspx.designer.cs">
|
||||
<DependentUpon>NameDecode.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="test\PadMath.aspx.cs">
|
||||
<DependentUpon>PadMath.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
16
gts/test/NameDecode.aspx
Normal file
16
gts/test/NameDecode.aspx
Normal file
@@ -0,0 +1,16 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="NameDecode.aspx.cs" Inherits="PkmnFoundations.GTS.test.NameDecode" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="cpMain" runat="server">
|
||||
<form id="theForm" runat="server">
|
||||
<div>Enter name in hex to decode:
|
||||
<asp:TextBox ID="txtName" Width="600px" runat="server" />
|
||||
<asp:Button ID="btnSubmit" Text="Decode" OnClick="btnSubmit_Click" Width="60px" runat="server" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Literal ID="litName" runat="server" />
|
||||
</div>
|
||||
</form>
|
||||
</asp:Content>
|
||||
24
gts/test/NameDecode.aspx.cs
Normal file
24
gts/test/NameDecode.aspx.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using PkmnFoundations.Support;
|
||||
|
||||
namespace PkmnFoundations.GTS.test
|
||||
{
|
||||
public partial class NameDecode : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void btnSubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
byte[] data = Common.FromHexString(txtName.Text.Replace(" ", ""));
|
||||
litName.Text = Common.HtmlEncode(EncodedString4.DecodeString(data));
|
||||
}
|
||||
}
|
||||
}
|
||||
51
gts/test/NameDecode.aspx.designer.cs
generated
Normal file
51
gts/test/NameDecode.aspx.designer.cs
generated
Normal file
@@ -0,0 +1,51 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PkmnFoundations.GTS.test {
|
||||
|
||||
|
||||
public partial class NameDecode {
|
||||
|
||||
/// <summary>
|
||||
/// theForm control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm theForm;
|
||||
|
||||
/// <summary>
|
||||
/// txtName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtName;
|
||||
|
||||
/// <summary>
|
||||
/// btnSubmit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSubmit;
|
||||
|
||||
/// <summary>
|
||||
/// litName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal litName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user