Browse by Tags
All Tags »
JavaScript (
RSS)
Client Callbacks are probably the less known (and I dare say, less loved) of all the AJAX options in ASP.NET, which also include the UpdatePanel , Page Methods and Web Services . The reason for that, I believe, is it’s relative complexity: Get a reference...
If you use resources in your web application to localize your strings on the server side, you may have also felt the need to use the same resources in JavaScript. The thing is, there wasn’t any straightforward way to do it. Until now, that is! I wrote...
OK, so let’s talk about validation. Most people are probably familiar with the out of the box validation attributes that MVC knows about, from the System.ComponentModel.DataAnnotations namespace, such as EnumDataTypeAttribute , RequiredAttribute , StringLengthAttribute...
One thing I didn’t refer on my previous post on ASP.NET MVC CRUD with AJAX was how to retrieve model validation information into the client. We want to send any model validation errors to the client in the JSON object that contains the ProductId , RowVersion...
I recently had to solve a problem: when issuing an asynchronous call by using an UpdatePanel , if the user is no longer authenticated – due possibly to long inactivity – this situation is silently ignored. What happens is, when an unauthenticated user...
This post was long due, so here it is. Prepare for a long post! Whenever you need to consume a WCF web service from a web page, you have (at least) three options: Have the ASP.NET ScriptManager generate a strongly-typed JavaScript proxy to the service...
Get it from here . Some performance improvements and also some new functionalities. See the release notes and all the API methods that were changed .
Glimmer allows you to easily create interactive elements on your web pages by harnessing the power of the jQuery library. Without having to hand-craft your JavaScript code, you can use Glimmer’s wizards to generate jQuery scripts for common interactive...
How many times did you have this in your code: var str = getSomeNumber(); //say, 1212 var num = parseInt(str); window.alert('Number is: ' + num); //Number is: 1212 Nothing special about it... or is it? It happens that JavaScript's parseInt function is...
More Posts