某一些要求,移除网页的图片标签。
做个例子吧,在网页中,拉几个控件,其中一个是图片控件。

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RemoveImageTag.aspx.cs" Inherits="RemoveImageTag" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="Label1" runat="server" Text="this is a label"></asp:Label><br />
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/p.gif" />
    </div>
    </form>
</body>
</html>
View Code

相关文章:

  • 2022-01-10
  • 2021-11-18
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
猜你喜欢
  • 2021-12-13
  • 2022-12-23
  • 2021-06-16
  • 2021-07-07
  • 2022-12-23
  • 2022-01-11
  • 2021-11-16
相关资源
相似解决方案