зеркало из https://github.com/mono/xsp.git
2002-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* README: added directory layout. * src/Makefile: changed the name of the generated exe. * test/*: added directory and a couple of samples. svn path=/trunk/xsp/; revision=4641
This commit is contained in:
Родитель
3094956f01
Коммит
0b6bea8a34
12
README
12
README
|
@ -1,4 +1,16 @@
|
|||
XSP is Ximian's implementation of the ASP.NET page parser
|
||||
and code generator for running ASP Web Applications.
|
||||
|
||||
Layout:
|
||||
|
||||
src/
|
||||
Source files for the parser/generator.
|
||||
|
||||
doc/
|
||||
Documentation about ASP.NET pages
|
||||
|
||||
test/
|
||||
Little sample ASP.NET pages
|
||||
|
||||
Maintainer: gonzalo@ximian.com
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
|
||||
* generator.cs: fixed Style properties setting.
|
||||
|
||||
* Makefile: changed the name of the executable.
|
||||
|
||||
2002-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
|
||||
|
||||
* asp-tokenizer: allow '-' to be in an identifier (Font-Size).
|
||||
|
|
|
@ -2,13 +2,14 @@ CSC=csc.exe
|
|||
CSCFLAGS=/nologo /debug+ /debug:full /optimize /r:System.Web.dll
|
||||
|
||||
SOURCES = asp-parser.cs asp-tokenizer.cs aspelements.cs driver.cs generator.cs
|
||||
TARGET= xsp.exe
|
||||
|
||||
all: aspparser.exe
|
||||
all: $(TARGET)
|
||||
|
||||
aspparser.exe: $(SOURCES)
|
||||
$(CSC) $(CSCFLAGS) /r:System.Web.dll /out:aspparser.exe ${SOURCES}
|
||||
$(TARGET): $(SOURCES)
|
||||
$(CSC) $(CSCFLAGS) /r:System.Web.dll /out:$(TARGET) ${SOURCES}
|
||||
|
||||
clean:
|
||||
rm -f aspparser.exe *~ *.pdb
|
||||
rm -f $(TARGET) *~ *.pdb
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
2002-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
|
||||
|
||||
Created directory and added a couple of samples.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
xsp/test
|
||||
---------
|
||||
This directory contains little sample ASP.NET pages.
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
<%@ Page Language="C#" %>
|
||||
<html>
|
||||
<head>
|
||||
<script runat="server">
|
||||
void Button1_OnClick(object Source, EventArgs e)
|
||||
{
|
||||
HtmlButton button = (HtmlButton) Source;
|
||||
if (button.InnerText == "Enabled 1"){
|
||||
Span1.InnerHtml="You deactivated Button1";
|
||||
button.InnerText = "Disabled 1";
|
||||
}
|
||||
else {
|
||||
Span1.InnerHtml="You activated Button1";
|
||||
button.InnerText = "Enabled 1";
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h3>HtmlButton Sample</h3>
|
||||
<form id="ServerForm" runat="server">
|
||||
<button id=Button1 runat="server" OnServerClick="Button1_OnClick">
|
||||
Button1
|
||||
</button>
|
||||
|
||||
<span id=Span1 runat="server" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<%@ Page Language="C#" %>
|
||||
<html>
|
||||
<head>
|
||||
<script runat="server">
|
||||
private void Page_Load (object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack){
|
||||
ArrayList optionsList = new ArrayList ();
|
||||
optionsList.Add ("One");
|
||||
optionsList.Add ("Two");
|
||||
optionsList.Add ("Three");
|
||||
optionsList.Add ("Four");
|
||||
optionsList.Add ("Five");
|
||||
list.DataSource = optionsList;
|
||||
list.DataBind();
|
||||
}
|
||||
else
|
||||
msg.Text = "Selected option: " + list.SelectedItem.Text;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h3>Data binding using an array list</h3>
|
||||
<form id="form" runat="server">
|
||||
<asp:DropDownList id="list" runat="server" autopostback="true" />
|
||||
<asp:Label id="msg" runat="server" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
Загрузка…
Ссылка в новой задаче