您现在的位置是:首页 >

html用什么软件编写好一点 html自定义标签

火烧 2021-05-09 22:50:53 1057
html自定义标签   这是后台代码  代码  u i g Sy tem   u i g Sy tem Collectio   u i g Sy tem Co figuratio   u i g Sy

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;

html用什么软件编写好一点 html自定义标签

  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  
永远跟党走
  • 如果你觉得本站很棒,可以通过扫码支付打赏哦!

    • 微信收款码
    • 支付宝收款码