I see that Microsoft has a Javascript library which installs with the .NET Framework. I think that explains why it is working on Apache. Does MONO install the same Javascript library? Here is the code from the same page running on IIS:
<script language="javascript" src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script> Carl Olsen, MCSE Des Moines, Iowa > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:mono-list- > [EMAIL PROTECTED] On Behalf Of Carl Olsen > Sent: Monday, July 05, 2004 12:32 PM > To: [EMAIL PROTECTED] > Subject: [Mono-list] RequiredFieldValidator > > I'm trying to use a required field validator on an ASP.NET page running on > Red Hat 9 and Apache 2 using Mono 1.0. > > <asp:TextBox id="textTitle" runat="server" Width="300px" /> > <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" > ErrorMessage="Required" > ControlToValidate="textTitle"></asp:RequiredFieldValidator> > > <asp:TextBox id="textDetails" runat="server" TextMode="MultiLine" > Width="300px" Height="150px" /> > <asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" > ErrorMessage="Required" > ControlToValidate="textDetails"></asp:RequiredFieldValidator> > > I have an import statement in the page: > > <%@ Import namespace="System.Web.UI.WebControls" %> > > The page is not generating any Javascript to validate the required fields. > It renders in the web browser like this: > > <input type="submit" name="buttonOK" value="Save Changes" onclick="if > (typeof(Page_ClientValidate) == 'function') Page_ClientValidate();" > language="javascript" id="buttonOK" /> > > However, there is no Javascript function anywhere in the page, so it > doesn't > do anything. Am I missing something? Or, is this a bug? > > Carl Olsen, MCSE > Des Moines, Iowa > > > _______________________________________________ > Mono-list maillist - [EMAIL PROTECTED] > http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
