Community discussion forum

hi..this saritha

  • 2 months ago

    I have an aspx page with validationsummary, textbox and submit button.Textbox has required field validator.If I click submit button with out entering anything in texbox.required field validator gets fired and it showing error message. but the screen is flickering and finally textbox has got focus.No where I am setting focus to any control...Why the screen is flickering

     

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 2 months ago

    Hi,

    If by flicker you mean that the page is posting back, then you need to enable the client script property on the requiredfieldvalidator.

    Put this declaration into the requiredfieldvalidator:

    EnableClientScript="true"

    That should sort it.

    Regards

    Simon C

  • 1 month ago

    hi....

    thanks for your reply...

    i found the sollution...

    flickering is becuse setting foucs to textbox ,when validation gets fired...

    function that setting focus is in  js file , and that is located in C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_4322  ...

    i didn't check here..

    once again thanks..

     

Post a reply

Enter your message below

Sign in or Join us (it's free).