我要做一个过滤ASP语句的东西,请教大家了。
我想做一个程序,他通过截获网络数据报文,过滤报文中的asp.net语句,然后改写报文的东西。我对asp.net不懂,我想问下各位高人,asp.net是以什么样的标志起头,什么样的标志结尾呢。多谢各位了。
麻烦大哥能给一个例子不?
比如说这个例子:
<%@ Page Language="C#" %>
<html>
<script runat="server">Void Button1_Click(object sender, System.EventArgs e) { Label1.Text = ("Welcome, " + TextBox1.Text);} </script>
<head runat="server">
<title>Basic ASP.NET Web Page </title>
</head>
<body>
<form id="form1" runat="server">
<h1>Welcome to ASP.NET </h1>
<p>Type your name and click the button. </p>
<p>
<asp:TextBox ID="TextBox1" runat="server"> </asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Click" OnClick="Button1_Click" />
</p>
<p>
<asp:Label ID="Label1" runat="server"> </asp:Label>
</p>
</form>
</body>
</html>
这个a
相关问答:
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
由于对页面使用了伪静态
并且对ID进行了加密。
主要代码如下:
httpd.ini
RewriteRule /List-([0-9,a-z]*).html /List.asp\?ComId=$1 [N,I]
程序代码
A为加密,B为解密函数
<a href=&q ......
function mistake(preString)
Dim texts
Dim seed
Dim i,length
prestring = trim(preString)
......
在VB按MVC的构架写组件供ASP调用
BLL层
VB code:
Private Dal As New moonPotato_DAL
Public Sub inSertUser(Model As moonPotato_Model)
Dal.InSertCls (Model)
End Sub
......
这个程序是读大一时学C语言我自己想出的,老师直夸我聪明,现在用ASP改写了,大家知道运行结果吗
<table width="486" border="1" cellpadding="0" cellspacing="1"& ......