When running my application lately, there is a very long delay after a request is made to the server. When debugging and stepping through, the code finishes quickly and then a dialog comes up, which I'm assuming is the reason for the lag. (I've tried a series of other options including disabling usage of ViewState, disabling debugging, installing IE 8 and reinstalling the Ajax Control Toolkit.
The dialog reads as follows:
Find Source: ExtenderControlBase.cs Original Location:
C:UsersswaltherProjectsAspNetAjaxReleases30930AjaxControlToolkitSourceAjaxControlToolkitExtenderBaseExtenderControlBase.cs
I am not familiar with any user on this machine named swalther (it was reformatted rather recently) and searching my computer for this folder turns up no results.
How to delay the Auto postback for 10sec in textbox of asp.net.
I am filling the textbox by using autofill. I'm calling textchanged method in code behind, So I need to delay the Textbox for 10sec. Problem is when I entered single letter it is going for textchanged. so i need to delay the Autopost back
I have an ASP.NET page with Javascript. I have some checkboxes and I want to give the user time to check and uncheck more then one box before the postback... so when the user tick/untick a check box the postback happens after 5 seconds. How can I do this? tryed different methods found online but all incomplete or wrong.
I am developing a web page where a user will submit some "Comments" on a form. When they click the submit button, I fire off some javascript that captures their current GPS location, which I store in a visible Text Box (for testing purposes). If the user is updating from a device that doesn't support gps, I add text to my textbox that says "Device does not support GPS".
When I get to the server, using a device that doesn't support GPS, that text comes through just fine. When I use my iPhone, I see the GPS Coords in my textbox, but that textbox value doesn't make it to the server.I'm thinking that there is a 2-3 second delay from the time that the button is clicked to the time that the java finishes retrieving the GPS. So the textbox text isn't set fast enough.I'm wanting to prevent a postback for 3 seconds (for example) to give the javascript time to update the textbox.
I am working on an Asp.net webiste.The response time(in case of a postback) of the pages in the website is ok on my local machine.But when I uploaded the same website to the internal development server and tried to access the server pages from my local machine,its taking bit long(in case of a postback) as compared to my local machine.I do not understand why the same webiste runs slowly on the dev server..
Following is the configuration of dev server.
Microsoft Windows Server 2003 R2 Enterprise Edition service pack 2 Intel(R) Xeon(R) CPU E5450 @ 3.00GHZ 3.23 GHZ,2.00 GB of RAM Physical Address extension
Following is the configuration of my local system
Microsoft Windows XP Professional Version 2002 service pack 2 Intel(R) Pentium(R) Dual CPU E2180 @ 2.00 GHZ 2.00GHZ,1.99 GB of RAM.
I'm slowly getting into MVC, but it's still relatively new to me. From what I've discovered by doing a few tutorials, MVC provides an interface for communication between the database and the website and in general allows for better organization of the code. Are there other significant advantages to using an MVC structure? What would be an example of a time when you wouldn't want to user MVC, even if you are communicating with a database?
So I've created a page with zones, a catalog, editor zone and property grid editor part. I have also created a simple webpart as a usercontrol and added to the declarative catalog.
In code behind of my usercontrol page I added some properties and I can edit them just fine however when I click Ok or Apply to the change of any property it takes two post backs before the changes take. So I can click Ok twice or Ok then Apply or Apply and Apply or OK then switch display modes but I will not see the changes take place inside the usercontrol until the second postback.
I have gotten confused about how page caching works in ASP.NET. Suppose a user has navigated to "home.aspx" on my website and say I release a new version of that page to the server and the user subsequently navigates to that page, he will get the updated version, is that correct? Is there ever a case where I need to be concerned that the user is NOT getting the latest version of a page(or code-behind) file? The reason I am confused is that quite sometime ago, I found the following code to put in my Page_load event to prevent page caching:
[Code]....
But the more I think about it, I cannot remember the rationale behind this. Whenever I do a release and subsequently visit my site, there is a noticable delay as ASP recompiles. So now I am wondering why the above "no caching" code would be needed or when it is appropriate to use.
How code a time delay before the next method is called? I have the following but I don't think it's waiting 10 seconds before calling CallMethod(). Thread.Sleep(10000); CallMethod();
There is a website that I've programmed that sometimes takes a long time to load. I will click on a browser bookmark to load the page which should take me to a login page. The code that the Page_Loads for the MasterPage and the initial Login page contain is minimal; no service, database, etc. executions. I even just commented everything out and the problem remains. Sometimes it takes 5/10/maybe more seconds for the simple Login page to load. I'm trying to figure out what the issue is, but I'm having a hard time. When I put breaks on the Page_Loads and debug, it loads immediately. Then, seemingly randomly sometime after that, it will again load slowly.
It wouldn't seem like any of my code is the issue since, when I debug, it loads quickly. I'm not calling any services or database methods so, AFAIC, that can't be the issue. I separated all of my websites in my IIS to use their own app pool the other day so if there is a memory leak in another site, it won't affect this one. The only thing I can think of now is some issue with my network which I wouldn't have the slightest clue at starting to debug. I can have IT investigate, of course, is that is a probable cause.
I'm reading the stream from a FileUpload control, reading in chunks of n bytes and writing the array in a loop until I reach the stream's end.Now the reason I do this is because I need to check several things while the upload is still going on (rather than doing a Save(); which does the whole thing in one go). Here's the problem: when doing this from the local machine, I can see the file just fine as it's uploading and its size increases (had to add a Sleep(); clause in the loop to actually get to see the file being written).
However, when I upload the file from a remote machine, I don't get to see it until the the file has completed uploading. Also, I've added another call to write the progress to a text file as the progress is going on, and I get the same thing. Local: the file updates as the upload goes on, remote: the token file only appears after the upload's done (which is somewhat useless since I need it while the upload's still happening).
Is there some sort of security setting in (or ASP.net) that maybe saves files in a temporary location for remote machines as opposed to the local machine and then moves them to the specified destination? I would liken this with ASP.net displaying error messages when browsing from the local machine (even on the public hostname) as opposed to the generic compilation error page/generic exception page that is shown when browsing from a remote machine (and customErrors are not off)
1. How can I create a delay in C#.I know Thread.Sleep(0) but it is blocking my GUI.2. Also I need to pause the execution of the normal flow until a function return a result.
I am using Asp.net menu control, how can I delay the showing of sub menu items ?
The menu is handled by Menu_HoverDynamic javascript function. I am trying to settimeout this function. But the problem is the sub menu are shown and the root menu is getting hidden ?
some times if i am running it using ctrl+f5 if i click a button(submit button) it is taking long time to navigate to next page,but if i run the application using f5 there is no problem.
I've got an odd situation with a text box and an autocomplete setup on my page. I'm using a JQuery based autocomplete on a text box that has AutoPostBack="True". This works perfect if I use the keyboard to select an autocomplete item, which then fires Jquery to fill in the text box, and then when I tab out of the box the AutoPostBack fires. If, however, I click on an autocomplete item, my text box loses focus first and the AutoPostBack fires before the Jquery has a chance to change the text in my text box. Is there a way to delay either the PostBack or the Jquery so that they don't fight each other? I'm thinking it may have to be the PostBack that gets changed, since the JQuery would lose it's state on the PostBack
We have a silverlight/asp.net application which communicates with WCF to fetch data. Now we are facing a problem where in the silverlight component is taking some time to initialize after the asp.net page life cycle is completed.We have tried tracing all the events and found that there is a time lapse between the aspx page unload event and silverlight initialize event. This we have tried with even a simple application (hello world) but still have found the same result.There is nearly 3-4 seconds delay i.e the silverlight component initialization starts 3-4 seconds after the page unload event ends.
Maybe this belongs in vb script forum, not sure ....
Anyway, I have an application that is running a ftp script. The code works fine but following is happening:
I my code I intend to show an message box when the ftp process is complete. What is happening is that the message box is being shown before the ftp is complete (while the dos window is up). Is there a way to delay continue running code till ftp is complete or wait for a number of seconds?