Commit 34abc304 authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading
+16 −0
Changes for Exercise 1-1/Default.aspx: 16 added lines, 0 removed lines.
Original line number Diff line number Diff line
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="Button1" runat="server" Text="Button" />
        <asp:Label ID="Label1" runat="server" BorderStyle="Dotted" BorderWidth="2px" Font-Bold="True" Font-Names="Arial" Font-Size="Large" ForeColor="Green" ></asp:Label></div>
    </form>
</body>
</html>
+8 −0
Changes for Exercise 1-1/Default.aspx.vb: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line

Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Label1.Text = "Go Eagles!"
    End Sub
End Class
+65 −0
Changes for Exercise 1-1/web.config: 65 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>
	<appSettings/>
	<connectionStrings/>
	<system.web>
		<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions 
            where data loss can occur. 
            Set explicit="true" to force declaration of all variables.
        -->
		<compilation debug="true" strict="false" explicit="true"/>
		<pages>
			<namespaces>
				<clear/>
				<add namespace="System"/>
				<add namespace="System.Collections"/>
				<add namespace="System.Collections.Specialized"/>
				<add namespace="System.Configuration"/>
				<add namespace="System.Text"/>
				<add namespace="System.Text.RegularExpressions"/>
				<add namespace="System.Web"/>
				<add namespace="System.Web.Caching"/>
				<add namespace="System.Web.SessionState"/>
				<add namespace="System.Web.Security"/>
				<add namespace="System.Web.Profile"/>
				<add namespace="System.Web.UI"/>
				<add namespace="System.Web.UI.WebControls"/>
				<add namespace="System.Web.UI.WebControls.WebParts"/>
				<add namespace="System.Web.UI.HtmlControls"/>
			</namespaces>
		</pages>
		<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
		<authentication mode="Windows"/>
		<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
	</system.web>
</configuration>
+34 −0
Changes for Exercise 2-1/Default.aspx: 34 added lines, 0 removed lines.
Original line number Diff line number Diff line
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Exercise 2-1</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
            Page Loaded at:
            <asp:Label ID="lblPageLoad" runat="server" Text="Label" Width="200px"></asp:Label>
            <asp:Button ID="btnPostback" runat="server" Text="Postback" />
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    Partial-Page update at: <asp:Label ID="lblPartialUpdate" runat="server" Text="Label"
                        Width="200px"></asp:Label>
                    <asp:Button ID="btnPartialUpdate" runat="server" OnClick="btnPartialUpdate_Click"
                        Text="Partial Update" />
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            Another partial-page update at: <asp:Label ID="lblOtherPartialUpdate" runat="server"
                                Text="Label" Width="200px"></asp:Label>
                            <asp:Button ID="btnOtherPartialUpdate" runat="server" OnClick="btnOtherPartialUpdate_Click"
                                Text="Another Partial Update" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </form>
</body>
</html>
+16 −0
Changes for Exercise 2-1/Default.aspx.vb: 16 added lines, 0 removed lines.
Original line number Diff line number Diff line

Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        lblPageLoad.Text = DateTime.Now
    End Sub

    Protected Sub btnPartialUpdate_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        lblPartialUpdate.Text = DateTime.Now
    End Sub

    Protected Sub btnOtherPartialUpdate_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        lblOtherPartialUpdate.Text = DateTime.Now
    End Sub
End Class
 No newline at end of file
Loading