Results 1 to 2 of 2

Thread: Button enabling during validation

Threaded View

  1. #1

    Thread Starter
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Button enabling during validation

    (This question is a combination of ASP.Net (VS 2003) and javascript. The code in question is mostly javacript.)

    If I'm not clear initially, please let me know. This is a little beyond me, and I'm having trouble trying to firgure out where to start.

    What I have is a webform that I created using ASP.Net. I added a couple RegularExpressionValidators to the page that validate dates in textboxes (handled client-side). There's also a couple RequiredField controls as well (handled server side). I have strict server side data validation as well, but I'm trying to keep that more towards defensive programming. Also, I like the cosmetic look of client-side validation.

    Back on track, what I really want to do is this. If the page isn't validated client-side (which is just the RegEx validation controls); I want to disable buttons client-side.

    I have a feeling this is pretty basic JavaScript. I am able to read and follow JS, but I don't have any experience writing it. I'm not asking for code though, this is something I need to learn if I'm going to make webforms. All I'm asking for is a good, related article or tutorial that might assist me. Half my problem is that I don't know what to look for since I really haven't spent enough time with scripting.


    Thanks!

    Note: I italicized the main points since I have a tendency to ramble.
    Last edited by sevenhalo; Jan 3rd, 2006 at 10:12 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width