I meant to say it is not working in Apache, and I suspect it is because MONO does not install a Javascript library like the one in IIS. I'm guessing the solution is to copy the Javascript library to my Apache website but I haven't tried it yet. It's not going to find it automatically like ASP.NET running on IIS, so I'm guessing I'll have to hard-code all the Javascript into the page somehow. I can see that MONO attempts to build the Javascript but it can't find all the pieces.
Carl Olsen, MCSE Des Moines, Iowa > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:mono-list- > [EMAIL PROTECTED] On Behalf Of Carl Olsen > Sent: Tuesday, July 06, 2004 6:53 AM > To: 'Carl Olsen'; [EMAIL PROTECTED] > Subject: RE: [Mono-list] RequiredFieldValidator > > 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 _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
