asp.net-ajax

check if javascript is enabled and display a message if it is not using an asp custom control

Hi, I'm using Javascript, ASP.net and c#. I want to write a custom control to check if javascript is enabled on the browser and display a message. I'm using the following approach: -the control shows a message "Javascript disable" in a tag -the control adds in the section a javascript section with this line: window.onload = function()...

In an ASP control how can I get the text in a <Contentemplate> tag in the control code?

Hi, In my page ASP.net page I'm using a custom control like this: <MyNamespace:MyControl runat="server" ID="myControl"> <contenttemplate> This is the text I want to use </contenttemplate> </MyNamespace:MyControl> In the c# code of the control how can I obtain a string containing the text between the <contentemplate> tag (eg. "This is ...

Refresh PartialView via jQuery following Ajax Post

Does anyone have the special sauce for following a jQuery Form ajax post to a controller method forcing a refresh to a PartialView existing on the same page? Does that involve bringing partial HTML back and appending or can I simply somehow cause that PartialView to refresh magically? Thanks in advance. Doug Here is my RenderPartial w...

My ascx control inside a container update panel does a full refresh when one of the controls inside it is clicked

My ascx control inside a container update panel does a full page refresh when one of the controls inside it is clicked. Has anyone faced this behavior before? Thanks. ...

Javascript won't recognize web service

Hi. I tried to create this by following the video at http://www.asp.net/learn/videos/video-7026.aspx where Joe Stagner created a simple web service that is called with Ajax. In the Button1_onclick() handler, javascript can't resolve the object "WebService1". Do you see s anything wrong? The exact error is "'WebService1' is undefined" i...

How would you code Gmail's "Labels" text searchable checkbox list selection drop down control in ASP.NET/Ajax/JQuery?

I imagine having to interact with Gmail is a necessity for most programmers. Gmail's control for associating labels to emails is monumentally effective UI behavior. For those unfamiliar with the behavior, it's basically a button-initiated pop up panel (drop down UI effect) containing: 1) a text entry box 2) scrollable multi-checkbox li...

Creating an AJAX toggle-image in ASP.NET MVC

So I wanted to create a toggle-button for a table, where I can make an async call to update a database record (enable/disable). After some trial and error, I have managed to get it working - but it feels like there must be a more elegant way. I don't like repeating my image-tag in my controller, obviously... How can I avoid that in ...

Sending progress message from Server to Client using Ajax.

I am using UpdatePanel to trigger a button click event, which saves some 100+ files on a designated folder. I want the server to update the client about the status and count of files being saved. protected void btnSave_Click(...){ var filesToSave = GetFilesToSave(); foreach(var fileToSave in filesToSave){ SaveProcessedFile(f...

jquery .ajax, google visualisation and problems getting them to work together

Hi, I'm trying to use jquery's .ajax(), google visualisation annotated timeline and one of the google datatable helpers together. Ultimately what i'm after is having a link on a page and when the user clicks it data is loaded asynchronously via jquery.ajax(), returned as google visualisation compliant JSON and passed to the charting API...

GWT and .NET

Hi, How can I use GWT together with Visual Studio to create an ASP.NET website? If it is possible. Thanks ...

Bug in ASp.NET Ajax Rating Control

Im using ASP.NET Ajax Rating control in my current project and i get this strange behaviour: When somoene clicks on the control to rate some content, rating is properly executed but browser sroll position jumps to the top of the browser window! This is very user un-friendly. Is there a fix for this bug? ...

Umbraco v4 vs Cute AJAX Uploader Control

I have a custom user control that i use in a page in Umbraco CMS... since upgrading to version 4, it seems this user control wont work any longer. The user control contains an ajax uploader control (support request post here: http://cutesoft.net/forums/53732/ShowThread.aspx#53732), which allows users to upload images, then displays th...

HELP! Get value of dynamic control radio button!

Hi guys, I am looking into create a dynamic survey as posted in Get User Input From Dynamic Controls but with some different environment. Below is what i am trying to do: First when the user click the button, it will populate a dynamic table with radio button for the survey questionnaire inside a placeholder. However, I was unable to ...

LinkButton.Command in user control (ascx) will not call specified method

I have the following code: public partial class queryTerm : System.Web.UI.UserControl { private static readonly List<string> BooleanOperators = new List<string> { ".", "AND", "AND NOT", "OR", "OR NOT" }; protected void BuildBoolPanel() { var parensOpen = _labelBoolean.Text; foreach...

c# updatepanel with timer page_load

I'm experimenting with some AJAX now. I have a custom control which appears on my masterpage in which there is an update panel and a timer. The timer fires and the panel updates and everything is dandy. Except that there are some operations that I don't want it to perform on every refresh. It seems like the entire page lifecycle happ...

Using an ASP RadioButton to fire JQuery slidepanel functionality

I have a web application. It is separated into three sections, each with its own asp update panel. I am using the $(.Selector).slideToggle('slow') jquery method for one of these sections to hide/show the section if the use clicks an HTML link...Another section of the application contains two ASP radio buttons. I need to trigger the cl...

How can I get an ASP.NET Session variable into a javascript file?

I am refactoring a legacy web app. This app has a is using the onload event inside the body tag (On the Master page) to run this javascript script. Note this script tag is after the form element in the doc. I know the syntax looks hideous (or Visual Studio at least tells it is by the squiggles), but I'll be darned, the thing DOES indeed ...

ModalPopupExtender OnShow event?

Using the asp.net AjaxControlToolkit ModalPopupExtender is there a way listen to an event when the TargetControlID is clicked and the Modal becomes visible? something like an OnShow or an OnClose method which can be run on the server Thanks ...

Why doesn't ScriptReference override Equals?

I was wondering if there is a good reason for ScriptReference not to override Equals. It would certainly make life in ScriptReferenceCollections easier (e.g. Contains), would it not? ...

ASP.NET AJAX Page Methods Are Inconsistent...

Given the following javascript code: function ValidateFlagAsUrgent() { selectedValuesList = document.getElementById('<%= _searchResultsUserControlUserControl.SelectedValuesHiddenFieldClientID %>').value; $.ajax({ type: 'POST', url: window.location.href + '/' + 'AreAnyOfTheSelectedTasksInMyProjects', data: '{"selectedTasks"...