asp.net-ajax

Base class for UserControls that automatically provides an update panel?

Let's say I am building a bunch of UserControls in an ASP.Net Web application, and that all those user controls inherit from a custom base class that I have created, which in turn inherits from System.Web.UI.UserControl. Now let's say that I (via my custom base class) want the contents of each user control to be automatically wrapped in...

image using .ashx

hi i am using .ashx to retrive image and i place the the image inside the ajax update panel it retrive the image when a new image is added to the form but when we change the image it is not updating the image it dont even call the .ashx file but when i refresh the browser it works properly ...

scriptmanager in masterpage and updatepanel in usercontrol. Partial postback not happening

hi, i have a master page with following scriptmanager tag: <asp:ScriptManager ID="scriptManger" EnablePartialRendering="true" runat="server" > <Scripts> <asp:ScriptReference Path="~/common/js/jquery-1.3.2.js" /> <asp:ScriptReference Path="~/common/js/validation.js" /> </Scripts> </asp:ScriptManager> My aspx page is : <%@ Pa...

JSON stringify error on Silverlight event argument

I have the following Silverlight code: [ScriptableType] public partial class Page : UserControl { [ScriptableMember] public event EventHandler<UploadChangedEventArgs> OnFileProgressChanged; private void FileProgressChanged_Click(object sender,RoutedEventArgs e) { // test reasons only OnFileProgressChanged(null...

Most Commonly used Ajax Controls

Hi All, I am learning AJAX, and so I wanted to know what are the most commonly used asp.net ajax controls. EDIT: Other than Update Panel, Scriptmanager, Timer. ...

Possible to replicate jQuery's separation of JS events from inline attributes in ASP.NET AJAX?

Can something like this, borrowed from jQuery, be done without jQuery and with ASP.NET AJAX only? <a href="nojslink.html" class="clickMe">Click Me</a> And then in an external JS file: $('a.clickMe').click(function(){ alert('Thanks for clicking'); }); ...

asp.net focus lost when scrolling

I have an asp.net webapp with a small bug where anytime you click the page scrollbar the focus gets reset to the first control. I'm seeing this problem in IE 7 and 8, only in my asp.net app, not on any regular webpage (and not in firefox). It seems that its not just a browser lacking-features issue or an existing IE bug (as it behaves ...

ASP.NET MVC AJAX Sys is undefined error

I am getting a "Microsoft JScript runtime error: 'Sys' is undefined" error on one of my pages in an MVC application when I attempt an AJAX call. The AJAX call is made from a partial view which is embedded in more than one page. It works fine on all of the pages except one. I have read posts pointing to the web.config file settings and...

Ajax error on IIS7

Hi, I am facing very unusual issue. Previously our application was running on IIS 6 but now we swithed ti IIS 7. Now on IIS 7, we get following error where ever we redirect to another page using Response.Reditect(url). Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common ...

Cannot reset fields after a postback

Hi, i'm using a javascript function to reset some fields in my .aspx webpage.It does work when the page is loaded the first time but after a postback it doesn't work at all. Can someone please give me an explanation ? Thanx ...

Exception Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. on IIS 7.0

I am working on a already deployed web application on IIS version 6.0. I am using AJAX and there are some events on few pages where, async postback redirects to another page. It is working fine on server running on IIS 6.0. Now, the issue is, We are shifting our web application to IIS 7.0 and I am getting this error on every AJAX call w...

Is there any reason why MicrosoftAjax.js is not minified?

I compress my own JS using YuiCompressor, but is there any reason why MicrosoftAjax.js not minified? Or is there some setting to say run the compressed version of it (if there is a compressed version). Or do I need to decompile it and minify the script resource myself? ...

jQuery AJAX slow in Firefox, fast in IE

I'm using jQuery to post to an ASP .NET Web Service to implement a custom auto-complete function. The code works great, except it's slow in FireFox (can't get it to go faster than 1 second). IE is blazing fast - works great. I watch the post in Firefox using Firebug. Here's the service code: <ScriptService(), _ WebService(Namespace:="h...

"Invalid Character in Base-64 String" using ASP.NET and C#

I'm having this problem on posting a page. The page have a jquery ajax load called by the onchange of a dropdownlist, if I disable the onchange, the post works. "The state information is invalid for this page and might be corrupted" [FormatException: Invalid character in a Base-64 string.] System.Convert.FromBase64String(String s) +...

Suggestions on a very complex ASP.Net input form design?

I am just starting on a complex data entry form and thought I'd ask for input from anyone that may have gone down a similar road before. The form is going to represent a cost estimate (plus additional information) for a project consisting of multiple tasks. All TaskTypes are pre-defined in metadata for a ProjectType, and can consist of...

Dynamics CRM 4.0, using AJAX on custom ASPX pages

Hi I have a custom ASPX page, that I deployed in the ISV folder. The page contains a ScriptManager control. In order for the page to load, I need to include the AJAX configuration settings somewhere. For a custom website, I can put the configuration inside web.config file. But with Dynamics CRM, the changes to web.config are not supp...

Disable ScriptManager on certain pages

Hi I have a script manager on my Master page. There are one or 2 content pages that I need to remove the webresourse.axd from, as it is causing issues with other javascript on the page How can I disable the script manager on these pages? The ScriptManager object doesnt appear to have any properties that would seem like they would do t...

ASP.NET AJAX Modal Popup Extender Responding to Server Code on Timer

I have a modal popup extender tied to a asp:panel control that I want to show when the timer on an asp:updatepanel reloads executes the tick method. The tick method calls another method that checks for specific conditions and if all the conditions are met, I call: ClientScript.RegisterClientScriptBlock(this.GetType(), "key", "$find('mo...

Dynamically change ajax toolkit ValidatorCalloutExtender

Hey everyone, I'm using the ajax toolkit's ValidatorCalloutExtender to display error messages on a textbox. The ValidatorCalloutExtender is extending on a RegularExpressionValidator that is validating the textbox. The problem I am having is that I need to dynamically change the ValidationExpression and ErrorMessage depending on what ...

How do I temporarily convert an ASP.NET Ajax form to not use partial page updates?

I need the ability to temporarily turn off the partial page update behavior for an ASP.NET Ajax / UpdatePanel based page. (The reason is to circumvent the issue where IE blocks "automatic file downloads" for downloads generated as a result of this postback, but I don't want to distract from my original question) I looked at the client ...