asp.net-ajax

Getting “The WebResource.axd handler must be registered in the configuration to process this request.” error

不想你离开。 提交于 2019-12-02 22:51:51
I'm getting this error while running my ASP.NET app on IIS7. I've tried doing what it says to do but it doesn't help. The WebResource.axd handler must be registered in the configuration to process this request. > <!-- Web.Config Configuration File --> > > <configuration> > <system.web> > <httpHandlers> > <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" /> > </httpHandlers> > </system.web> > </configuration> I'm using a little bit of AJAX which is what I think is causing the issue. Has anyone encountered this before? I figured it out so I

UpdatePanel Exception Handling

冷暖自知 提交于 2019-12-02 20:47:30
Where exceptions occur in the UpdatePanels I've implemented in the ASP.NET web app I'm building, they cause a JavaScript error on the page with some high level error output available in the alert. This is OKish for development, but as soon as the system is in Production, it's obviously no good for multiple reasons. I can surround troublesome activities with Try Catch etc to control the Javascript error but in some cases, I want to take actions on the main page etc to support the user experience. How do I go about handling errors that occur in UpdatePanels gracefully to provide a seamless and

Ajax Request returns HTTP error 500, using MVC and $.ajax call with POST?

夙愿已清 提交于 2019-12-02 20:20:23
I've seen several threads about this, and I've tried all the answers ( ASP.NET MVC JsonResult return 500 ) My ajax request is re-turning a 500 Internal Error. If I debug I never even get to my action. Here is my ajax call: $.ajax({ url: '@Url.Action("UpdateSortOrder", "FormItems")', data: { itemToUpdateId: item.attr("id"), newParentItemId: parentItemId, newPreviousItemId: previousItemId }, type: 'POST', success: function (data) { console.log(data); }, error: function (xhr, status, exception) { console.log("Error: " + exception + ", Status: " + status); } }); And my action: [HttpPost] public

Ajax.BeginForm OnFailure invoked when ModelState is InValid

拜拜、爱过 提交于 2019-12-02 19:48:11
I want to call "OnFailure" when ModelState is not valid in controller. In My LoginView @using (Ajax.BeginForm("Login", new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "Login",InsertionMode = InsertionMode.Replace, OnSuccess = "Success", OnFailure = "onError" })) { } In Controller [httpPost] public ViewResult Login(LoginModel model) { if (ModelState.IsValid) { } else { ModelState.AddModelError("login is fail") } return View("Login",model) } so i want call onSuccess Method if ModelState is valid and if it fail then call only OnError method with display all error which are in Model State.

GWT and .NET

最后都变了- 提交于 2019-12-02 19:40:13
How can I use GWT together with Visual Studio to create an ASP.NET website? If it is possible. Thanks You can use GWT to generate the client side code writing in Java and use asp.net for the back end. It's a little trickier as you won't get the serialization across the wire for free that you'd get from using Java on the back end too. I wouldn't really recommend this approach it's bound to be a hassle to maintain. I'd recommend using a good javascript toolkit instead, such as jquery and jquery UI. GWT can be used with any back end with a little work. Out of the box it uses a servlet container

How to update aspx page while using Multithreading

家住魔仙堡 提交于 2019-12-02 18:58:03
问题 I am using multi-threading to update/display the content of page. Page is using multiple ( and nested ) update panels. Right now, i am using following logic to update page. I have seven threads, each thread gets data by querying database and display them in specific section of page. We start threads and wait for 2 mints, after passing 2 mints if some threads still working then we break those and display the populated data on page, these calls to thread are making on page load event. Problem

Google pie chart (any chart) not working inside an ASP.Net AJAX Update Panel

ⅰ亾dé卋堺 提交于 2019-12-02 18:11:36
问题 I am facing problem with Google pie chart and Update panel. Their is one Tab container inside a update panel which has two Tab panels. Each tab panel contains div and script to plot Google pie chart. when first time page gets load it works properly. but if i change the tab then pie chart doesn't work. i have used "Sys.Application.add_load(methodname) inside each tab panel. i have used script which is in Google play. Thanks in Advance. 回答1: The call to google.load only loads the Visualization

DataTables ajax requires explicit json collection name for the returned datasource?

不羁的心 提交于 2019-12-02 17:09:26
问题 I recently ran into a problem when implementing the ajax functionality of jquery DataTables. Until I actually gave my json object collection an explicit name I couldn't get anything to display. Shouldn't there be a default data source if nothing named is returned? Client Side control setup (includes hidden field that supplies data to dynamic anchor: $('#accountRequestStatus').dataTable( { "destroy": true, // within a method that will be called multiple times with new/different data

Function.createCallback doesn't pass context correctly in FireFox

杀马特。学长 韩版系。学妹 提交于 2019-12-02 13:51:31
问题 I've discovered what seems to be a bug in how the MS AJAX library interacts with FireFox -- but maybe I'm just doing it wrong. I've got a script that looks something like this: dowork({ value: "some value", currentRetry: 0 }); // Try to connect at least 10 times, with a second in-between retries.. function dowork(request) { if (request.currentRetry < 10) { logMessage('currentRetry = ' + request.currentRetry + '; trying again in 1 second.'); request.currentRetry++; var callback = Function

Ajax.BeginForm refreshing the whole page in MVC

回眸只為那壹抹淺笑 提交于 2019-12-02 13:48:02
问题 I've been trying to add some Ajax functionality to my mvc site, however, I run into a problem regarding page refreshing. I've created an rss view on my homepage sidebar, which allows the user to select which rss feed they want to view using a drop down list. Initially I was using the html.begin form option in mvc, however, I decided it would be a cool feature to have the rss feeder refresh, rather than having the whole page refresh. I implemented the ajax.begin form, but the whole page is