asp.net-ajax

Comet, Ajax Push, Reverse Ajax

℡╲_俬逩灬. 提交于 2019-12-03 13:07:35
问题 Someone have any sample of Comet app .net? I need one sample how to persist connection of client in server? 回答1: Here are some good ones too: http://www.frozenmountain.com/websync/demos 回答2: Here are two nice and scalabe examples: example 1 example 2 Update Be sure to take a look at SignalR 回答3: There are many sample projects for ASP.NET HERE 来源: https://stackoverflow.com/questions/2601893/comet-ajax-push-reverse-ajax

Why is my CalendarExtender getting overlapped when rendered?

ⅰ亾dé卋堺 提交于 2019-12-03 11:44:08
I'm working on a .NET web application and I'm using a CalendarExtender control within it to have the user specify a date. For some reason, when I click the icon to display the calendar, the background seems to be transparent. I'm using the extender on other pages and do not run into this issue. I'm not sure if it is worth mentioning, but the calendar is nested within a panel that has a rounded corner extender attached to it, as well as the panel below it (where the "From" is overlapping). Within that panel, I do have a div layout setup to create two columns. EDIT: The other thing to note here

How do I know that a form input has changed?

試著忘記壹切 提交于 2019-12-03 11:17:33
问题 I have a form generated by <% Ajax.BeginForm() {} %> which contains a lot of inputs and texareas. When an input value change, I need to know about it and mark the input and the form as "dirty". If the user tries to leave the page without saving, I will ask him or her to confirm abandoning changes. Any suggestion to how this should be done? 回答1: The html controls include a property that holds the original value. You could compare this value with the current value to see if there have been any

Page losing title after UpdatePanel asyncpostback

感情迁移 提交于 2019-12-03 10:43:57
I have just noticed recently that my page title will reset to the standard "Untitled Page" after I perform an asyncpostback from inside my UpdatePanel in the main page. The title will not be lost during a postback from inside the master page (such as when I click on the search box button inside the master page). I assumed that by using a different contentplaceholder specifically for setting the document title I was going to avoid issues like this, but apparently I was wrong. Is there something else I am missing other than having to explicitly set the title in the code-behind of the ASPX page

Why doesn't Ajax.BeginForm work in Chrome?

ⅰ亾dé卋堺 提交于 2019-12-03 10:42:59
I'm working with c#.NET MVC2 and I'm trying to create an ajax form that calls a method that deletes a database record (RemoveRelation). The process of deleting the record is working as intended. After the record is deleted the form should call a javascript function that removes the record from the visuals (RemoveRelation(10)). This is done through an AJAX call that on Internet Explorer 9 and Firefox 4 are all working as intended however on Chrome for some reason the update is not happening throuhg an AJAX call and the whole page is refreshing when the form to delete the record is being

How can I get an UpdatePanel to intercept a CompositeControl's DropDownList

允我心安 提交于 2019-12-03 10:09:13
I have a CompositeControl that contains a DropDownList. I have set the AutoPostBack property of the DropDownList to true. On the page, I have: <asp:UpdatePanel ID="UpdatePanel" runat="server"> <ContentTemplate> <MyControl:Control ID="CustomControl" runat="server" /> </ContentTemplate> </asp:UpdatePanel> I've also tried setting ChildrenAsTriggers="true" and UpdateMode="Always," but neither resolved the problem. The problem is that the UpdatePanel is not intercepting the CompositeControl's DropDownList's post back. (A full POST is being performed when the DropDownList is changed) How can I get

How do I load an external file and make sure that it runs first in JSFiddle?

荒凉一梦 提交于 2019-12-03 09:55:14
I have a JsFiddle here , and added Microsoft AJAX to be loaded through external JS/resource section. How can I tell whether or not my JS code is run after the AJAX file has finished loading? Seems that the AJAX does not load either. :( Here is the code in the JSFiddle: Type.registerNamespace("Tutorial.Chapter1"); Tutorial.Chapter1.Person = function(firstName, lastName) { this._firstName = firstName; this._lastName = lastName; }; Tutorial.Chapter1.Person.prototype = { set_firstName: function(value) { this._firstName = value; }, get_firstName: function() { return this._firstName; }, set_lastName

How to implement a file download in ASP.NET AJAX

心不动则不痛 提交于 2019-12-03 09:47:55
问题 I would like to use standard ASP.NET file download response, like in other Stack Overflow question. Response.ContentType = "application/octet-stream"; Response.AppendHeader("Content-Disposition","attachment; filename=logfile.txt"); Response.TransmitFile( Server.MapPath("~/logfile.txt") ); Response.End(); But inside update panel it does not work. What I have to do, that I will get a file if the download event is triggered inside update panel? 回答1: Well, I have found nice blog post on Encosia

Any downsides to using ASP.Net AJAX and JQuery together

不想你离开。 提交于 2019-12-03 09:19:41
问题 We are planning to use the jQuery library to augment our client side JavaScript needs. Are there any major issues in trying to use both ASP.Net AJAX and jQuery? Both libraries seem to use $ for special purposes. Are there any conflicts that we need to be aware of? We also use Telerik controls that use ASP.Net AJAX. TIA 回答1: We have used ASP.NET Ajax, jQuery and Telerik components on a large project for quite a while and haven't had any issues I would definitely recommend using jQuery 回答2:

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

倖福魔咒の 提交于 2019-12-03 08:52:09
问题 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