all groups > asp.net webcontrols > october 2006 >
You're in the

asp.net webcontrols

group:

Validator bug


Validator bug Abraham Andres Luna
10/31/2006 8:50:32 AM
asp.net webcontrols:
shouldn't this code work?

<%@ Page Language="C#" MasterPageFile="~/secure/admin/adminpage.master"
Title="Validator Test Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphNavSub" Runat="Server">

<IS:ISBaseReqValidator runat="server" ControlToValidate="tbCUSID"
ErrorMessage="Customer ID is required." />

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cphHeader"
Runat="Server">Validator Test Page</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="cphContent" Runat="Server">

<IS:IDTextBox ID="tbCUSID" runat="server" />

</asp:Content>



please tell me i'm not crazy, lol

if it shouldn't because by design, then i guess i have to set the control to
validate on page_load

thanks for your help,

abe

Re: Validator bug Abraham Andres Luna
10/31/2006 8:54:12 AM
well, can't set it in the page_load code either if the validator is in a
different conten control.
anyone have any suggestions.

[quoted text, click to view]
| shouldn't this code work?
|
| <%@ Page Language="C#" MasterPageFile="~/secure/admin/adminpage.master"
| Title="Validator Test Page" %>
|
| <asp:Content ID="Content1" ContentPlaceHolderID="cphNavSub"
Runat="Server">
|
| <IS:ISBaseReqValidator runat="server" ControlToValidate="tbCUSID"
| ErrorMessage="Customer ID is required." />
|
| </asp:Content>
|
| <asp:Content ID="Content2" ContentPlaceHolderID="cphHeader"
| Runat="Server">Validator Test Page</asp:Content>
|
| <asp:Content ID="Content3" ContentPlaceHolderID="cphContent"
Runat="Server">
|
| <IS:IDTextBox ID="tbCUSID" runat="server" />
|
| </asp:Content>
|
|
|
| please tell me i'm not crazy, lol
|
| if it shouldn't because by design, then i guess i have to set the control
to
| validate on page_load
|
| thanks for your help,
|
| abe
|
|

AddThis Social Bookmark Button