Refresh Panel triggers postback after a period of dormancy

Within my SharePoint solution, I have incorporated an asp.net user control that utilizes Telerik Asp.net Ajax controls to facilitate basic datagrid CRUD operations. This grid is utilized within a web part on a SharePoint 2013 page.

The datagrid is enclosed in a RadAjaxPanel for ajax functionality.

Overall, everything functions properly. However, if I click the "add new record" button and leave the form untouched for some time before filling it out and submitting, a postback occurs which cancels the form submission.

Oddly enough, if I immediately fill out the form after clicking "add new record" and submit it, there are no issues. I suspect there may be a timeout setting causing this problem, but despite spending two days researching, I have been unable to locate it.

I am curious to know if you have encountered a similar problem before. Whether it involves an Asp.net update panel or RadAjaxUpdatePanel, any insights would be greatly appreciated.

Since I am unsure of which portion of the code to provide, please inform me if you require any specific code samples to better understand the issue at hand.

There seems to be something related to the SharePoint script manager and ajax manager causing this issue, though I am uncertain of the exact source.

Answer №1

There seems to be a known bug in SharePoint 2013 that has been causing issues for users. Despite suggestions to install the December 2014 CU to fix it, this solution did not work. One user shared on this link that making periodic requests to the server via JavaScript events helped resolve their issue. In my case, I noticed that my page would refresh if left idle for about 20-30 seconds, so I implemented calling a random SP web service every 15 seconds, which seemed to work as a temporary workaround. For more details on how I tackled this problem, refer to the link provided below.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

After updating to Xcode 7.0.1, my PhoneGap project is unable to establish an internet connection

Recently, I made the switch from Xcode 6.4 to 7.0.1 for my phonegap project in order to test it on a real device. However, after upgrading, my Ajax calls started failing and returning errors both in the simulator and on my iPhone. Interestingly, the ajax ...

Utilizing jQuery to Uppercase the Ajax Attribute

Lately, I've encountered an issue where I need to format the text input before sending it to ajax and saving it in the database. Specifically, I want to convert the text to lowercase and then capitalize the first letter before storing it. Here's ...

Tips for Testing an Ajax jQuery Function Within the document.ready Event

I am in the process of developing a script that utilizes $.ajax to make requests for a json api. My goal is to create unit tests that can verify the results received from the ajax request. For instance, I expect the returned JSON object to contain "items" ...

Utilizing JavaScript to call functions from an ASP.NET code file

I am in need of assistance with integrating a JavaScript-based timeline that requires data from an SQL server. I have already developed the queries and JSON conversions using C#.NET functions within a code file associated with an .aspx page. As a newcomer ...

Unsuccessful AJAX form submission failing to include file input type

"I'm having trouble getting the $_FILES variable in my PHP script when posting a simple form using AJAX." <form id="submitForm" method="post" enctype="multipart/form-data" > <input type="file" name="file" /> <input type="tex ...

Fixing a Dropdown Problem in Codeigniter

I have encountered a problem with the Dropdown pop-up feature. Specifically, when I click on the "Add New" option in the Dropdown, the pop-up window fails to open. Here is the code for the Dropdown: echo form_dropdown('Birth_Certificate_Storage_id[& ...

Generating HTML within controller actions

I am struggling to make a decision on whether it is acceptable to generate HTML in controller actions and return this HTML to AJAX calls from my view using jQuery. For example, when choosing a client through jQuery Autocomplete, in addition to retrieving ...

JavaScript method to prevent users from entering numbers as the first two characters, with all subsequent characters being numbers only

I need a specific requirement for my form. The textbox field in my form is labeled "DEA License number", and I want it to only allow the user to enter alphabetic characters for the first two characters, followed by numbers afterward. I am looking to impl ...

Two shapes engaging in mutual interaction

I am faced with a situation where I have two identical forms on different pages. Page 1 The form on this page serves as a quick call to action, pre-populating the form on the next page. <form action="/xxxx" method="post"> <select id="islan ...

Redirecting pages using an Ajax script in JavaScript

Unfortunately, I am unable to use a *.php extension for my page due to unforeseen circumstances. This has led me to consider using *.html instead and implementing conditional redirection using javascript/Ajax to call a PHP script that can evaluate the cond ...

When a div is modified through an ajax function, I aim to activate a JavaScript function

Is there a way to automatically execute a javascript function once the status updates to "Upload successful"? I am uncertain about how to accomplish this task. Following a multi file upload, the status will switch based on whether it was successful or en ...

What is the best way to halt an asynchronous method as a user?

How can I implement a mechanism that allows a user to stop an async method in MVC? My idea for implementation is as follows: public string stopToken { get; set; } public int iteration { get; set; } public async Task<string> someActionAsync() { ...

Bringing life to web pages through captivating animations when showing and hiding div elements, utilizing the power

After extensive research on various online platforms, including stackoverflow, I unfortunately couldn't find a suitable solution to my problem. However, with the invaluable assistance of you all, I managed to successfully implement a code for my proje ...

Issues with playing Html 5 video arise when making an ajax call

My goal is to implement an AJAX call followed by displaying an HTML5 video. The provided code snippet seems to be ineffective. $.ajax({ type: "POST", url: "Videos.aspx/GetBlocs", contentType: "application/json; charse ...

Ajax versus embedding data directly into the HTML code

Currently, my project involves a combination of JavaScript with jQuery and communication with a Django backend. Some aspects of the user interface require Ajax due to the fact that data to be sent is dependent on user input. On the other hand, there is c ...

Validation in PHP and Javascript is only partially effective

I encountered an issue with my form validation setup that utilizes JavaScript, Ajax, and PHP. While the errors are correctly displayed when the form is filled incorrectly, I am unable to submit the form even if there are no errors. Clicking the submit butt ...

Issue with using bind(this) in ajax success function was encountered

In my development process, I utilize both react and jQuery. Below is a snippet of the code in question. Prior to mounting the react component, an ajax request is made to determine if the user is logged in. The intention is for the state to be set when a ...

Invoke a confirmation dialog with onBeginForm() function prior to initiating OnSuccessForm() in Ajax.BeginForm

Once a selection of 'Yes' or 'No' has been made on the confirmation dialog, the OnSuccessForm() function appears to not be triggered. Is there a way to pause the onBeginForm() process before moving forward? My MVC3 Form @using (Ajax.B ...

php problem with calling a function through ajax

I have a home page where I send data to be inserted into the database using an ajax call to function.php. A unique id is generated for each entry and stored in a variable called $id. Now, when the user navigates away from the home page, I need to delete t ...

jQuery AJAX Concurrent Event

I have encountered a problem similar to ones discussed on SO, but none exactly match my specific issue. Here's the situation: var x = 5; if( some condition ){ $.ajax({ url:"...", success: function(response){ x = respo ...