asp.net-ajax

How to solve duplicate objects in dynamic loading page by using jQuery?

I want to solve duplicate objects in dynamic loading content. Please look at the following source code for easier understand. Base Page HTML With 1 Dynamic Loading Content <body> <div id="general-div"></div>> <div id="div1"></div> <div id="placeholder1"> Dynamic Content will be placed inside this. <...

Client Templates and Ajax 4.0 And Urls

Client Templating And URL's Title is required Im trying to output <a href="{{ link }}">click me</a> the data in question is spotify:track:0ucyXpQG7xL8ipoyU0Ts3A , once I remove the ":" the link comes through, any ideas on this one? As you can probably guess I'm trying to trigger the spotify protocol handler. ...

problem with images load on setTimeout

Hello everybody, I have a problem, that i seems not be able find my way around it. The problem is, that I load images and some text trough ajax call, and then after some time i try to call ajax function again to get new set of images and text. However my problem is that images don't load in time (everything is fine with the text load) ...

What is the best choice for making AJAX calls to a WCF service?

The Microsoft AJAX Library Preview 6 and jQuery provide several ways to make the sorts of calls I need: Sys.Net.WebRequest (ASP.NET Ajax) Sys.Net.WebServiceProxy (ASP.NET Ajax) $.ajax (jQuery) Sys.Net.WebRequest offers a way to specify the verb ("GET", "POST", "PUT", and "DELETE"), but no built-in callback for a failed request (they ...

MVC - Ajax.BeginForm gives htmlfile: Unknown runtime error

I am trying to implement an Ajax.Beginform on my page but when I try to run the code, on postback I get the following alert htmlfile: Unknown runtime error I've tried trawling the web for a solution but no joy so far. Seems the problem is caused uite often by having multiple forms on the page but the Ajax form is the only one I ha...

Accordion events not launching in ASCX

have an AjaxControlToolkit Accordion control included in a custom UserControl. I'm binding it to a datasource and on the itemDataBound I register a few controls as AsyncPostbacks. Somehow, from an ascx control the event on the itemcommand of my UserControl is never launched although there's no problem when I include this userControl di...

ASP.NET AJAX Preview 6 Conditional Attributes

Hi All, I am doing some training with the ASP.NET AJAX Preview 6 and VS2010 - I am using an example which has conditional attributes on the list item element to change the class, the example is here: <ul class="sys-template"> <li class:fired={{Fired}}> {{Name}} ({{ Title }}) </li> </ul> Now this works fine when i use the Pre...

CollapsiblePanelExtender collapses on link hover

Hi I am trying to use an CollapsiblePanelExtender to make some dropdown menus and am having some problems when hovering over links - can anyone help me out... By the way I do want to keep the AutoCollapse="True" effect. I have the below: <div id="drop_menu2"> <asp:PlaceHolder ID="PlaceHolder3" runat="server"> <asp:Panel cla...

ASP.NET Rich UI - What do you use?

I'm looking for feedback on what other people use on their ASP.NET projects to provide a rich user interface experience while still remaining as productive as possible. I'm developing an ASP.NET 3.5 web based application however I'm looking to make the UI in this project as rich as possible e.g. minimisation of postbacks and full pag...

Problems with my jQuery ... items are disappearing ...

I have the following code: <div id="comments"> <h2> Comments</h2> <div id="comment"> </div> <% foreach (var comment in this.Model.Topic.TopicComments.OrderBy(tc => tc.CreatedDate).Reverse()) { %> <% this.Html.RenderPartial("TopicComment", comment); %> <% } %> <fieldset> <% using (Ajax.B...

ASP.NET Ajax 4 and Microsoft Ajax library definitions

I undestand that is former for Web Forms ASP.Net only , latter ( currently preview 6 ) suitable for both - classic and MVC. Would it be possible to give a brief description/usage for each. By ASP.NET Ajax 4 I meant what is described in the following article Data Binding in ASP.NET AJAX 4.0 http://msdn.microsoft.com/en-us/magazine/...

ASP.NET Ajax Dispose pattern equivalent in jQuery?

ASP.NET Ajax, has a dispose pattern by having a IDisposable interface which let you free up the resources. How the freeing up of resources should be done in jQuery? Is there any similar pattern? How / when the dispose function is invoked by the ASP.NET Ajax library? Do we have to worry about memory leak if the page will be reloaded af...

How to prevent password getting reset often whenever the ajax is called?

Hi! I'm using ajax loader in my web page and password field. Whenever, the ajax is loading the password is getting reset often. I hav more than 8 fields which will call ajax, which will make the user to enter the password again and again. Is there any way to make the password constant without getting reset? Thanks in Advance!!!!! ...

IE caching WCF results - can I fix that somehow?

Hi All, I have a WCF service in an ASP.NET AJAX app that is returning json. Im using MS AJAX and the client PageRequesManager to run the service after each endRequest for any partial page updates. The user has a form, they update data and submit and the service needs to grab the latest data. When I debug using FF and FireBug, everything...

"Type is not defined" when using Asp.Net AJAX's Type.registerNamespace

Hi, I have an ASP.Net 3.5 web application. I have a page with a ScriptManager inside. I use ClientScript.RegisterClientScriptInclude in order to include my javascript files. In the JS files I use Type.registerNamespace but when the page loads I get a JS error: "Type is not defined". What am I doing wrong? ...

Web service method using update datebase in asp.net

how to use update query in web service wethod ...

ASP.NET GridView pagination without postback

Just a quick question for all of you guys. I have a Grid View inside Update Panel. My Modal PopUp pulls this Panel up. I am good so far. However when I try to do pagination on the popped up grid view, The page Posts Back. Then the Modal PopUp disappears and so does my GridView. When I click on mybutton again, It shows the Modal PopUp...

ImageButton not hitting codebind method, but does if replaced with LinkButton

I have an ImageButton being build inside of radgridview columnn. It is defined as follows. <asp:ImageButton ID="ImageButton_DeleteRun" ImageUrl="~/Assets/Images/Misc/delete.png" runat="server" OnClick="QueryDelete" CommandName="QueryDelete" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.QueryGuid") %>' Width="10" Height="10" ...

What is the best way to jump from one textbox to another using the Microsoft client-side AJAX Library?

I'm trying to find a reusable way to set focus from one text box to another upon enter using ASP.NET, but using client-side JavaScript to do so. The only reason I mention this is to be done in ASP.NET, is due to the fact that client Id's of the controls that ASP.NET renders can be different than what was specified in the markup. ...

Losing css class added through jquery on updatepanel partial postback

I'm using ASP.NET Ajax with JQuery. I have a click event that adds/removes css classes on objects in an UpdatePanel, but when the ASP.NET Partial postback occurs, I lose the "state." Here is minimal example I tried to create; how do I keep the css class state? <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inhe...