hi..this saritha

  • 9 years 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

     

  • 9 years 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

  • 9 years 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).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Beware of bugs in the above code; I have only proved it correct, not tried it.” - Donald Knuth