[Mono-list] RequiredFieldValidator

Carl Olsen carl@carl-olsen.com
Tue, 6 Jul 2004 06:53:29 -0500


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