[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

Validator Controls - Slow Page Down and Cause Flickering

Having a few problems using the .net 2.0 validator controls.

I have a section of a page that displays an update area if a button is selected (section.visible=true). The update section has a few validator controls. Before I added the controls, the page was stable (no flickering)...since adding the controls, the entire page flickers and both sections are redrawn at the time the display button is selected.
The other problem is if I include Comparevalidators for 3 date fields within this section, the entire page slows painfully down....taking more than 5 seconds to load.  What am I doing wrong or is this normal?
0
ChiBella
Asked:
ChiBella
  • 12
  • 9
1 Solution
 
surajgupthaCommented:
Usually the first time a page loads it take some time to compile the project. It may be silly but does it take 5 seconds even on the subsequent page loads?

Adding a couple of controls shouldnt ideally take a lot of time to load on the intranet or the local machine.How fast is your network? Is it fast ?
0
 
ChiBellaAuthor Commented:
yes it's pretty fast...the issue is if I remove the controls it is VERY fast but if I add the controls it is VERY slow. A big difference in the before and after. So apparently the controls are slowing things down.

0
 
surajgupthaCommented:
As for your flicking can you enable the SmartNavigation in your page?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
surajgupthaCommented:
I dont see why it should be slow because the load of the page would just have a little more HTML tags extra which shouldnt take 5 seconds !!! Unless the javascripts on the page is being monitored by some firewall/ spy ware client you may be running
0
 
ChiBellaAuthor Commented:
I have very little javascript and even if I remove it and just use the requiredfieldvalidator it is slow. If I add the compare validators it becomes unbearably slow.

Are the controls being reloaded whenever I set the placeholder section to visible?
0
 
surajgupthaCommented:
>I have a section of a page that displays an update area if a button is selected

Can you try removing this and see how the response times are?
0
 
surajgupthaCommented:
The Compare Validatory internally uses some client scripting to validate your controls. Thats what i meant by javascript. Can you try switching off temporarily any firewall program or internet security program u might be using ?
0
 
ChiBellaAuthor Commented:
Even leaving just the validationSummary causes the page to slow way down and flicker.
0
 
surajgupthaCommented:
Can you try switching off temporarily any firewall program or internet security program u might be using ?
0
 
ChiBellaAuthor Commented:
I disabled the virus scan...that's about all I'm permitted to do. That made no difference.

I 'm thinking about dropping the client side validation controls.
0
 
surajgupthaCommented:
Ok the reason it is slow is because of the client side scripting added by the validators
It seems to be like a common problem. There are also some ways to make it a bit faster

Check this link http://forums.asp.net/p/904459/997394.aspx

After implenting the suggestions, If you still dont feel like its fast enough you can go ahead and remove the validators
0
 
ChiBellaAuthor Commented:
Yes, I read that post before. Doesn't really offer an explanation or solution. I have very little javascript in the page so don't think it's my code. The main reason I wanted to use the controls was for the message box for display of all errors.
I originally had this server side...but didn't like the message box (displayed on a white page)....but just read this and will try it.

http://forums.asp.net/p/55926/1938786.aspx

0
 
surajgupthaCommented:
>> I have very little javascript in the page so don't think it's my code.
Like i have said its not your code. Javascript is autogenerated by the .net framework when you put validation controls in to your page.

If you are just doing a few simple validation why dont you hand code it in javascript?
0
 
ChiBellaAuthor Commented:
It will be much more than a little if I remove the controls. I did find a way to display a message box from c# without the blank page displaying. Since I am adding other controls (3rd party Obout menu control) that apparently also adds some flickering, I have decided to add the light validators and leave the heavy one's (compare) out.
0
 
surajgupthaCommented:
Have you tried enabling Smart Navigation?
0
 
ChiBellaAuthor Commented:
No, what is Smart Navigation?
0
 
surajgupthaCommented:
To minimize flicker i thought you could enable smart navigation but looks like this has been deprecated in ASP .net 2.0

In the process i found an article to reduce flicker. May be this would be useful
http://support.microsoft.com/kb/913721/en-us?spid=8940&sid=global

Check the last page in the above link
0
 
ChiBellaAuthor Commented:
are you referring to

Method 1: Use the ASP.NET 2.0 client callback manager
0
 
surajgupthaCommented:
yes thats right
0
 
surajgupthaCommented:
Did it help reduce flicker?
0
 
ChiBellaAuthor Commented:
I have not worked this yet. I am currently working with the Obout vendor with their easymenu. The issue is trying to load the menu from a database and keeping persistence within the masterpage.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 12
  • 9
Tackle projects and never again get stuck behind a technical roadblock.
Join Now