Debian Codegraph @

mcs/class/System.Web/Test/standalone/adrotator/adrotator-filenull.aspx

raw
1 <%@ Page Language="C#" Debug="true" %>
2 <%@ Import namespace="System.Collections" %>
3 <%@ Import namespace="System.Text" %>
4 <html>
5 <script runat="server">
6 void Page_Load ()
7 {
8 ar1.AdvertisementFile = null;
9 }
10 </script>
11 <body>
12 Setting AdvertisementFile to null in Page_Load. Should display a broken img.
13 It used to crash.
14 <br>
15 <form runat="server">
16 <asp:adrotator runat="server" id="ar1" />
17 </form>
18 </body>
19 </html>
20