Validation error message is not displayed in window 2003(Asp.net ajax application)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dnnddane
    New Member
    • Sep 2008
    • 7

    Validation error message is not displayed in window 2003(Asp.net ajax application)

    Hi All,

    I try to create a sample asp.net ajax application in visual studio 2005.
    I have 1 textbox, 1 requirefieldval idator and 1 button. All are in updatepanel.
    When I click the button and the value of textbox is empty, I should get an error message of requirefieldval idator. It works fine in my pc running window xp, but I got a problem in window 2003. It shows the error message only at the first time when the value in textbox is empty, but when I try to enter some text and click submit and finally try to leave the value blank again and click submit then I do not get error message. Anyway, I notice that page is not post back to the server. It means that validation is fire but the error message is not provided.

    Any idea?
  • dmj07
    New Member
    • Aug 2008
    • 55

    #2
    Do you get a javascript error in the browser?

    I have seen that there are problems with having an ASP required field validator inside an update panel, it generates an error.

    Comment

    • dnnddane
      New Member
      • Sep 2008
      • 7

      #3
      Thank for your attention.

      No, I didn't get javascript error. If you got "Sys is undefined", that is because you didn't configure visual directory as an application in IIS.
      Right Click on the virtual directory - select properties and then click on
      "Create" next to the "Applicatio n" Label and the textbox.

      Anyway, I got javascript error when using MultiView inside an update panel with validation control. I have a bad solution how to deal with both, but still want to get answers from others whether they have different solutions otherwise I will consider as a problem from Microsoft.

      Thanks.

      Comment

      Working...