Validator bug

  • Thread starter Abraham Andres Luna
  • Start date
A

Abraham Andres Luna

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
 
A

Abraham Andres Luna

well, can't set it in the page_load code either if the validator is in a
different conten control.
anyone have any suggestions.

| 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
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,091
Messages
2,570,604
Members
47,223
Latest member
smithjens316

Latest Threads

Top