1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ERRor message in Required field validator in asp.net

Discussion in 'C#' started by sheetal_kawade, Sep 17, 2010.

  1. #1
    I am having problem with required field validator. I want to display validation error message immediately on form when textbox left empty and not after clicking on submit button.
     
    sheetal_kawade, Sep 17, 2010 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    AstarothSolutions, Sep 17, 2010 IP
  3. bibinsmk

    bibinsmk Active Member

    Messages:
    205
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    If you use the requiredfieldvalidator control of the asp.net the error message will show you immediately you left the the textbox with blank. If you don't want the error message to come in the submit button you can disable the "cause validation" property of the button to false.
     
    bibinsmk, Sep 18, 2010 IP