This MVC stuff is fun but every step along the way theres another little hurdle.
I'm just using Request.IsAjaxRequest for the first time today in conjunction with Microsoft's AJAX library. I am NOT yet using jQuery (I had to mention that since I just hyperlinked to a question about jQuery!).
Unfortunately I installed RC1 refresh BEFORE...
Hi,
I am unable to implement PageMethods feature of the scriptmanager in a usercontrol, is a way in which this can be done?
...
So I have a UserControl with some cascading DropDownLists on it. Selecting from list 1 enables list 2, which in turn enables list 3. Once you've made a selection in all three lists, you can move to the next page.
The DropDownLists are all inside an UpdatePanel. But the "Next Page" button is outside the UpdatePanel. That button shoul...
I want to use Thickbox (or one of the varieties) on our site to display information messages returned from the server. Examples include warning messages returned from biz logic, etc.
The first place to need this functionality will be the navigation buttons on an asp:wizard control. When the user tries to move forward, we validate thei...
I placed the scritmanager to masterpage. "scriptmanager1"
There is an updatepanel in the masterpage shows total. "updatepanel1"
In the contentpage I have nested listviews. the "listview2" inside the "listview1" has itemtemplate with a linkbutton called "addtoTotal"
I want to update the updatepanel1 inside the masterpage when user clic...
I'm using a ModalPopupExtender to show a modal popup window with a bunch of input controls and a couple of validators with EnableClientScript set to true.
The issue I'm facing is, that the client-side validations get executed right after the modal popup is shown (via client-side code, not from server).
Is there a way to prevent this?
...
I have been learning how to create dynamic images and dynamic stylesheets using ASP.NET 3.5. My reasoning behind this is I have a web page that I want to change the header background image (set with css) automatically. Check below for my test script:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits=...
I have a DropDownList, a Button and a ModalPopupExtender.
When the user clicks the button, depending on the value they've selected, I'd like to either let the button cause a normal postback, or trigger a ModalPopupExtender (and cancel the Buttons postback).
I've achieved this by using ModalPopupExtender.Show() and ModalPopupExtender.En...
Has anyone successfully used the Microsoft Ajax libraries (Specifically Sys.Services.RoleService) with an ASP.NET MVC application?
I can't figure out how to go about using the RoleService without using the ScriptManager and a server-side control (which seems to throw off my other Ajax calls).
...
Hi all,
I've given up trying to find a solution to this.
My page has a ModalPopupExtender that shows an asp:Panel with my custom WebControl inside it.
My custom WebControl contains only a LinkButton and is inside an UpdatePanel.
The problem is that, when clicked, the LinkButton it is reloading the entire page.
With a regular input Butto...
I'm currently using the CompositeScript feature of System.Web.Extensions in order to combine my JavaScript files to reduce download time. However, by including any script manager, the MicrosoftAjax JavaScript code is included in my pages. I do not want this to happen as it adds a lot of unneeded code and it complicates event handling.
...
I am using the ASP.NET AJAX ModalPopupExtender on a page. The popup contains details of one or more customer orders that need to be printed out. Each order needs to be on a separate page.
I should be able to use the CSS page-break-after style, but this does not work in this scenario as the ModalPopupExtender causes the containing div to...
Right now I have a page where unfortunately there is a mix of update panels and calls to webservice web/script methods from javascript.
I have an update progress control which shows a spinner for update panel activity. But when I do webservice calls it isn't displayed.
How would you recommend I solve this usability issue since the use...
I've a page that has a series of web controls. One of these is a textbox with AutoPostBack turned off.
The way the page operates is that a button is clicked to save the form data. This button sits outside of the updatepanel.
So when I hit the save button the partial postback happens for the dropdownlist and after this postback has comp...
I am using .Net Ajax PageMethods. I was hoping I could pass a javascript array into my method but I am getting the error: "Type 'System.Array' is not supported for deserialization of an array". Here is a simplified version of what I am doing:
Client Side Code:
function AddItemsToBatch()
{
var stuff = new Array();
stuff[0] = "one thin...
I have 3 different kinds of ajax popups that need to exist across my site. I was hoping that I could simply create a user control for each one and place the panel and modal popup extender inside each one but this doesn't seem to be working. Has anyone tried this before or do you have a recommendation as to how I can avoid duplicate code ...
I do not want to stop the user from clicking the same ajax button many times, but I want to exercise some control to prevent someone from maliciously clicking the button repeatedly which would cause repeated database requests. What is simple way to handle this on a jquery .post in asp.net mvc? If I put in a time delay, the experience cli...
Hi all,
So I did some reading of the related questions and had some interesting stuff but did not find my answer, at least did not understand the answer.
I am very new to AJAX, javascript and sclient side scripting in general.
I have been using C# asp.net for a bit and recently added some updatepanels to my side to smooth so of the us...
ASP.NET - I've managed to siginificantly reduce the number of .axd requests a page of mine is making by using the ajax ToolkitScriptManager control.
My question now is, why on earth is there SO MUCH JavaScript in those .axd files? I'm talking approx. ~1MB (un-gzipped) just to use a few Ajax controls on a page!
Is there anyway to make t...
I have setup a GridView inside an UpdatePanel. The GridView has a SELECT CommandField that is tied to Gridview1_SelectedIndexChanged method. I would like the GridView to refresh after a row is selected but it never does. I have tried several different scenarios and none seem to work.
I have set UpdateMode to "Conditional" and "Always"...