Graceful Degradation AJAX

AJAX can improve site's appeal and give you chance to stretch your dollar a little further by serving more requests in same bandwidth. AJAX needs JavaScript and there are times when either user of your website has disabled JavaScript or have a device that doesn't support JavaScript. Although number of users with no JavaScript support are less but that doesn't mean we don't need their business.

Today, we will look at an example of Graceful Degradation of our web application which supports both AJAX and Non-AJAX usages.

Note: I am using ASP.NET MVC 3 but you can use any server side technology but it can be utilized with any server side technology with some minor changes. [More]

Tags: , , , ,

AJAX | jQuery | MVC

Custom Action Method for Export to Excel

Today we will look at how to build Export to Excel functionality by deriving new type from ActionResult class.

To get started, lets setup following:

An ASP.NET MVC project
New controller with name "ExcelController.cs" inside controller folder
ConnectionString to any database (in this one I am using Products table of Adventure works database) [More]

Tags: , , ,

ASP.NET | MVC

File upload and view using ASP.NET MVC2

Today we will see how to build file upload functionality in MVC2 and then display uploaded files in a HTML table. [More]

Tags: , , ,

ASP.NET | MVC

Custom Paging with ASPNET MVC2 and HTML Table

ASP.NET MVC provide many features to generate clean HTML that is search engine friendly and look less cluttered then Web forms. There is no data grid control present in the framework but it helps you build in every possible way to create one on your own with basic HTML table.

Today, we will see how to create Paging along with table footer to navigate through the pages. [More]

Tags: , , ,

ASP.NET | LINQ | MVC

Simple Application Using WCF and Database

In this article I'm going to explain how we can write a WCF service and invoke it on to the client side.

I am making a simple application where a WCF service returns the information about leaders which are stored in database.

Note: In this demonstration I am only using default settings of WCF , many other important aspects of WCF like instance management, concurrency management, transaction etc… that are used extensively in real live projects will be demonstrated in subsequent articles . Here we will see how we can write a very basic WCF service and invoke it. [More]

Animated Charts with FusionCharts and ASP.NET

Visualizing data in form of colorful graphs makes data look interesting and easy to comprehend and if you animate then it's like icing on the cake.

FusionCharts is the name that comes in mind when we talk about cool animated chart and graphs. FusionCharts library has been in market for years and has been very successful in this area. There are many big companies who use their product but along with paid product FusionCharts also provide a free open source version of the library it's known as FusionCharts Free. You can use this library for both personal and commercial use. [More]

Tags: , , ,

ASP.NET | XML

Weather Information from Google Weather using ASP.NET and LINQ to XML

Today, we will take advantage of Google Weather API to retrieve weather information for a given zip code and show it on our ASP.NET page. Google weather (http://www.google.com/ig/api?weather=96715) API return data in XML format and we will parse this data on our page using LINQ to XML and traverse through nodes to retrieve the returned information. This is a very basic example but once we know how to fetch one node information rest all is a piece of cake. [More]

Tags: , , , ,

ASP.NET | LINQ | XML

Select, Update, Highlight using JSON, ASPNET WebService and jQuery

jQuery AJAX can improve application use and response drastically for various reasons as most of the time server is dealing with small segment of the page and producing results just for that segment, this way server can accept more requests. Select, insert, update are some of the very common tasks a data driven web application performs. With the use of AJAX these operations become more easy to handle.

Today we will look at how to bring data on page using JSON and then update it using JSON, all this with the help of ASP.NET web services and jQuery. [More]

Tags: , , , , ,

AJAX | ASP.NET | jQuery

Change Password using jQuery AJAX and ASP.NET web service

Few days ago, we received a request via comment on one of the post as how to change password on using AJAX so today we will see how we can accomplish this using jQuery AJAX to make a call to ASP.NET web service to change user's old password leveraging ASP.NET's membership API. [More]

Tags: , , , ,

AJAX | ASP.NET | jQuery

Reset and Email Forgotten Password Programmatically

With ASP.NET membership API managing website security has become easy to implement yet it is powerful to support enterprise level authentication/authorization for any application.

Today we will leverage password reset capability of membership API to reset registered user's password by generating random password and sending it to his email which is registered with the account. [More]

Tags: , ,

ASP.NET | Membership