Click here to Skip to main content
15,887,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRepeater Control with show and hide boxes Pin
indian1433-Jun-14 10:41
indian1433-Jun-14 10:41 
AnswerRe: Repeater Control with show and hide boxes Pin
DamithSL3-Jun-14 16:47
professionalDamithSL3-Jun-14 16:47 
GeneralRe: Repeater Control with show and hide boxes Pin
indian1435-Jun-14 7:14
indian1435-Jun-14 7:14 
QuestionBeginner to Visual Studio Pin
Member 87616672-Jun-14 13:31
Member 87616672-Jun-14 13:31 
AnswerRe: Beginner to Visual Studio Pin
Richard Deeming3-Jun-14 1:20
mveRichard Deeming3-Jun-14 1:20 
GeneralRe: Beginner to Visual Studio Pin
Member 87616673-Jun-14 2:14
Member 87616673-Jun-14 2:14 
GeneralRe: Beginner to Visual Studio Pin
Richard Deeming3-Jun-14 2:49
mveRichard Deeming3-Jun-14 2:49 
GeneralRe: Beginner to Visual Studio Pin
Member 87616673-Jun-14 5:07
Member 87616673-Jun-14 5:07 
Many thanks again for your reply and the validation links which I have bookmarked and will return to.

With my three fields only - username, password, and confirm password - things are fine. No errors and the form looks pretty!

However, when I copy and paste the following into my source code (thank you for the email validation expression: it would have taken me an age to find that!):

<div class="form-group">
            <asp:Label runat="server" AssociatedControlID="Email" CssClass="col-md-2 control-label">Email</asp:Label>
            <div class="col-md-10">
                <asp:TextBox runat="server" ID="strEmail" TextMode="Email" CssClass="form-control" />
                <asp:RequiredFieldValidator runat="server" ControlToValidate="strEmail"
                    CssClass="text-danger" Display="Dynamic" ErrorMessage="The email field is required." />
               <asp:RegularExpressionValidator runat="server" ControlToValidate="strEmail" 
    CssClass="text-danger" Display="Dynamic" ErrorMessage="Please enter a valid email address."
    ValidationExpression="^.+@.+$" />
  
   </div>
      </div>


I get a 'Stack Empty' error.

I have ensured that the ID and ControltoValidate values are the same (namely, strEmail). There are, in fact two ControltoValidate attributes. I imagine they relate to 1) Ensure an email address is typed in, and 2) Ensure it passes the +@.+$ test. And the two error messages make sense.

So I am not sure where I am going wrong!

Thanks for your patience!
GeneralRe: Beginner to Visual Studio Pin
Richard Deeming3-Jun-14 5:45
mveRichard Deeming3-Jun-14 5:45 
GeneralRe: Beginner to Visual Studio Pin
Member 87616673-Jun-14 6:14
Member 87616673-Jun-14 6:14 
GeneralRe: Beginner to Visual Studio Pin
Richard Deeming3-Jun-14 6:36
mveRichard Deeming3-Jun-14 6:36 
GeneralRe: Beginner to Visual Studio Pin
Member 87616673-Jun-14 6:58
Member 87616673-Jun-14 6:58 
GeneralRe: Beginner to Visual Studio Pin
Richard Deeming3-Jun-14 7:20
mveRichard Deeming3-Jun-14 7:20 
GeneralRe: Beginner to Visual Studio Pin
Member 87616673-Jun-14 7:32
Member 87616673-Jun-14 7:32 
GeneralRe: Beginner to Visual Studio Pin
Richard Deeming3-Jun-14 7:49
mveRichard Deeming3-Jun-14 7:49 
GeneralRe: Beginner to Visual Studio Pin
Member 87616673-Jun-14 8:12
Member 87616673-Jun-14 8:12 
QuestionHttpApplicationState Pin
jkirkerx2-Jun-14 13:17
professionaljkirkerx2-Jun-14 13:17 
Answer[SOLVED] Pin
jkirkerx2-Jun-14 13:26
professionaljkirkerx2-Jun-14 13:26 
SuggestionRe: [SOLVED] Pin
thatraja3-Jun-14 21:13
professionalthatraja3-Jun-14 21:13 
GeneralRe: [SOLVED] Pin
jkirkerx4-Jun-14 5:52
professionaljkirkerx4-Jun-14 5:52 
QuestionMicrosoftAjax.js broken in Windows 8.1? Pin
Richard Deeming2-Jun-14 8:49
mveRichard Deeming2-Jun-14 8:49 
QuestionDirect Print Pin
Dana_Wahab1-Jun-14 23:58
Dana_Wahab1-Jun-14 23:58 
AnswerRe: Direct Print Pin
Kornfeld Eliyahu Peter2-Jun-14 0:42
professionalKornfeld Eliyahu Peter2-Jun-14 0:42 
QuestionI have problem with my nested control in datalist Pin
marjan_198630-May-14 22:09
marjan_198630-May-14 22:09 
AnswerRe: I have problem with my nested control in datalist Pin
DamithSL31-May-14 4:32
professionalDamithSL31-May-14 4:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.