html用什么软件编写好一点 html自定义标签
html自定义标签
这是后台代码
代码
using System;
using System Collections;
using System Configuration;
using System Data;
using System Linq;
using System Web;
using System Web Security;
using System Web UI;
using System Web UI HtmlControls;
using System Web UI WebControls;
using System Web UI WebControls WebParts;
using System Xml Linq;
using System Text;

using System Text RegularExpressions;
namespace WebApplication {
public partial class _Default : System Web UI Page {
protected void Page_Load(object sender EventArgs e) {
String str = <a href= {&a > >{&a }<a> {&bbbbccccc } ;
String b = cleanStr(str);
string c = str (str);
this Label Text = c;
}
public string cleanStr(String str) {
StringBuilder bs = new StringBuilder(str);
string str = str Substring( str Length );
str = str Trim();
return str ;
}
public string str (string str) {
int i = ;
int i = ;
string str_ = ;
string str = ;
string str = ;
Boolean bl = false;
Boolean bl = true;
for (int i = ; i < str Length; i++) {
if (str[i] == { && str[i + ] == & ) {
i = i;
bl = true;
bl = false;
}
if (bl ) {
str_ += str[i];
}
if (str[i] == } && bl ) {
i = i;
str = str Substring(i (i i ) + );// + ;
str = str Substring( str Length );
str = str Trim();
str = _str(str );
str_ += str ;
bl = false;
bl = true;
}
}
return str_;
}
public string _str(string str) {
if (str == a ) {
return _str ( {&b} );
}
if (str == b ) {
return _str ( {&c} );
}
if (str == c ) {
return _str ( 进入qq );
}
return null;
}
public string _str (string str) {
Regex r = new Regex(@ {+&+[A Za z ]+} );
if (r IsMatch(str)) {
return str (str);
}
return str;
}
}
}
前台代码
代码
<%@ Page Language= C# AutoEventWireup= true CodeBehind= Default aspx cs Inherits= WebApplication _Default %>
<!DOCTYPE PUBLIC //W C//DTD XHTML Transitional//EN transitional dtd >
< xmlns= >
<head id= Head runat= server >
<title>Untitled Page</title>
</head>
<body>
<form id= form runat= server >
<div>
<asp:Label ID= Label runat= server ></asp:Label>
</div>
</form>
</body>
</>
运行结果
lishixinzhi/Article/program/net/201311/11752相关文章
- 做微信推送用什么软件 微信公众号推送的图文消息里面的正文可以插入html标签吗?比如iframe a
- html网页设计实例 怎么在网页中插入图片html图片程式码
- html单元格的标记 哪一个标记用于使HTML文档中表格里的单元格在同行
- html字体加大加粗的代码 HTML字型要怎么加粗?
- 如何设置网页标题 在用HTML制作网页时,如果要在网页中嵌入音讯档案,应该用什么标记?
- html模板源码 ASP模板类代码
- html5留言板源代码 html网页留言板程式码怎么用
- html是php还是asp asp html标签转换html编码
- html是一种页面什么型语言 WEB页面工具语言XML(一)产生背景
- html是一种页面什么型语言 页面描述语言详细资料大全
爱学记

微信收款码
支付宝收款码