Set page debug flag to true (C#) : Page Trace « Page « ASP.Net






Set page debug flag to true (C#)

<%@ Page Language="C#" Debug="true" %>
<script runat="server">

    void Page_Load()
    {
        int zero = 0;
        Label1.Text = (1 / zero).ToString();
    }
    
</script>
<html>
<head id="Head1" runat="server">
    <title>Show Error</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    <asp:Label
        id="Label1"
        Runat="server" />
    
    </div>
    </form>
</body>
</html>

           
       








Related examples in the same category