Click here to Skip to main content
15,909,466 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSession for Listbox Pin
Dalina Cheriyan6-Jun-14 3:11
Dalina Cheriyan6-Jun-14 3:11 
AnswerRe: Session for Listbox Pin
ZurdoDev6-Jun-14 10:29
professionalZurdoDev6-Jun-14 10:29 
GeneralHow to increase .net application performance Pin
venumadhav.narla7776-Jun-14 0:39
venumadhav.narla7776-Jun-14 0:39 
GeneralRe: How to increase .net application performance Pin
Richard Deeming6-Jun-14 1:01
mveRichard Deeming6-Jun-14 1:01 
AnswerRe: How to increase .net application performance Pin
thatraja6-Jun-14 9:58
professionalthatraja6-Jun-14 9:58 
Question'Submit' button related errors Pin
Member 87616675-Jun-14 14:26
Member 87616675-Jun-14 14:26 
AnswerRe: 'Submit' button related errors Pin
Richard Deeming6-Jun-14 0:59
mveRichard Deeming6-Jun-14 0:59 
GeneralRe: 'Submit' button related errors Pin
Member 87616676-Jun-14 6:02
Member 87616676-Jun-14 6:02 
GeneralRe: 'Submit' button related errors Pin
Richard Deeming6-Jun-14 7:33
mveRichard Deeming6-Jun-14 7:33 
GeneralRe: 'Submit' button related errors Pin
Member 87616676-Jun-14 7:43
Member 87616676-Jun-14 7:43 
QuestionBeginner: using update_demo.asp - Datatype Mismatch Error Pin
Istteffanny Isloure Araujo4-Jun-14 22:49
Istteffanny Isloure Araujo4-Jun-14 22:49 
AnswerRe: Beginner: using update_demo.asp - Datatype Mismatch Error Pin
thatraja4-Jun-14 23:52
professionalthatraja4-Jun-14 23:52 
QuestionUnable to close a modal pop up after opening an pdf document Pin
aditya kiran maroju4-Jun-14 18:36
aditya kiran maroju4-Jun-14 18:36 
QuestionRe: Unable to close a modal pop up after opening an pdf document Pin
Vasudevan Deepak Kumar13-Jun-14 2:35
Vasudevan Deepak Kumar13-Jun-14 2:35 
Questionhighlight main menu item of current page. Also highlight when sub menu item is selected through javascript in ASP.net Pin
hilbiazhar4-Jun-14 2:41
hilbiazhar4-Jun-14 2:41 
Questionkinect with web Pin
vinayak.ghanti3-Jun-14 20:42
professionalvinayak.ghanti3-Jun-14 20:42 
AnswerRe: kinect with web Pin
Richard MacCutchan3-Jun-14 22:04
mveRichard MacCutchan3-Jun-14 22:04 
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!

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.