[Mono-list] RequiredFieldValidator

Carl Olsen carl@carl-olsen.com
Mon, 5 Jul 2004 12:32:05 -0500

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"

<asp:TextBox id="textDetails" runat="server" TextMode="MultiLine"
Width="300px" Height="150px" />
<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server"

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