Web Forms :: Validator Controls Slowing Down Page?
Mar 11, 2010
I have an UpdatePanel that has user controls dynamically added to it. There can be a few dozen user controls at times.The page / UpdatePanel slows down big time on each postback as more user controls are added. After some digging, I was surprised to find the cause is the various CompareValidator, CustomValidator, RegularExpressionValidator and RequiredFieldValidator controls that exist on each user control.Does anyone have suggestions? It strikes me as very peculiar that inclusion of these ASP.NET controls could have such a horrible effect on performance.
View 7 Replies
Similar Messages:
Mar 11, 2010
have an UpdatePanel that has user controls dynamically added to it. There can be a few dozen user controls at times.
The page / UpdatePanel slows down big time on each postback as more user controls are added. After some digging, I was surprised to find the cause is the various CompareValidator, CustomValidator, RegularExpressionValidator and RequiredFieldValidator controls that exist on each user control.
Does anyone have suggestions? It strikes me as very peculiar that inclusion of these ASP.NET controls could have such a horrible effect on performance.
View 3 Replies
Dec 13, 2010
I have a validator on a textbox that validates against a list to ensure that the user doesn't input the same name. When testing it, if I type in the same name including the same case structure, it returns an error. If I change one letter to a different case, it doesn't return an error but rather my SQL server returns a duplicate error. How do I change the server-side validator so that it picks up duplicate names regardless of case?
View 4 Replies
May 7, 2015
I have one application and there are 1500 users of that application.When 200 users logged in application that time login page and other pages of applications are not opend. I want to manage 1000 of users at a time.
View 1 Replies
Jun 14, 2010
I got a weird issue.. I have a datalist that's only loaded on pageload it contains 2 columns a name and date and has 398 rows.. In IE 7 and above(and prob previous version) when I open a modal via a button click it takes almost 5 seconds to open. HOWEVER, if I do not bind this datalist it's MUCH faster..
Also this is only happening in IE, Chrome, Firefox and opera both open the modal instantly with the datalist binded...
<asp:DataList ID="dListObitOneLiner" runat="server" style="margin-left:5px;"
OnSelectedIndexChanged="dListObitOneLiner_SelectedIndexChanged"
RepeatColumns="1"
DataKeyField="ObitId" >
[Code]....
View 1 Replies
Mar 2, 2010
I'm using the following code to iterate through a list of validators on the page. For each validator, I want to set the background color for the control its responsible for validating. The problem I'm having is that FindControl method is always returning null. From searching the web, it appears the problem is that the page has a master page. Whether this is the issue or not, it's obvious that the FindControl method cannot find the ControlToValidate control.
Method used to iterate all validators on a page:
protected void ShowControlsToValidate(Page page)
{
if (page == null)
return;
[Code].....
Markup showing control and it validator:
[Code]....
View 2 Replies
Aug 3, 2010
I'm trying to place a user control inside an UpdatePanel.
When the control is displayed, typing inside the TextBoxes has a large delay while in IE (6 & 8). FireFow has an excellent performance. Not only typing, but also scrolling etc experience a large delay up to a few secons.
The usercontrol(s) contain quite a lot of javascript functions that are re-registered using the ScriptManager.RegisterScriptBlock or RegisterStartupScript functions.
why typing becomes so very slow? I believe it has to do something with memory leaking due to the re-registering of the jQuery functions. But I'm unable to find the source of it.
View 1 Replies
Apr 3, 2010
I have been working on a new website for a few weeks with no speed issues at all.
[Code]....
This morning I was running / debugging new code and everything was running fine.
As soon as I dropped an AJAX HTML editor on my page it is taking about 30 seconds for my page to load when it was taking about 2 - 3 seconds. The only properties I changed was the Height and Width of the editor control.
Here is the code for that control:
<cc1:Editor ID="editorDetails" runat="server" Width="420" Height="300" />
I even turned off debugging just to see if that would help but it didnt.
I have the latest version which is 11-2009 BETA.
Could it be the beta version just has some debugging stuff that will go away with the final release version?
View 3 Replies
Mar 12, 2010
VWD 2008 Express. Visual Basic.I have a gridview each row of which contains two textbox controls with an associated validator control (comparevalidators). When I load the page, it takes forever and I give up and stop debugging. The gridview would be populated with about 224 records if it ever came up. If I go into the gridview and disable the validators and make them invisible, then the page loads quickly. Why would these validators make the page hang up?
Also, when the page does hang up loading, I go into the VWD 2008 debugger and see dozens of temporary "anonymous code" modules have been created that contain code like:
[Code]....
View 3 Replies
Dec 31, 2010
I using RangeValidator (0-10)gularExpressionValidator for text box ,Iam using regx for validate numeric characters
But if i enter charcters it will fire both RangeValidator and regx validator eventhoug i am enterd character,
i want to fire both validators seperatly
Here is my code
[code]...
View 8 Replies
Oct 27, 2010
I have a requirement of converting existing english form to multi lingual form.I am currently converting english form to spanish form.
Everything works except the date formats.
The range validator is not working in a spanish form but works in a english form.
I have set the maximum and minimum value in page load as below in the english form
Heres how i have set the values
[code]...
View 6 Replies
Mar 1, 2010
When it comes to field validation, when I use a Compare Validator to make sure a date is a date or a numeric field has a number, I must also use a Required Field Validator to make sure there is something actually enetered. In other words, the Compare Validator allows a blank value even though a blank is not a date or number or whatever.
Is using both a Required Field Validator and a Compare Validator the way to do this or is there some way to make the Compare Validator also require input of some kind?
View 3 Replies
Jan 13, 2010
my problem as follow:
1-i have UpdatePanel contain Gridview
2- i have Ajax Control ToolKit HTML Editor OutSide My UpdatePanel and its not inside any control.
my problem when make HTMLedior (visible=false ) onpage event, MyupdatePanel Render Control Much Fast, but when i Make it visible its slow my application althougth this htmleditor not included in any update panel and its not refreshed.
View 8 Replies
Jan 2, 2010
there is a sample code for creating a custom textbox control with built in validation posted here Building ASP.NET TextBox with Integrated Validation And Switchable Input Modes. Inside the code there is a call to Controls.Add(validator) which adds the asp.net validator control to the textbox. when the textbox is used on the page, the validator is rendered to the page although the validator is added to the textbox and not to the page!
View 1 Replies
Jan 11, 2010
I need to add a Required Field Validator to a text box on my page. When I add the validator the following happens when I run the page:
When I click the submit button the page doesn't submit because the page is invalid. No error message displays despite my having set the ErronMessage. When I click inside the text box that has the Validation, then the Required error message shows. When that textbox loses focus the error message goes away. The only way I can get the page to function correctly is if I create 2 Validators for the same text box. The first validator is set to have an ErrorMessage of "" and the second one is a regular error message.
I have used these before many upon many times and never experienced this. Below you will find the Source code.
[Code]....
This code is the only way I am able to get the validation to function correctly where the ErrorMessage displays when I leave the field blank. I appreciate any help on resolving this issue. I have deleted/re-added the validation control many times. This is the only page this type of error happens on.
View 6 Replies
Oct 6, 2010
I have at text box with a validator control which works fine (prevents letters being entered, only numbers)
However once it displays the error message I am unable to do anything else on the page, links don't work etc. I have to close down the window and start the website agin.
View 3 Replies
Nov 25, 2010
Can a required field validator be called from the code behind page?We have several check boxes and some of them require the user to enter a date, but not all of them.(This is not a checkbox list, but individual checkboxes).Any 1 of 6 different checkboxes selected makes a txtBox visible for users to enter a date.If they don't select one of these checkBoxes which require a date - it doesn't matter, the form will still be valid.I don't think validation groups can work here so looking towards doing through .vbHere's the existing code:
Public
Sub chkBoxI_CheckedChanged(ByVal sender
As
[code]...
View 3 Replies
Jul 6, 2010
I have a validator callout extender that works, it shows the callout box. But, it does a postback. It didn't do a post back the first time I clicked the button but it did for subsequent times. I read on the AJAX site that a custom validator must be used with this for it to work. I'm currently using this with a required field and regular expression validator. It works, the callout appears, but it doesn't work every time with out the post back.I posted this to see if there is a way to get this to work with a required field and regular expression validator, with out using a custom validator. I'm using the newest release of the toolkit, so I thought the documentation may be old, since the callout is appearing.
View 8 Replies
May 8, 2010
iam having two text box for password and confirm password in usercontrol i want to validate these control using compare validator in mvc whether any difference is there between the ordinary .aspx and .ascx while using this compare validator.
View 1 Replies
Mar 5, 2010
I use a Custom Validator (which validates on the server) and a button (it's PostbackUrl = "Page2.aspx").
When I press the button the browser show always Page2 without checking if the page is valid.
View 1 Replies
Nov 2, 2010
I have a footer row in gridview in which i have textboxes for insertion in gridview. Now i want to put requiredfieldvalidator on these textboxes. How can i get it?
View 3 Replies
Mar 1, 2011
I have a modal popup where the 1st control is a dropdownlist, then 2 invisible textboxes and then one visible text box(txt1). All of these have required field validators attached with ajax callout extender.
Based on the dropdown value, the invisible textboxes get visible and the corresponding required field validator controls get enabled.
Now problem is, if i dont enter anything and click on submit, instead of showing error message for the 1st control i.e. the drop down, it is showing message for the visible textbox(txt1).
what i am supposed to do, to display the error messages accordiing to the tab index of the controls?
View 9 Replies
Sep 29, 2010
I have been looking on the internet but don't seem to be able to find the answer. I am wondering is there a way to disable a validator on both the client and server side depending on the value of another control.
The situation is that I have a radiobutton that hides a textbox depending on the radionbuttonlist selected value . So I want to disable a validator on both server and clientside if the value selected is "N".
View 2 Replies
Mar 4, 2010
I have a query regarding asp.net validators. I want to conditionally skip asp.net validators and allow/disallow form submission based on a checkbox for skipping validations. I tried a few things but I am facing some problems. Please see the code snippets below to get an idea of the requirement.
View 3 Replies
Sep 8, 2010
I have a RadioButtonList control, containing two ListItems. These two Radio Buttons toggle each other, so that only one is selected at a time. When the second is selected, it affects whether a Textbox is enabled or not, and also erases the text in the Textbox when selected. Lastly, a Button is present to execute the selections made.
I have a RequiredFieldValidator and a RegularExpressionValidator on the Textbox, since when the first Radio Button is selected, I need to validate the entry. However, I need to turn off the functionality of the Validator controls when the second Radio Button is selected.
View 7 Replies