[Mono-bugs] [Bug 74577][Wis] New - server code inside html tags generate an error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 12 Apr 2005 08:10:26 -0400 (EDT)


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 hvalle@vallecorp.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74577

--- shadow/74577	2005-04-12 08:10:26.000000000 -0400
+++ shadow/74577.tmp.18572	2005-04-12 08:10:26.000000000 -0400
@@ -0,0 +1,67 @@
+Bug#: 74577
+Product: Mono: Tools
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: tools
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: hvalle@vallecorp.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: server code inside html tags generate an error
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+Hi, ASP.NET is now functioning, I changed the code to use C# but
+still having some issues.
+
+I know we are runing a mono version of the ASP.NET framework
+so I have tested this code in another 
+ .NET environment and works fine, actually I don't see anything
+wrong with it, but when runing it on my site, it generates a server
+error.
+
+It is related to placing server side code within the html tags,
+specificaly in the opening <option> tag. The fact that I put <%
+inside the option tag generates an error. Would this have something
+to do with the version of .NET running?
+Please find bellow my example:
+
+Category:  <select name="Category" size=1>
+<%
+   String [] values = { "psychology", "business", "popular_comp" };
+
+for (int i=0; i<values.Length; i++) {
+%>
+<option <% if (Request.QueryString["Category"] == values[i]) {
+Response.Write("selected"); } %>>
+ <%=values[i]%>
+</option>
+<% } %>
+</select>
+
+Actual Results:
+The file I am using to run this code is:
+http://www.vallecorp.com/aspx/vallecorp/education/aspdotnet/intro3.aspx
+
+
+Expected Results:
+No error
+
+How often does this happen? 
+Everytime
+
+Additional Information:
+None
+
+Your help will be appreciated, thanks