asp.net-ajax

Ajax UpdatePanelAnimationExtender only works on first use

I have an asp.net ajax updatePanelAnimationExtender that is used to fade a save confirmation message, which looks like this: <ajaxToolkit:UpdatePanelAnimationExtender ID="UpdatePanelAnimationExtender2" runat="server" TargetControlID="uppExp"> <Animations> <OnUpdated> <Sequence> ...

How do you remove the space inserted automatically in Ajax control toolkit tab panel control

The Ajax control toolkit tab panel automatically inserts a space by all four corners of the body. For example, go to http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/Tabs/Tabs.aspx and look at the TabPanel on the page. The is a space before "Signature:" and "Bio:" labels. How can I set the space-width to 0px; in the tabPanel body? ...

How to detect if Asp.Net form is valid

Hi, I have a form which is in an updatePanel and I have a span with hidden loading image, which I want to show when user clicks to submit button but I first need to check if page is valid on client side. Also I'm making loading span visible with jQuery. Here is my code: <html> <head> <script src="http://ajax.googleapis.com/ajax/libs...

Call controller method inside javascript function

Opah! Is there any way I can call a method in the controller through a javascript code? I am wanting to destroy a Session to leave a specific page. Thanks! ...

How do I force full post-back from a button within an UpdatePanel?

Any help will be appreciaded. ...

Increasing the width of the autocomplete extender list

I have an ASP.NET AJAX autocomplete extender with CompletionListCssClass=autocomplete_completionListElement : .autocomplete_completionListElement { width:500px; margin : 0px!important; background-color : inherit; color : windowtext; border : buttonshadow; border-width : 1px; border-style : solid; over...

Webservice Connection Refused

I have developed a web app using a webservice. Everything works fine in the development environment. I have moved the webservice to the production server in a test folder behind my main website. I can browse to the published service localy on the production server and i can access the remote service from my development machine. If I run...

Capture reload/endrequest event after server redirect to download file

Inside a webpage I have an Excel download button, which redirects to a webpage that serves the requested Excel file via the application/ms-excel MIME type, which usually results in a file download in the browser. In the webpage, I have the following jQuery code: $(document).ready(function () { $(".div-export .button").click(functio...

ASP.NET MVC jQuery autocomplete with url.action helper in a script included in a page.

I have been building my first ASP.NET MVC web app. I have been using the jQuery autocomplete widget in a number of places like this: <head> $("#model").autocomplete({ source: '<%= Url.Action("Model", "AutoComplete") %>' }); </head> The thing is I have this jQuery code in a number of different places through my web app. So i though...

ASP .NET AJAX UI stuff

Hi, I had been working on server side(c#) for a couple of years. But now I have been put on the UI stuff. I know ASP.NET in detail. But the landscape in UI stuff has changed dramatically from last 2 years. Everyone talks about jquery, json, asp .net ajax extender. I don't know how to cope up with this. Any thoughts on how I could come u...

removing history points from browser

can we remove history points created in web browser. or is it possible not add history point when a sample link "some link" is clicked and url in browser changed ...

Efficiency Question for an Ajax App

Hi, Currently I am dealing with a web application which uses a txt file as a database for testing for now. But we will connect it to a server later on. My question is, if there is a more efficient way to get my objects than the way I am using now. During the page_init I am getting all my objects into a Collection as List-<-TravelP->-,...

order of file download in MS-Ajax (asp.net-ajax )

in Ms-Ajax suppose iam downloading 3 files , no dependencies have been defined b/w them Sys.loadScripts(['file1.js',file2.js',file3.js']); a> in which order these files will be loaded?? b> in which order these files will be made available to requesting page?? ...

Validation with AJAX and jquery

Greetings, Is there a different between using Ajax and jquery to do input valuation with ASP.NET? For example,I want to input mask. I can use ajax maskededitextender or jquery masked input plug in to do the mask. is there a different between using any one of these two?? ...

Http Error 12031 when calling a Web Service Method in Web Farm Environment

Hi All, Currently we have an ASP.NET application running on 3 web servers (in a webfarm). We have an ASMX Webservice with ScriptService enabled, and we used it with ScriptManager in some of our ASPX pages and invoked some methods using javascript (with Microsoft Ajax Framework). Our problem is that when more than 1 servers are running...

service not defined when precompiling a web app with AJAX-enabled WCF Service

I created a web application in which one .aspx page calls an AJAX-enabled WCF service (created with Visual Studio 2008 Add New Item -> AJAX-enabled WCF Service). when I test the application in Visual Studio, it works and the page can call the service from Javascript but when I "publish" (code precompilation using Visual Studio) it to th...

Add client-side events to ASP.Net custom control at runtime

I'm building an ASP.net custom control that implements IScriptControl. I would like other users of my control to be able to assign client-side event handlers to the control. Unfortunately the JS generated by IScriptControl is always injected at the very bottom of the rendered page (see below), so any attempt to assign an event handler in...

ASP.NET MVC: Can I use the MicrosoftMvcValidation.js functions to make an <input type=file> mandatory?

I have a form with a file-upload button plus some other entry fields and a submit button. I want the submit button to be enabled only if a file has been selected. I could probably do this with JQuery, but I figured that since I'm already including the MicrosoftMvcValidation.js scripts there might be something in there that I could use? A...

Insert dependencies dynamically in View (Javascript and CSS Files)

Friends, I am willing to follow the rules of the W3C where it is recommended that javascript and CSS files should be in individual files and not within the page. Good, following this rule, and not wanting to overload the master page, I would like to embed the dependencies dynamically. So how could I insert the libraries dynamically? I t...

set calendar extender format

Does anyone know if there is a way of specifying the Format of a calendar extender with a dynamic value from the aspx? I tried this but it doesnt seem to set the format at all. Does anyone see anything wrong with it: <asp:TextBox ID="tbStartDate" runat="server" /> <act:CalendarExtender ID="clndrStartDate" PopupPosition="Right" r...