Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Passwordrecovery control && requiredFieldValidator

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 13 Mar 2008 14:53 GMT
hey

asp.net 3.5

I have this asp.net markup. it displays a PasswordRecovery control on a
webpage. In the markup I've set UserName as a reguired field.  The problem
is that when I don't enter something in the UserName field and click Submit,
nothing happens.. it doesn't even display an error message... I thought that
when clicking the submit button the requiredFieldValidator would display an
error message... any suggestions?

Here is my markup:
<asp:PasswordRecovery ID="PasswordRecovery1" runat="server">
       <UserNameTemplate>
           <asp:Table ID="Table1" runat="server">
               <asp:TableRow>
                   <asp:TableCell Width="120">Brukernavn:</asp:TableCell>
                   <asp:TableCell Width="200">
                       <asp:TextBox ID="UserName" runat="server"
Width="90%"></asp:TextBox>
                   </asp:TableCell>
               </asp:TableRow>

               <asp:TableRow>
                   <asp:TableCell ColumnSpan="2" HorizontalAlign="Right">
                       <asp:RequiredFieldValidator ID="rfvUserName"
ErrorMessage="Usernameis required" ControlToValidate="UserName"
Display="Dynamic" ValidationGroup="PasswordRecovery1" runat="server"
>*</asp:RequiredFieldValidator>
                       <asp:Button ID="SubmitButton" CommandName="Submit"
runat="server" Text="Submit" />
                   </asp:TableCell>
               </asp:TableRow>
           </asp:Table>
       </UserNameTemplate>

       <QuestionTemplate>
Jeff - 14 Mar 2008 08:03 GMT
I've somewhat solved this case.....

> hey
>
[quoted text clipped - 33 lines]
>
>        <QuestionTemplate>

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.