DiscountASP
AboutMe
About me:
Hi. My name is Farooq Kaiser and I'm a software developer from Toronto, Canada.

Email Template using C#

by Farooq Kaiser 27. January 2010 03:46
In this article, i will examined how to build template to store email data such as body and subject. The template is an XML file that will store the static text with dynamic Tags. The dynamic tags are just like variables that get replaced by the real data. Here is a sample template. ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

.NET | C# | XML

HTML based file upload/download to FTP server using HttpHandler in C#

by Farooq Kaiser 24. December 2009 05:18
In this article, i will examined how to upload/download file from HTML client to FTP server using HttpHandler in C#. This approach can be very handy for application integration. Here is our html code that will consume HttpHandlers. 1: <html xmlns="http://www.w3.... [More]

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , ,

.NET | C#

Using ODBC driver to access XLS, XLSX, TXT or CSV files.

by Farooq Kaiser 18. December 2009 13:59
In this article, i will examined how to access XLS, XLSX, TXT or CSV files. It is very easy to access these files using ODBC drivers. Here are Connection Strings Excel Connection String "Provider=Microsoft.Jet.OLEDB.4.0; data source={0}; Extended Properties=\"Exc... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

.NET | C#

Reading and Writing BLOB Data to MS SQL or Oracle Database

by Farooq Kaiser 18. December 2009 04:22
In this article, i will examine how to store and retrieve binary files such as image or PDF into MS SQL or Oracle database. Reading a File into a Byte Array 1: byte[] m_barrImg = null; 2: using (FileStream fs = new FileStream(FileName, FileMode.Open, FileAcce... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

Creating and consuming your first WCF service

by Farooq Kaiser 24. September 2009 14:57
In this article, i will examine how to create and consume a WCF service. WCF is next-generation programming platform and runtime system for building, configuring and deploying service-oriented applications. For more details please see here. Creating a WCF service I will create a stock ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

.NET | C#

Custom Sorting with Jquery UI

by Farooq Kaiser 19. September 2009 06:20
In this article, i will examine how to build custom sorting Using Jquery UI. The jQuery UI Sortable plugin makes selected elements sortable by dragging with the mouse. Please see here for more details. In my demo application i will create an XML file to store the custom settings that will hold the... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , ,

.NET | asp.net | C# | XML

The ABC of WCF

by Farooq Kaiser 16. September 2009 07:25
Microsoft's next-generation programming platform and runtime system for building, configuring and deploying service-oriented applications. It enables developers to build secure, reliable, transacted solutions that integrate across platforms and interoperate with existing investments. Most of the WCF... [More]

Currently rated 4.7 by 3 people

  • Currently 4.666667/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Localizing ASP.NET MVC

by Farooq Kaiser 6. September 2009 13:23
Localization is the process of customizing your application for a given culture and locale. The .NET framework offers the following namespaces and classes to facilitate the localization. System.Globalization (The System.Globalization namespace contains classes that define culture-related in... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

.NET | asp.net | C#

How to improve the performance of ASP.NET MVC web application

by Farooq Kaiser 30. August 2009 06:07
In this article, i will examine how you can improve the performance of an ASP.NET MVC application by taking advantage of the following components. Implementing Caching Implementing HTTP Compression Implementing JQuery UI library with Google Hosted Ajax Libraries By combining script... [More]

Currently rated 4.5 by 2 people

  • Currently 4.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , ,

.NET | asp.net | C# | Google

JQuery AJAX with ASP.Net MVC

by Farooq Kaiser 26. August 2009 15:15
The JQuery has following methods that can be used to perform Ajax requests: ajax() - Load a remote page using an HTTP request. This is jQuery's low-level AJAX implementation. load() - Load HTML from a remote file and inject it into the DOM. get()  - Load a remote page using a... [More]

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , ,

.NET | asp.net | C#

Displaying Jquery Progress using ASP.NET MVC with Ajax

by Farooq Kaiser 24. August 2009 15:57
JQuery is a lightweight JavaScript library and can be downloaded from http://www.jquery.com. The jQuery library is also included in the Scripts folder of the Visual Studio ASP.NET MVC template. You can increase the performance by using google hosted AJAX Libraries. Google hosted AJAX Libraries c... [More]

Currently rated 3.0 by 2 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

.NET | asp.net | C#

Building currency convertor using ASP.NET MVC with Ajax

by Farooq Kaiser 20. August 2009 15:58
ASP.NET AJAX enables a Web application to retrieve data from the server asynchronously and to refresh parts of the existing page. This improves the user experience by making the Web application more responsive and you to create amazing Web 2.0 applications to delight your users. In this article, I... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

.NET | asp.net | C#

Form validation with ASP.NET MVC using IDataErrorInfo Interface

by Farooq Kaiser 13. August 2009 01:36
As I already shown in my previous article Form validation with ASP.NET MVC. In this article, I will explore an alternative method of implementing validation logic. I will show you how to perform validation by using the IDataErrorInfo interface. public interface IDataErrorInfo { ... [More]

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

.NET | asp.net | C#

Entity Framework with ASP.NET MVC

by Farooq Kaiser 11. August 2009 02:54
In this article, I will explore entity framework with ASP.NET MVC. We will modify  Form validation sample that will access data layer using entity framework. We will create the following table in local database using SQL express. CREATE TABLE [dbo].[tblComment]( ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

.NET | asp.net

Named and optional parameters in C# 4.0

by Farooq Kaiser 6. August 2009 05:14
In this article, I will explore named and optional parameters in C# 4.0 features. Named and optional parameters are really two distinct features, and allow us to either omit parameters which have a defined default value, and/or to pass parameters by name rather than position. Named parameters ar... [More]

Currently rated 3.0 by 2 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

.NET | C#

Dynamic Typing in C# 4.0

by Farooq Kaiser 5. August 2009 07:55
C# 4.0 introduces a new static type called dynamic. When an instance variable is defined with the type dynamic, the compiler ignores the call and won't complain. These actions are picked up at runtime. Here are comparison with C# 3.0 and C# 4.0 using Dynamic Types. Let's say I have t... [More]

Currently rated 3.0 by 2 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

.NET | C#

Handling Unknown Actions in ASP.NET MVC

by Farooq Kaiser 5. August 2009 03:57
In this article, I will explore Handling Unknown Actions. A Controller.HandleUnknownAction Method gets called when a controller cannot find an action method that matches a browser request. I will implement the following method in my previous article Implementing HTTP File Upload with ASP.NET MVC. ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

.NET | asp.net | C#

Implementing HTTP File Upload with ASP.NET MVC

by Farooq Kaiser 31. July 2009 07:18
In this article, I will explore how to upload a file using ASP.NET MVC. Since MVC framework does not use server control, so it will be interesting to see how file upload works in MVC. Here is my view that renders a form for uploading files <%@ Page Title="" Language=&q... [More]

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

.NET | C#

Creating HTML Helpers with Extension Methods in ASP.NET MVC framework

by Farooq Kaiser 19. July 2009 10:28
In last article, I explored Custom HTML Helpers by creating a static method that returns a string. In this article, I will explore HTML Helpers with Extension Methods. The HtmlHelper class provides a set of helper methods that generate plain HTML and return the result as a string. The extensions a... [More]

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

.NET | asp.net

Creating Custom HTML Helpers in ASP.NET MVC framework

by Farooq Kaiser 16. July 2009 04:00
In this article, I will explore how you can create custom HTML Helpers that you can use within your MVC views. You use HTML helpers in a view to render HTML content. An HTML helper, in most cases, is just a method that returns a string. The ASP.NET MVC framework includes a standard set of helper... [More]

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

asp.net | C#

Jobs Autos Real estate Videos Power by Google