[Mono-bugs] [Bug 35677][Nor] New - An example of a simple calculator (addition only) that doesn't work on mono asp.net
16 Dec 2002 16:47:31 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by firstname.lastname@example.org.
--- shadow/35677 Mon Dec 16 11:47:31 2002
+++ shadow/35677.tmp.18329 Mon Dec 16 11:47:31 2002
@@ -0,0 +1,109 @@
+Product: Mono/Class Libraries
+OS: Red Hat 7.3
+Summary: An example of a simple calculator (addition only) that doesn't work on mono asp.net
+I'm sorry that this last bug report is a bit more vague than the previous
+ones. I still tought that it could be useful for you to have more than
+your own examples to test on.
+Since this is the last bug for today, I'll take the opportunity to wish
+you all a merry christmas and a happy new year. Remember to spend some
+time away from mono :-)
+Description of Problem:
+This time, I got some simple code (attached below) from our .net teacher.
+Put simply: It doesn't work. Let me explain:
+Steps to reproduce the problem:
+(I'll add some probably very unnecessary details just to be on the safe
+1. xsp still up and running...
+2. I saved this as kllaskin.aspx in a directory somewhere and symlinked it
+3. open localhost:8080/oppi/kllaskin.aspx
+The page loads fine, but pressing the "Laske" button doesn't do anything.
+Two numbers in the first two fields should be added and displayed in the
+make the button send the form. This doesn't happen in Mono. (I got the
+impression that you really don't want to see MS:s code, so I want tell you
+what it looked like :-)
+Changing to type="submit" makes the button work and the form is sent. On
+the resulting page all fields are empty. (Hmm... I guess this is actually
+a different bug. Sorry about not filing it separately.)
+ <script language="C#" runat="server">
+ private void Page_Load(object sender, System.EventArgs e)
+ // Put user code to initialize the page here
+ override protected void OnInit(EventArgs e)
+ this.btnLaske.ServerClick += new
+ this.Load += new System.EventHandler
+ private void btnLaske_ServerClick(object sender,
+ txtTulos.Value = Convert.ToString(Convert.ToInt32
+(txtLuku1.Value) + Convert.ToInt32(txtLuku2.Value));
+ <form id="Form1" method="post" runat="server">
+ <P>Luku 1</P>
+ <INPUT id="txtLuku1" type="text"
+ <INPUT id="txtLuku2" type="text"
+ <INPUT id="btnLaske" type="button"
+value="Laske" name="Button1" runat="server"></P>
+ <INPUT id="txtTulos" type="text"