asp.net-ajax

ASP.net AJAX Control Toolkit will not recognise my specified css classes in the autocomlete extender?

I am trying to specify CSS classes for the autocomplete control: CompletionListCssClass="completionListElement" CompletionListItemCssClass="listItem" CompletionListHighlightedItemCssClass="highlightedListItem" When I try this, it returns this error: Parser Error Message: Type 'AjaxControlToolkit.AutoCompleteExtender' does not have...

Formview and MS-Ajax UpdatePanel

I have an issue with the conditional display of the formview edit button after a partial postback triggered by the formview control. I have an edit button defined in the ItemTemplate like this: <asp:FormView ID="fvGenericDetails" runat="server"> <ItemTemplate> <asp:Button ID="btnEditGenericDetails" runat="server" Visible="fal...

How to implement Windows Live ID Actions with ASP.NET AJAX

OK, so I'm working on an ASP.NET webapp with AJAX and the Windows Live ID SDK. I've successfully gotten it to authenticate via Live, however... The Windows Live ID spec indicates that I have to look for request headers "login", "logout", and "clearcookie". The recommended code samples include a Response.Redirect, which doesn't seem to...

ASP.Net MVC and Webservices/Ajax - Which route to take?

Hello I'm developing an ASP.Net mvc application which has a requirement to do some small, atomic actions without an entire page postback. The logical way of doing this is of course with an ajax call. My question is - What would people suggest is the best way of achieving this? As far as I am aware I can do it along the following lin...

Can Response.Redirect and OnBeforeUnload play nice together?

Does anyone know how to detect in a OnBeforeUnload event that the server side code sent a Response.Redirect? I want to prompt a user to keep them from moving away from a page before it's time, but when the server redirects I it shouldn't prompt the user. I'm working with legacy code that extensively uses Response.Redirect and I'm not i...

Experience with third party Web.UI controls like Component Art

Has anyone used Component Arts Web.UI controls? They look like a great set of tools but is it worth the $998 they charge? ...

How to transition from embedded software development to web development?

Hello, I am an embedded software developer with about 5+ years of experience working on mobile devices. I recently lost my job and most of the jobs in the embedded field (that I came across) require security clearance and I am not eligible for that. So, for this reason and also just to learn something new, I am planning to move to web d...

ASP.NET MVC NMultiple Models

Hello everybody, I want to build something very similar to the "Ask Question" form in stackoverflow, making some tag fields being added to my event model dynamically. But I'm very new to MVC and I don't even imagine how to do that, can you provide me an example or a tutorial? Thank you, Felipe. ...

Asynchronous pageloads - How do you pass parameters to callbacks?

Part of the jQuery/ajax asynchronous callback stuff still has me baffled, and I'm sure it's just because I don’t know javascript well enough. Simplifying the code down as much as possible, this is where I'm stuck: If I create an empty div with an id of "queuediv1" I can fill it with the results of a page method like this. $(document...

UpdatePanel driving me insane - Dynamicly Created UpdatePanel Problem

So, I have the following code in Page_Load: updDesignations = new UpdatePanel(); updDesignations.ContentTemplateContainer.Controls.Add(toutLineDesignation); updDesignations.ChildrenAsTriggers = true; updDesignations.UpdateMode = UpdatePanelUpdateMode.Always; divDesignations.Controls.AddAt(0,updDesignations); Wh...

How to refer to a control that exists within an Ajax Tab?

I have a problem with using a script that adds a NiceEdit toolbar to a text area when that text area is within an Ajax tab. I want to know if I should refer to it in a different way than just the ID. I mean the ID of that text area, I tried to take the text area outside the Tab Container, it works, but when I return it, it simply doe...

AJAX AutocompleteExtender isn't working. Web Service works.

This is c# .net 2.0. I am using a masterpage. The WebService works fine on its own. I am completely stumped. When I type in the TextBox, nothing happens. Files: EditTicket.aspx AutoComplete.asmx App_Code/AutoComplete.cs EditTicket.aspx: <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc...

AnimationExtender is still executed when link is disabled

I am using AnimationExtender Control to display popup on click of a Link button. I fill its text on some event. So, in some case it could be empty too. Issue is, when I disable the LinkButton when there is no data to display, even a blank Popup gets displayed on its click. Can I stop the its Click event when my LinkButton is disabled? ...

Pass JSON object to Web Method

I wanted to shared something I learned today with you all. My question was: Can you pass a JSON object from JavaScript code to a .NET Page Method? For example: var task = { Title: $("#titlenew input", $(newTaskRow)).val(), StartDate: $("#startnew input", $(newTaskRow)).val(), EndDate: $("#endnew input", $(newTaskRow))....

What is the difference between Microsoft AJAX and AJAX Pro?

Hi all. What is the difference between Microsoft AJAx and AJAX Pro? Also, for what should I use AJAX Pro? ...

Issue with AutoCompleteExtender rendering

I am using AutoCompleteExtender in my application and somehow the the suggestion box started appearing not right under the text box but rather 20-30 pixels below. After digging through the generated HTML i noticed that it renders as UL and LI elements, while in the samples downloaded from ASP.NET it renders as DIV inside DIV and works f...

How may I best use the [Authorize] attribute with Ajax and Partial Views?

I was about to use [Authorize] on Actions that return partial views through Ajax; but I'm not getting the behavior I'd like (although its the behavior I expected). It seems like a long shot; but, is there any way to extend this attribute to "break out" of an AJAX call and redirect the entire page to the login screen? (As opposed to retu...

How do I have multiple close buttons with a CollapsiblePanelExtender?

I have an asp.net ajax CollapsiblePanelExtender control on my page. The way this control is designed, you can specify one control to open the panel and another control to close it: <ajaxToolkit:CollapsiblePanelExtender ID="cpe" runat="Server" TargetControlID="panelStuff" ExpandControlID="butToggle" CollapseControlID="butToggle" Coll...

RegEx Help

I'm using JSON for a web application I'm developing. But for various reasons I need to create "objects" that are already defined on the client script based on the JSON response of a service call. For this I would like to use a regex expression in order to insert the "new" statements into the JSON response. function Customer(cust) { ...

asp mvc Ajax.BeginForm return View or value, confused on return types.

If the the user is not using javascript, I will refresh the view with a RedirectToAction after an IsAjaxRequest check. This works when I have a user contrl in the page and return partial view. BUt when I just want to return a value, say int, and also still want to use RedirectToAction when not an ajax request, how do i set up the metho...