這是後台代碼
代碼
using System;
using System
using System
using System
using System
using System
using System
using System
using System
using System
using System
using System
using System
using System
namespace WebApplication
public partial class _Default : System
protected void Page_Load(object sender
String str =
String b = cleanStr(str);
string c = str
this
}
public string cleanStr(String str) {
StringBuilder bs = new StringBuilder(str);
string str
str
return str
}
public string str
int i
int i
string str_ =
string str
string str
Boolean bl
Boolean bl
for (int i =
if (str[i] ==
i
bl
bl
}
if (bl
str_ += str[i];
}
if (str[i] ==
i
str
str
str
str
str_ += str
bl
bl
}
}
return str_;
}
public string html_str(string str) {
if (str ==
return html_str
}
if (str ==
return html_str
}
if (str ==
return html_str
}
return null;
}
public string html_str
Regex r = new Regex(@
if (r
return str
}
return str;
}
}
}
前台代碼
代碼
<%@ Page Language=
<!DOCTYPE html PUBLIC
<html xmlns=
<head id=
<title>Untitled Page</title>
</head>
<body>
<form id=
<div>
<asp:Label ID=
</div>
</form>
</body>
</html>
運行結果
From:http://tw.wingwit.com/Article/program/net/201311/11752.html