asp.net-ajax

How do I bind an ASP.net ajax AccordionPane to an XMLDatasource?

孤街浪徒 提交于 2019-12-25 04:38:04
问题 I've got an angry boss that will beat me down if I waste another day on this :-P Many karma points to the ajax guru who can solve my dilemma. But more detail: I want to have an AccordionPane that grabs a bunch of links from an XML source and populate itself from said source. 回答1: There might be a sexier way, but this works. Populate your data source however you wish. This was just for demo purposes. Ditto for PrettyTitle() Key is to remember there are two item types in the accordion. <html

Ajax connection time out on firefox & Edge

一世执手 提交于 2019-12-25 04:13:30
问题 I am calling a method in server side using ajax. This server side method is a batch operation and it takes around 20 - 30 mins to complete. When I run the web site on Chrome everything works fine. Bur on Edge and Firefox the ajax error method is invoking after around 1 hour . When I enable the logs the server side method is completing without an issue. But the ajax success method is not calling. After the server side method complete, ajax call is still active and after some time ajax error

Internal Server Error #500 while trying to display JSONResult with jQuery ajax and MVC

左心房为你撑大大i 提交于 2019-12-25 04:05:09
问题 Controller public JsonResult TeamInfo(string teamName) { teamDA = new TeamDataAccess(); var teamInfo = teamDA.TeamInfo(teamName); System.Web.Script.Serialization.JavaScriptSerializer oSerializer = new System.Web.Script.Serialization.JavaScriptSerializer(); string sJSON = oSerializer.Serialize(teamInfo); JsonResult jsonResult =new JsonResult(){ JsonRequestBehavior = JsonRequestBehavior.AllowGet }; jsonResult.Data = sJSON; // first i give this. jsonResult.JsonRequestBehavior =

ASP.Net Webforms w/ AJAX Slow Rendering

∥☆過路亽.° 提交于 2019-12-25 03:37:28
问题 I have a Webforms, AJAX-enabled web page which, when rendering large amounts of data, is extremely slow to load in IE (we're married to IE - no other browser options). In an attempt to determine the source of the slowness, I viewed the HTML source (about 2.5 MB) and copied all of it (except for the Ajax JavaScript calls) to a blank .html file. IE renders this file MUCH faster than when the rendering happens through .Net. This seems to indicate that the AJAX JavaScript is slowing down the

ASP/AJAX - How to get the time between an server request and response?

て烟熏妆下的殇ゞ 提交于 2019-12-25 02:49:22
问题 Whenver Ajax requests new data from the server this can sometimes take a a second or two. Now I want to know, how can I get this time between the ajax request and the response it gets from the server? I need this because an ajax timer I'm running ain't perfectly doing his stuff. It got some delay whenever it needs to reset to it's original time. Thanks in Advance. Edit: Help needed fast please, just try. 回答1: Use Firebug to see the timings for each request. http://getfirebug.com/network 回答2:

ASP.NET: Ajax UpdatePanel Issue

北城以北 提交于 2019-12-25 02:24:49
问题 I am supposed to update the progress & display the corresponding message on the client side while the function is still under execution at server side. How can I achieve this? The function looks like: protected void Button1_Click(object sender, EventArgs e) { string Result = "Success"; if (Result == "Success") { Label1.Text = "Plan mst Completed"; Thread.Sleep(2000); //Some functionality here Label1.Text = "Packing date mst Started"; } if (Result == "Success") { Label1.Text = "Packing date

Does ASP.NET AJAX 4.0 tout client-side templating with the jQuery Templates plug-in?

不羁岁月 提交于 2019-12-25 02:23:13
问题 I am a little lost on what happened with ASP.NET AJAX 4.0 with regard to the push for client templates with the jQuery Templates plug-in (which is still in beta) and/or whatever proprietary flavor of the same thing that it had. I thought I heard months ago that Microsoft had abandoned the push for jQuery Templates and that ASP.NET AJAX 4.0 was released (??) with these features that had been featured in the betas and CTPs stripped out. Is this true? More specifically, what features were

web service call from javascript

不想你离开。 提交于 2019-12-25 01:33:24
问题 I am calling a webservice in javascript file using json but web service is called only when both of the .asmx file and javascript file are on my local server or both of the files are uploaded on live server. but I want to test my webservice which is uploaded on my live server from my local server. So please tell me the way by which I can test my live webservice from my local server. Because same web service is working fine when my Javascript file also present on live but not working when

Ajax.actionlink object route values returning null

安稳与你 提交于 2019-12-25 01:25:53
问题 I have a view: @model X.Models.Employee @Ajax.ActionLink(Model.LastName[lastNameCount - 1].Value1, // <-- Text to display "Stuff", // <-- Action Method Name new { //LINE CAUSING ISSUE employee = Model }, new AjaxOptions { bla }, new { @id = "opener" }) and my controller action method looks like this ActionResult Stuff(Employee employee) { //stuff } why is my employee returning null? can I not assign the Model to the object route values? I've tried Model.property and the action method accepts

Cannot get json data with ajax in Razor Pages [duplicate]

邮差的信 提交于 2019-12-24 22:53:42
问题 This question already has answers here : Example AJAX call back to an ASP.NET Core Razor Page (6 answers) Closed 2 years ago . i am trying to get some data from Razor Pages in ASP.NET Core 2.0. But the problem is that it does not returns any data. I also tried debugging it, it does not fire that method (OnGetProducts) at all. The model Index.cshtml.cs: private IProductRepository _productRepository; public IndexModel(IProductRepository repository) { _productRepository = repository; } public