Remove the webpage picture label

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

Some requirements, remove the webpage picture label.

As an example, in the webpage, pull a few controls, of which one is the picture control.

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

<!DOCTYPE html>

<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">
        <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" />

Browse and view the source code:

Now, Insus.NET to do, in the webpage, webpage to automatically remove all <img /> tag...

Go to the.Aspx.cs to write a piece of code:

In this way, can be in runtime, all image tag removal, and can do other related actions. Operation have a look

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Angela at November 19, 2013 - 12:17 AM