-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package => namespace; first asp.net examples
git-svn-id: https://svn.codehaus.org/boo/trunk@100 2c1201b4-01cd-e047-a400-b836ae1fbc61
- Loading branch information
Showing
139 changed files
with
426 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<%@Page Inherits="Boo.Examples.Web.HelloAspNet" %> | ||
<html> | ||
<body> | ||
<form runat="server"> | ||
<center> | ||
<asp:Label id="_message" runat="server" /> | ||
</center> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#region license | ||
// boo - an extensible programming language for the CLI | ||
// Copyright (C) 2004 Rodrigo B. de Oliveira | ||
// | ||
// This program is free software; you can redistribute it and/or | ||
// modify it under the terms of the GNU General Public License | ||
// as published by the Free Software Foundation; either version 2 | ||
// of the License, or (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program; if not, write to the Free Software | ||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
// | ||
// As a special exception, if you link this library with other files to | ||
// produce an executable, this library does not by itself cause the | ||
// resulting executable to be covered by the GNU General Public License. | ||
// This exception does not however invalidate any other reasons why the | ||
// executable file might be covered by the GNU General Public License. | ||
// | ||
// Contact Information | ||
// | ||
// mailto:[email protected] | ||
#endregion | ||
|
||
namespace Boo.Examples.Web | ||
|
||
using System | ||
using System.Web | ||
using System.Web.UI | ||
using System.Web.UI.WebControls | ||
|
||
class HelloAspNet(Page): | ||
|
||
_message as Label | ||
|
||
def Page_Load(sender, args as EventArgs): | ||
_message.Text = "Hello, asp.net!" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<%@Page Inherits="Boo.Examples.Web.YourName" %> | ||
<html> | ||
<body> | ||
<form runat="server"> | ||
<center> | ||
What's your name? <asp:TextBox id="_name" runat="server" /> | ||
<asp:Button runat="server" Text="Say it!" /><br /> | ||
<br /> | ||
<asp:Label id="_message" runat="server" /> <br /> | ||
|
||
</center> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#region license | ||
// boo - an extensible programming language for the CLI | ||
// Copyright (C) 2004 Rodrigo B. de Oliveira | ||
// | ||
// This program is free software; you can redistribute it and/or | ||
// modify it under the terms of the GNU General Public License | ||
// as published by the Free Software Foundation; either version 2 | ||
// of the License, or (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program; if not, write to the Free Software | ||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
// | ||
// As a special exception, if you link this library with other files to | ||
// produce an executable, this library does not by itself cause the | ||
// resulting executable to be covered by the GNU General Public License. | ||
// This exception does not however invalidate any other reasons why the | ||
// executable file might be covered by the GNU General Public License. | ||
// | ||
// Contact Information | ||
// | ||
// mailto:[email protected] | ||
#endregion | ||
|
||
namespace Boo.Examples.Web | ||
|
||
using System | ||
using System.Web.UI | ||
using System.Web.UI.WebControls | ||
|
||
class YourName(Page): | ||
|
||
_name as TextBox | ||
_message as Label | ||
|
||
def Page_Load(sender, args as EventArgs): | ||
_message.Text = "Hello, ${_name.Text}!" if Page.IsPostBack | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0"?> | ||
<project name="Boo asp.net examples" default="build"> | ||
|
||
<property name="booc" value="../../build/booc.exe" /> | ||
|
||
<target name="rebuild" depends="clean, build" /> | ||
|
||
<target name="clean"> | ||
<delete dir="output" if="${directory::exists('output')}" /> | ||
</target> | ||
|
||
<target name="build"> | ||
<mkdir dir="output" /> | ||
<mkdir dir="output/bin" /> | ||
|
||
<exec program="${booc}" useruntimeengine="true"> | ||
<arg value="/r:System.Web" /> | ||
<arg value="/out:output/bin/Boo.Examples.Web.dll" /> | ||
<arg value="/target:library" /> | ||
<arg file="HelloAspNet.aspx.boo" /> | ||
<arg file="YourName.aspx.boo" /> | ||
</exec> | ||
|
||
<copy todir="output"> | ||
<fileset basedir="."> | ||
<includes name="*.aspx" /> | ||
</fileset> | ||
</copy> | ||
|
||
<copy todir="output/bin"> | ||
<fileset basedir="../../build"> | ||
<includes name="Boo.dll" /> | ||
</fileset> | ||
</copy> | ||
|
||
</target> | ||
|
||
<target name="run" depends="build"> | ||
<exec program="cassiniwebserver.exe"> | ||
<arg file="output" /> | ||
<arg value="80" /> | ||
</exec> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.