Why the ajax control is working slow when i upload to the server? such as the custom validator is slow response in the server, the modal popup box or loading is slow to response or close up after click the ok button. It work fast in the local server.
I'm trying to implement AJAX within an existing application and it seems to be running slow.
I have 3 datallist that all have checkboxs. I have buttons that all users to check all checkbox for a specific datalist. I have an update panel around each datalist. When I check and uncheck it seems to be really slow. I also have 3 textboxes and 4 buttons within my update panel.
When I user uses this site it hides and shows different panels and that seems to be really slow when the users press a button. There is no database stuff happening when the slowness occurs.
I have a problem with the performance of the web site-application . The major problem is when i hit the site from a long distance remote pc all server side events responces are too slow espesially the gridview (paging) , the point is when i used ajax update panel of asp.net it was more slower .
I have a drop down list that hides a panel with a bunch of controls when a certain value is selected, and shows the panel again when some other value is selected. This works fine. However it's slow when running both on my local webserver and on my web host, and takes about 1-2 seconds. What could be the reason for this? The only thing I do is to check which value is selected and hides/shows the panel.
I have a download button on my website to download an application of mine. It works fine but I noticed people are clicking it repeatedly. The response time is a little slow after you click the button. Not that bad for me but maybe it's worse for some. In the button click sub I have the code to get the file and bring up the download window and I also have code to increment a table for download count and get the IP address of the person who clicked the button. If I just have the code necessary to do the download the download window comes up a little bit quicker. Here's my button click sub :
Code: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click ' Dim FilePath As String = Server.MapPath("~/FolderForDownload/MyApplication.exe") Dim myfile As New System.IO.FileInfo(FilePath) If myfile.Exists Then Response.AddHeader("Content-Disposition", "attachment; filename=" + myfile.Name)
[Code] ...
What I've noticed is that when I had Responcse.End() before my code to get the IP address and increment my table and save the IP Address it would skip performing that code so I moved it below the code. It performs the code but I noticed that after you click the button it takes longer before you see the window pop up that asks if you want to Run or Save.
I tried putting the code to get the IP address and increment my table in a separate sub and then call the sub after Response.End() but it still doesn't perform that code unless I call that sub before Response.End().
I'd like to do everything I'm now doing but get the Do you want to Run or Save window to open sooner. I'm getting a number of people downloading my application from overseas and perhaps when it runs the code to identify the IP address it takes longer. I'm not sure but I see people clicking the download button repeatedly. My table records the exact time to the second when they clicked the download button and to take an example, there are 4 consecutive entries with the same IP address and the times are 3:28 PM for all 4 with the seconds being, 13, 15, 16, and 17.
I put a test download page on my website. When I was running in Visual Studio and using a localhost address I was seeing a big difference in how quickly the window opens after you click the download button if there's download code only versus download code with the other code. When I copied the page to my website and accessed the webpage on the internet there didn't seem to be hardly any difference.
Here's a link to the test page on my website if you want to try it out. You don't have to download anything but you can see how quickly the window opens asking if you want to run or save. There are 2 buttons on the page. One says Download Code Only and the other Download Code and Other Code.
[URL] ....
I just tried it out and I saw a big difference in time between the two but earlier I didn't. Sometimes I think the added code runs faster and other times slower.
I have problems with optimizing AJAX Control Toolkit. The specific problem is that 4800 records take about 30 seconds to bind in Internet Explorer (only 2 seconds in Opera & Firefox). I've tried anything, but I still can't improve the load time in IE.I've already enabled compression and caching, I'm using ToolkitScriptManager instead of ScriptManager. I've tried setting LoadScriptsBeforeUI and EnablePartialRendering to false, but it still doesn't help.
have a website with MasterPages, on load master page has many database roundtrips and logics implemented.Now, if move to one page to another, the MasterPage get reloaded and all the above mentioned procedures processed again, which again takes a lot of time and as a result my website's response is very slow.For eaxmple, once the default page is loaded, all the child pages can load within the centent area (in ajax style).
tell me some workaround to optimize the site so that it doesn't this procedures repetitively.
I am using C# ASP .NET MVC and ajax calls. I am able to get the display of the table along with all features. But, I don't understand how do I add a checkbox and button. I have tried dom-checkbox as well but can't get it to work.
i'm just getting started with asp.net and ajax. My question is : is it possible to make an ajax request and simulate the server response in the code behind. in other words can the request be sent to the code behind of the same page? if it's possible haw can i perform this ?
Basically I have to generate a rather large XPS document serverside and send this back to the client.
The issue I have whilst trying to do this is because the XPS document needs to be created on a STA thread, so either the response is sent back before the async operation is complete (in which case I can't attach the file using the transferfile method) OR I have to wait until the Async thread has completed and then I can send the file using the transferfile method (but this leaves the current page locked out for quite a while).
I have got an error "server response error : Unknown server error" while uploading file using Ajax AsyncFileUpload, code behind function is triggered while uploading, but after code behind function executed, we are getting this error.
For example, I have three UpdatePanels on the page. I click a button, and I get pretty long response, that contains all the data for the three UpdatePanels, the viewstate string.
I want to optimize my query and receive response like "ok" or "not ok". How can I do that?
When the user tries to upload a file with a size more than 4 MB, the AsyncFileUpload control gives a Confirmation alert (with "OK"/"Cancel" button) with the following message "Server Response error: Maximum Request Lengh Exceeded". But when the User clicks the "OK" button a new window popups and shows the server error and on clicking the cancel button the AsyncFileUpload background color turns red. Here I am not sure why the control is showing a Confirmation alert instead of a simple alert message. Is it possible to change the Confirmation alert with the simple alert message? Basically I don't want the popup window to show the server error as it is happening currently. Also, is there a better way to handle the file size error and show apporiate error message to the users?
The below SQL query is running extremely slow. Im using this query on other tables and its processing about 5 rows per second. The below version is running 1 row every 10 seconds when @SQLNew is executed.
I have a web page rendering two pie charts using the ASP.NET 3.5 chart controls. On my dev server (IIS 5.1) the charts load well. On the QA server, the charts load pretty slowly and sometimes one or both of them doesn't even load. I am loading the charts using the codebehind tag. Is there anything else that could be done to make these charts run faster? Note: I was previously using dotNETCHARTING and never had any issues with it. Nothing else has changed except for the charting engine.
website slow on first click on home page i have not used ajax except calender control and webgroupbox from infragistics.So i plan to place all my postback button on home page in update panel. So that whole page does not make a post backAnd my application is fast on first click.
My basic structure is that I have a table on a page, which I want to reload without refreshing the entire page. So on clicking a button on the page it fires of this:
function RefreshMissionsAjax() { //fade out the old table. $(clientID('MissionsDisplay')).fadeOut(500); //request the new value from the page (calls the GetIncompleteMissions() method in the MissionViewer.aspx.cs page) $.ajax({ type: "POST", url: "MissionViewer.aspx/GetIncompleteMissions", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { $(clientID('MissionsDisplay')).html(msg.d); $(clientID('MissionsDisplay')).fadeIn(500); }, error: function (xhr, ajaxOptions, thrownError) { $(clientID('MissionsDisplay')).html('An error occured while trying to refresh the page data.'); $(clientID('MissionsDisplay')).fadeIn(500); } }); } And I have in the code bedind of an aspx page: [WebMethod] public static string GetIncompleteMissions() { return GetHTMLTable(); }
This method just grabs some data, and creates a html table - nothing too fancy. When the returned table is small (a dozen rows or less) then it works like a charm. But when it gets larger, it takes a long long time. At 100 rows it can take 5 minutes to render the table. At 1000 rows I have left it for 30 minutes and nothing will happen after the fadeout. (NB - it loads fairly quickly on the pageload, before the ajax refresh is used, so it is not the actual server side creation of the table thats the problem).
This is my first real attempt at doing something like this, so I dont know if this is the best way to do it - it was just something i pieced together that worked great when i was testing with small datasets. Now, not so much.
I have an application that runs perfectly fine and fast in IE 7. There are certain pages in the application that use the AlwaysVisibleExtender control.
However, when I run the app in IE 8, the same exact pages seem to lock up for roughly 5 seconds before they render completely. What's weird is that the page shows all the contents except for the alwaysvisibleextender and relating panel. Then after the 5 seconds the panel shows. During that 5 seconds the page cannot be navigated or scrolled. This is not really acceptable.
I have, what i think is a very simple updatepanel setup. I have searched and found other similar issues, but they date back to 2008 and 2009. Is the fix provided back then the only known fix now? Is there any other fixes or things.
I am trying to print in an ASP.Net website using the code below and the printing is VERY slow. It takes about 5 minutes for the first document but then subsequent docs are printed without delay:
The printer is Xerox 5645. The server OS on which asp.net website is hosted is win 2008 x64.
I've got this query UPDATE linkeddb...table SET field1 = 'Y' WHERE column1 = '1234' This takes 23 seconds to select and update one row But if I use openquery (which I don't want to) then it only takes half a second.
The reason I don't want to use openquery is so I can add parameters to my query securely and be safe from SQL injections. Does anyone know of any reason for it to be running so slowly?