asp.net-ajax

.net 2.0 ajax tree

Right, so I have to build a web app in asp.net 2.0 winforms. Id much much much prefer 3.5 MVC. because its cleaner, leaner, more modern and makes more sense to me. I know 3.5 MVC well, and have come from a Rails background, so this webforms stuff looks kinda gross to me :P. Anyway, I need an AJAX-backed tree control, one that loads the ...

Ajax form submitting reloading page

HI have js script which calls my aspx JS new Ajax.Updater('display', '/myForm.aspx?lat=' + lat + '&lng=' + lng + '&zoom=' + zoom, { method: 'get' }); myForm.aspx loads the form correctly. However when i submit the form it loads a new page. How do stop the page reload?? myForm.aspx <form id="form1" runat="server" > <asp:Scr...

Display Content Result Text from AJAX Request

I have an Ajax.Action link hooked up to a post method in my controller class that returns a ContentResult. I'm able to make the request and get the response just fine when looking in a tool like firebug, but I'm having problems trying to actually access or do anything with the response text. Basically, I have something like this in my ...

Microsoft AJAX partial post back, is using webservice best pracitce ?

hi, i am really confused here, as i read many places, Update panel makes a full post back, and i have somehow understood that web serivces are much much better for performance, so if i am developing my site should i user web services or normal functions like the following protected void Page_Load(object sender, EventArgs e) { GetD...

Calling a modal popup with TargetControl in another UpdatePanel in ASP.NET

Hi, I'm trying to call a Modal Popup, but the TargetControl is in a different UpdatePanel than where the ModalPopupExtender resides. Here's the code: <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton> <...

ASP.Net AJAX isn't creating Javascript type

I'm using ASP.Net AJAX and I created a web service in my application. The service has one method (AddWatchedFolder) and it takes a Name.Space.WatchedFolder as the only parameter. The problem is, ASP.Net AJAX isn't generating a javascript type for Name.Space.WatchedFolder even though I've added the service to a ScriptManager. I am able t...

Internet Explorer's Operation Aborted and Latency Issue

If you don't know what the operation aborted error is, here's a Microsoft KB Article about it, http://support.microsoft.com/default.aspx/kb/927917 . There's also tonnes of posts about it but the simple answer for it's occurrence is this; the error only occurs if you try to manipulate a DOM element via JavaScript before the element you ar...

UpdatePanel in repeater overwrites controls underneath it

I have a Repeater with an ASP.NET AJAX 1.0 UpdatePanel inside it. There are buttons outside of the UpdatePanel but still in the repeater. When a section inside the UpdatePanel appears (it's a hidden Panel control that appears when user answers a question a certain way), the buttons at the bottom disappear. Here is an illustration. [RE...

Javascript for Google Chrome detecting & Enable javascript in Google Chrome

hi all, My application's JavaScript is working on Firefox and IE but it is not working in Google Chrome. Is it problem of enable javascript in Google chrome? or I must put any code in javascript for getting XMLHttpRequest Object of Google chrome browser. ...

jquery supports function pageload() and $().ready() ?

Hi, Does jquery support both function pageload() and $().ready() ? Or is pageload() for ajax.net ? ...

Submit button doesn't work for ajax form rendered in dynamic partial view

I have some jQuery that loads a partial view and inserts it into the DOM. So far, all good. But now I've made some changes to the rendered user control to include an Ajax form. However, the submit button for this form doesn't appear to trigger the Ajax call. From what I can tell, it's not doing anything at all. My breakpoints in the con...

ASP.NET 3.5 deployment issue under IIS5

Having gone through the pain of converting an ASP.NET website project to a web application project, I am now have trouble deploying this to our live web server under IIS5. Under my local development machine (running IIS7) the deployment is working fine. I publish the web application project in Visual Studio 2008 to a folder on my local ...

Innovastudio in formview in an updatePanel

I have a webform that has two UpdatePanels, one with a GridView and the other a FormView (Master / Detail). When a record is seleceted from the GridView the FormView displays the detail of the record in Edit mode. One of the asp:TextBox inside the FormView should become a InnovaStudio WYSIWYG editor. The problem I have is when the Form...

ASP.NET AJAX - updates in panel resend all page validation script

I am using a RadGrid from Telerik with Ajax enabled. Whenever an Ajax call happens, the page responds with 56 KB of JavaScript validators in addition to the new grid data (in addition to 40k of viewstate - argh). Is there any workaround for this? ...

How do I prevent resetting Session timeout when UpdatePanel's content is refreshed by a Timer event?

We have several pages in our ASP.net Ajax application which auto refresh the UpdatePanels contents based on a timer event but the problem is that we have a requirement to timeout the web session and the auto refresh is preventing that. Is there a way to prevent the timer postback event from modifying the web session or any other alterna...

JQuery and ASP.NET AJAX differences in MVC

Hi Looking at the new ASP.NET MVC framework it comes with javascript files for both ASP.NET AJAX and JQuery. Can someone explain what ASP.NET AJAX gives me that JQuery doesn't? Do I need to use both and can you give me examples where I would/would not need to use both? I've used JQuery on plenty of non ASP.NET projects (PHP and proto...

Can asp.net ajax controls be used as pure client side controls?

So, my question is, can any of the ASP.NET Ajax controls from the Control Toolkit be used without their server-side controls and without an ASP.NET Ajax ScriptManager. For reference, I am asking in the context of an ASP.NET MVC application. Clearly, some of the controls don't make sense in this model because they do postbacks to the s...

How to know the size of callbacks in ASP.NET AJAX?

Hi, I want to know the size of the callbacks that ASP.NET AJAX are doing. I'm using the ASP.NET Control Toolkit too. How can I do that? ...

Server-side ASP.Net Ajax exception handling

Hi, I am using ASP.net's AJAX framework and I am trying to do some exception logging on the javascript-called webservice. Looking through the web, I find some people handling them client-side and sending them back to the server. I'd prefer not doing that since it relies on an other server call (if it failed the first time, sending an o...

Ajax.BeginForm inside Html.BeginForm

I have a view that is used for editing stuff, say Orders. Orders have line items that can be added arbitrarily. So a main view and nested partialviews. Each partial should have an ajax form for tweaking quantities of each line item or whatever. Thus: Html.BeginForm() {%> Ship to: blah blah blah <% ...