i am creating a form where email is a required field.  to make sure 
it was filled in, i use a requiredfieldvalidator.  both the textbox 
and it's validator are below:

<asp:TextBox id="txtEmail" Width="200" CssClass="login-input" 
runat="server" />

<asp:RequiredFieldValidator id="rfvEmail" 
ControlToValidate="txtEmail" CssClass="error-text" Display="Dynamic" 
ErrorMessage="You must enter your email address." InitialValue="" 
runat="server"  />  

when i run this code on my machine (localhost),it functions 
perfectly.  when there is no email entered, it stops the postback and 
displays the error message.  when there is an email, the postback 
continues as normal.

my client has a dev site that i am supposed to upload my progress 
to.  for some reason, this page stops working on their site.  if 
there is no email, the validator stops the postback and displays the 
error message. if there is an email, however, nothing happens.  no 
postback, and no message.  if i take the validator out, the postback 
occurs normally.

can anyone think why this would be happening?  any and all help would 
be greatly appreciated.

-lhb






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to