最近想看下别人写的.net源代码,但是别人把代码全封装到Bin文件夹中,然后aspx页面就一行Page指令:
<%@ page language="C#" autoeventwireup="true" inherits="ArticleInfo, ShopWe" validaterequest="true" %>
我想请问大家这个是怎么实现的,页面的html给封装在哪了??
反编译Bin文件下的类库,但是得到的代码也和平常我们写的不同,貌似不何常理!!比如:
- C# code
using ShopWe.BLL;using ShopWe.Common;using ShopWe.Model;using System;using System.Web;using System.Web.Profile;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using xb9d8bb5e6df032aa;public class Admin_UserManagement_EditAsk : Page, IRequiresSessionState{ protected HtmlForm form1; protected Literal LiteralBody; protected Button Submit; protected TextBox TextBoxRestore; protected void Page_Load(object sender, EventArgs e) { ShopWe.BLL.Goods_Ask ask; ShopWe.Model.Goods_Ask model; this.Page.Title = TitleModel.GetPageTitle(); if (0xff != 0) { this.Page.ClientScript.RegisterClientScriptBlock(base.GetType(), "ShowLoadMask", LoadMask.GetLoadMaskStr()); if (base.IsPostBack || (base.Request.QueryString["id"] == null)) { return; } goto Label_0073; } Label_0017: if (2 != 0) { this.TextBoxRestore.Text = model.AskRestore; return; } Label_0073: ask = new ShopWe.BLL.Goods_Ask(); model = ask.GetModel(int.Parse(base.Request.QueryString["id"])); this.LiteralBody.Text = model.AskBody; goto Label_0017; } protected void Submit_Click(object sender, EventArgs e) { ShopWe.BLL.Goods_Ask ask = new ShopWe.BLL.Goods_Ask(); ShopWe.Model.Goods_Ask model = ask.GetModel(int.Parse(base.Request.QueryString["id"])); if (-1 != 0) { model.AskRestore = this.TextBoxRestore.Text; ask.Update(model); Common.AddManagerNote("回复用户咨询" + model.AskTitle); } this.Page.ClientScript.RegisterS tartupScript(base.GetType(), "", string.Intern(xb9d8bb5e6 df032aa.x1110bdd110cdcea4._xaacba899487bce8c("mohmacpmnagnjbnnnaeo bblocbcpjnipjp ppbahahpnabafbaambblccnkjcg nadiohdmoodkofeommejndfcmjn faamggfoheoofdknmjgpjhdikdcoggloo pnofdmcagjamoaabhflah mlphdmnhkmngbnokinlj pnhkgoljnopjepaklphgca", 0x79c4c7b0))); } protected HttpApplication ApplicationInstance { get { return this.Context.ApplicationInstance; } } protected DefaultProfile Profile { get { return (DefaultProfile) this.Context.Profile; } }}
都看不懂,更别说学习别人的思路了……。。
------解决方案--------------------------------------------------------
public class Admin_UserManagement_EditAsk : Page, IRequiresSessionState
从这看
有加密 的话 你 看了也白看
------解决方案--------------------------------------------------------
首先反编译功能没有那么完美,程序中的那个goto_label,在实际中不会有
我想请问大家这个是怎么实现的,页面的html给封装在哪了??
可以放在数据库