我要做一个过滤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
相关问答:
<%@language="vbscript"%>
<%option explicit%>
<html>
<head> <title>xxx </title> </head>
<script language=vbs>
'注意变量 ......
<%On Error Resume Next
Set conn=Server.CreateObject("ADODB.Connection")
conn.begintrans
conn.Open ("Driver={SQL Server};server=(local);uid=sa;database=student;pwd=")
......
能上传但不能插入数据库信息。ASP文件代码如下:
<%
Response.Buffer = True
Server.ScriptTimeOut=9999999
On Error Resume Next
%>
<!DOCTYPE html PUBLIC ......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xht ......