asp.net-ajax

where do we use proxy script manager

where do we use proxy script manager ...

Invalid JSON primitive: .

Hi , I have a page which contains a user control say UserControl1 this User control contains another user control say UserControl2 and also this User control contains another user control UserControl3 .I nned to display a modal pop up on click of button (Server side) I am able to get the pop up which is also another user control . Prob...

ASP.NET MVC returning ContentResult using Ajax form - how to preserve whitespace?

In my application users can enter commands that are executed on the server. The results are added to a session object. I then stuff the session object into ViewData and add it to a textarea. When done with a standard HTML form whitespace is preserved. However, when I swap this out for an ajax form (Ajax.BeginForm) and return the result...

TinyMCE with AJAX (Update Panel) never has a value.

I wanted to use a Rich Text Editor for a text area inside an update panel. I found this post: http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors via this question: http://stackoverflow.com/questions/1207382/need-asp-net-mvc-rich-text-editor Decided to go with TinyMCE as I used it before in non AJAX s...

how can we prevent .exe type file upload in a website?

suppose we have a example.exe file. we first put that file in a new folder and then zip that folder with any zipping software, Can we prevent that zipped folder upload in a website???? how can we do that??????????? ...

Only one instance of a scriptmanager can exist on a page

Hi, I design an ASP.NET web usercontrol and with a maskeditor and scriptmanager, I always get an object reference not set to an instance of an object exception at runtime. Stacktrace is: [InvalidOperationException: Only one instance of a ScriptManager can be added to the page.] System.Web.UI.ScriptManager.OnInit(EventArgs e) +38461...

How to check if client script is already registered during a partial postback

Below is the code I've currently implemented. if (!Page.ClientScript.IsStartupScriptRegistered(Page.GetType(), scriptKey)) { ScriptManager scriptManager = ScriptManager.GetCurrent(page); if (scriptManager != null && scriptManager.IsInAsyncPostBack) { //if a MS AJAX request, use the Scriptmanager class ScriptManager.Registe...

Invalid length for a Base-64 char array.

I'm getting the following error in my ASP.net web page: Invalid length for a Base-64 char array. This happens when a user activates an ajax request before the previous request completes. How can I prevent this error from occurring? edit: here's the stack trace. Because the error doesn't appear to be happening in my own code, I'm not...

ASP.NET gridview control in side update panel has a problem

Greetings, I have gridview with SelectedIndexChanged event. when I click on a record in gridview it should call the SelectedIndexChanged event and do some operations. SelectedIndexChanged event is working OK, but when I put the gridview inside ajax updatepanle SelectedIndexChanged event will not response even if I add AsyncPostBack...

Setting left/top position not working in IE

Hello, In a custom ASP.NET AJAX control, i have this to do some repositioning. var dims = Sys.UI.DomElement.getBounds(control); this.get_element().style.position = "absolute"; //Sys.UI.DomElement.setLocation(this.get_element(), dims.x, (dims.y + dims.height)); this.get_element().style.left = dims.x; this.get_element().style.top = (dim...

What happened to MS AJAX Library 4.0

I started to use the ms ajax 4.0 client library during the beta stages(the client template bits) and since I have upgraded to vs 2010 rtm I wanted to update my ajax code as well but I can't find anything about the library in the official rtm bits. Has it been completely replaced by jquery? ...

Help me understand AsynchFileUpload

I have used YUI's(2.0) file upload feature to upload file asynchronously which work using IFrame technique. There is also SWF/Flash based solutions available. Now i have come across ASP.NET Ajax control AsynchFileUpload now this is something new to me. I tried to find more information to find more inputs on this but probably missed or f...

How can I fix my ASP.NET AJAX problem when I navigate away from the page and back?

I'm developing an ASP.NET 3.5 application which uses AJAX via the UpdatePanel control. I'm also using History Points to manage the browser back-button functionality. This all works fine until I want to navigate away from the page and back. Within the page I'm clicking on a standard hyperlink which opens another page in my applicatio...

How can I test pages with web services when only Cassini is available (no IIS allowed)?

I'm developing a web site in a high-security environment. For example, we use CAC cards to authenticate users over SSL. The site is a mix of VB.NET and C# on .NET 3.5 with some AJAX. The AJAX parts are now calling web services for things like Cascading Drop Down Lists. We've been running VS2008 configured on our local PCs to use IIS ...

Masterpage + Iframe funcionality?

We implemented masterpages replacing iframes in order to have a clearer way to design. The problem is that in exchange we lost the iframes benefit of partial rendering when redirecting between pages... We use update panels(ajax .net) in both designs so the only problem remains in redirections... ...

'Caching' a large table in ASP.NET

I understand that each page refresh, especially in 'AjaxLand', causes my back-end/code-behind class to be called from scratch... This is a problem because my class (which is a member object in System.Web.UI.Page) contains A LOT of data that it sources from a database. So now every page refresh in AjaxLand is causing me to making large ba...

ajax modalpopupextender thumbnail viewer

Hi there, I have a ajax:accordion in asp.net page.user can add images inside the accordion,I keep the path in sql server and save the actual image in web server physical address. what I need to have is to show the thubmnail image of actual image in accordion,and when user click use a ModapopupExtender to show the actual image with prog...

ASP.NET MVC: Ajax.Actionlink Does not work with parameters

<%= Ajax.ActionLink("DrillDown", "EventOverzichtAjax", new { GroepID = Model.GroepID.ToString(), groepType = Model.GroepType.ToString(), manager = Model.isManager }, ...

Get selected date from calendarextender

Hi, I have a textbox extended with the calendar extender in ASP.NET Ajax. If I get the selected date of the calendar, the variable is null, and the text of the textbox always defaults to the value I specified (Default) for when the page loads. How can I get the selected date when I change it? I need this for the button click event hand...

Scroll to top of page after ASP.Net Ajax Async-Postback without JQuery

I need to scroll to the top of the page after an Async Postback in an update panel. I've tried a couple of methods, and while they all scroll to the top of the page, they all get "overriden" by ASP.Net Ajax which returns the page to where it was when the postback occurs. I have already set MaintainScrollPositionOnPostBack="false" in th...