Login Control & Validation

Last post 05-14-2007 11:06 AM by humblepatience. 4 replies.

Sort Posts:

  • Login Control & Validation

    05-10-2007, 12:03 PM

    http://www.asp.net/CSSAdapters/Membership/Login.aspx

     If you enter an email in the email box, and click enter, the little red star next to the password box appears before the postback, but then it posts back  (but does nothing, and doesn't fire the button click event, I don't think).  The normal asp.net login control does not fire a postback when the validation controls find that the code isn't validated - they are supposed to work off javascript and prevent you from firing the button click event (which maybe they do) but they shouldn't require a postback! What's going on?

     

    Thanks!
     

     

  • Re: Login Control & Validation

    05-10-2007, 5:09 PM

    Note, I'm using FF2.0

     I get these javascript error messages when I submit the form

     

     

    Warning: Error in parsing value for property 'display'.  Declaration dropped.
    Source File: http://www.asp.net/CSSAdapters/App_Themes/Basic/MainMaster.css
    Line: 212
    Warning: assignment to undeclared variable adcode
    Source File: http://ads.asp.net/a.aspx?ZoneID=6&Task=Get&IFR=False&Browser=NETSCAPE4&PageID=70755&SiteID=1&Random=1178831259178
    Line: 1
    Warning: function anonymous does not always return a value
    Source File: http://www.asp.net/CSSAdapters/WebResource.axd?d=4qWIQ8hjQ-c1NwzpY_MfxBGhJ0LiyeC10&t=633135362842060659
    Line: 97, Column: 137
    Source Code:
    if (!ValidatedTextBoxOnKeyPress(event)) { event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return false; } 
    Warning: function anonymous does not always return a value
    Source File: http://www.asp.net/CSSAdapters/WebResource.axd?d=4qWIQ8hjQ-c1NwzpY_MfxBGhJ0LiyeC10&t=633135362842060659
    Line: 97, Column: 137
    Source Code:
    if (!ValidatedTextBoxOnKeyPress(event)) { event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return false; } 
     

  • Re: Login Control & Validation

    05-14-2007, 10:59 AM
    • Member
      435 point Member
    • bdemarzo
    • Member since 07-02-2002, 8:05 AM
    • New York
    • Posts 168

    I just tried and experience no issues (FF2.0 also). It may be possible that an unrelated JS file (http://ads.asp.net/a.aspx...?) was causing the errors, unrelated to the CSS adapters.

     

  • Re: Login Control & Validation

    05-14-2007, 11:05 AM
    Wait, so you don't see the login control cause a postback when it should just use client-side javascript validation controls to stop the user and notify them of an error with the form before causing a postback? 
  • Re: Login Control & Validation

    05-14-2007, 11:06 AM
    The errors were just a guess at what might be causing the problems; I get the same postback problem on my own site without those ads.asp.net javascript files, obviously.
Page 1 of 1 (5 items)