Dim head As HtmlHead = CType(Page.Header, HtmlHead)
  Dim author As New HtmlMeta()
        author.Name = "author"
        author.Content = "11111"
        head.Controls.Add(author)
显示为<meta name="author" content="11111" />
如何把mata后面的"/"去掉啊,
要显示<meta name="author" content="11111">

解决方案 »

  1.   

    呵呵。你用
    <asp:Literal id="lStyle" runat="server"></asp:Literal>然后在后台
    this.lStyle.Text=@"<meta name="author" content="11111" >";就行了呗想加什么就加什么。
      

  2.   

    应该是
            this.lStyle.Text="<meta name=\"author\" content=\"11111\">";
      

  3.   

    HtmlMeta meta = new HtmlMeta();
    meta.Content = "";
    this.head1.Attributes.Add("", meta);
      

  4.   

    HtmlMeta meta = new HtmlMeta();
    meta.Content = "";
    this.head1.Attributes.Add("", meta);
    这样
      

  5.   

    呵呵。你用
    <asp:Literal id="lStyle" runat="server"></asp:Literal>然后在后台
    this.lStyle.Text=@"<meta name="author" content="11111" >";就行了呗想加什么就加什么。
      

  6.   

    <meta http-equiv="refresh" content=<%=s%>;url=<%=url%>/>
    后台pageload()里判断,给s,url变量赋值