[Mono-list] RequiredFieldValidator

Carl Olsen carl@carl-olsen.com
Tue, 6 Jul 2004 07:02:08 -0500


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: mono-list-admin@lists.ximian.com [mailto:mono-list-
> admin@lists.ximian.com] On Behalf Of Carl Olsen
> Sent: Tuesday, July 06, 2004 6:53 AM
> To: 'Carl Olsen'; mono-list@lists.ximian.com
> 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: mono-list-admin@lists.ximian.com [mailto:mono-list-
> > admin@lists.ximian.com] On Behalf Of Carl Olsen
> > Sent: Monday, July 05, 2004 12:32 PM
> > To: mono-list@lists.ximian.com
> > 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  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list