[Mono-bugs] [Bug 79443][Maj] New - HyperLink and LnkButton "enable" problem
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Sep 19 11:48:36 EDT 2006
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 informatique.internet at fiducial.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=79443
--- shadow/79443 2006-09-19 11:48:35.000000000 -0400
+++ shadow/79443.tmp.8012 2006-09-19 11:48:35.000000000 -0400
@@ -0,0 +1,80 @@
+Bug#: 79443
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com
+ReportedBy: informatique.internet at fiducial.fr
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: HyperLink and LnkButton "enable" problem
+
+Description of Problem:
+Bad behaviour when enabled is false on HyperLink and LinkButton
+
+Steps to reproduce the problem:
+1. Try this aspx:
+<%@ Page Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
+Transitional//EN">
+<html><head>
+ <title>Default</title>
+</head><body>
+<form id="form1" runat="server">
+<asp:HyperLink ID="hlinkbutton1" Text="Boutton1" Runat="server"
+CssClass="maclasse" Enabled="false"
+NavigateUrl="http://altern.org"></asp:HyperLink>
+ <asp:LinkButton ID="linkbutton1" Text="Boutton1" Runat="server"
+CssClass="maclasse" Enabled="false"></asp:LinkButton>
+ </form>
+</body></html>
+
+
+Actual Results:
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head>
+ <title>Default</title>
+</head><body>
+<form name="form1" method="post" action="Default.aspx" id="form1">
+<input type="hidden" name="__VIEWSTATE" value="" />
+
+<a id="hlinkbutton1" disabled="disabled" class="maclasse"
+href="http://altern.org">Boutton1</a>
+ <a>Boutton1</a>
+ </form>
+</body></html>
+
+Expected Results:
+In ms.net we have :
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head>
+ <title>Default</title>
+</head><body>
+<form name="form1" method="post" action="default.aspx" id="form1">
+<input type="hidden" name="__VIEWSTATE"
+value="dDwtMTkzNjc1MzAwNTs7Pg8vee5WLtpiezJc0TlYHbg8L34i" />
+
+<a id="hlinkbutton1" disabled="disabled" class="maclasse">Boutton1</a>
+ <a id="linkbutton1" disabled="disabled" class="maclasse">Boutton1</a>
+ </form>
+</body></html>
+
+
+
+How often does this happen?
+
+There's in fact two problems:
+
+for HyperLink the href attribute is rendered while it should not
+for LinkButton almost nothing is rendered while all should be there but href
+
+Additional Information:
+
+It works with MS.NET. It's strange that nobody reported before. It should
+be easy to fix!
More information about the mono-bugs
mailing list