How to Create Data-Bound Applications with Infragistics xamGrid Control

The metro UI ready touch friendly controls offered in Infragistics NetAdvantage for Silverlight Suite in creating LOB application provide ways to enhance productivity, deliver rich and advanced data visualization and leverage the capabilities of Silverlight. The toolset contains controls like Barcodes, Charts. Maps, xamGrid and many more. xamGrid offers features that adheres to several requirements in a LOB application.

In this article, we will use Visual Studio 2011 and Silverlight 5.0 as the Infragistics toolset. We will also explore the following features while exploring xamGrid:

  • Column Data Binding
  • Pagination
  • Excel-like filtration
  • Sorting columns and preventing sorting on some columns
  • editing and deleting features with command
  • export data in xamGrid to MSWord.

Read the rest of the tutorial here:

How to Send Email with Attachment in ASP.NET

Sending an email with attachment with ASP.NET is easy. The file that will be sent as an attachment in ASP.NET will be uploaded using FileUpload and will be added dynamically as an attachment in the MailMessage object without saving any file in the disk.

Here is the code to send an email with attachment using Gmail SMTP:

For C#:

protected void SendEmail(object sender, EventArgs e)
    using (MailMessage mm = new MailMessage(txtEmail.Text, txtTo.Text))
        mm.Subject = txtSubject.Text;
        mm.Body = txtBody.Text;
        if (fuAttachment.HasFile)
            string FileName = Path.GetFileName(fuAttachment.PostedFile.FileName);
            mm.Attachments.Add(new Attachment(fuAttachment.PostedFile.InputStream, FileName));
        mm.IsBodyHtml = false;
        SmtpClient smtp = new SmtpClient();
        smtp.Host = “”;
        smtp.EnableSsl = true;
        NetworkCredential NetworkCred = new NetworkCredential(txtEmail.Text, txtPassword.Text);
        smtp.UseDefaultCredentials = true;
        smtp.Credentials = NetworkCred;
        smtp.Port = 587;
        ClientScript.RegisterStartupScript(GetType(), “alert”, “alert(‘Email sent.’);”,true);

Beginner’s Guide in Creating UI, Business, and Data Layers in Applications – ASP.NET

There are many blog entries and forum posts about the importance of building an application with multiple levels of abstractions. They incorporate principles, and complicated terms that make them look smart but leave beginners clueless about what they are talking about. This article finds a way to help beginners provide the most basic method in creating UI, busines, and data layers in applications using ASP.NET.

This online lecture will teach you the basics of creating a UI, the basic assumptions you should make in every application, and some simple basic rules.

Read the rest of the lecture here:

How to Profile Your ASP.NET MVC Applications using MiniProfiler

MiniProfiler is a profiling library that monitors the performance of your ASP.NET application. Developed by some members of StackExchange team, it is an application available as a Nuget Packages and it is easy to use and get started with. This article will explain how to use MiniProfiler to profile an ASP.NET application using EF Code First as the Data Access Layer.

Profiling infrastructure is very important because you can easily understand problems, fix it right away, and prevent bottlenecks at runtime. The MiniProfiler created by StackExchange has a lot of things to do with profilinng your ASP.NET MVC with only a few easy steps.

Read the tutorial here:

How to Bundle and Minify ASP.NET MVC

Bundling and Minifying ASP.NET is a powerful feature to help optimize your website and save expenses on bandwidth. It helps you download of the same type using one request instead of multiple request and it takes less requests than requesting all files separately.

In ASP.NET MVC 4, you can find BundleConfig.cs file under App_Start folder. This file has the BundleConfig class which contains one method – the RegisterBundles(). With this method, files that must be downloaded with one request are added to the bundles.

Bundling is a powerful tool which lets you optimize your web page. However, it has its own limits and tricks that you must know to use it successfully.

Read the rest of the tutorial in ASP.NET blog.

Create a Picture Album using ListView

This article will show how you can create a photo album using ListView control. It will explore GroupTemplate of ListView and how we can group multiple images together in Listview; thus creating an album effect.
The instruction starts from creating a new ASP.NET website using C# or VB.NET. Then add a FileUpload control and button control to upload the selected on button click.
<html xmlns=””>
<head runat=”server”>
<title>Untitled Page</title>
<form id=”form1″ runat=”server”>
<asp:Label ID=”lblTags” runat=”server” Text=”Tags”></asp:Label>
<asp:TextBox ID=”txtTags” runat=”server”></asp:TextBox>
<br />
<asp:Label ID=”lblImage” runat=”server” Text=”Upload Picture”></asp:Label>
<asp:FileUpload ID=”imgUpload” runat=”server” />
<br />
<br />
<asp:Button ID=”btnSubmit” runat=”server” onclick=”btnSubmit_Click”
Text=”Submit” />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp<asp:Label ID=”lblResult” runat=”server” ForeColor=”#0066FF”></asp:Label>
<br />
<hr />


Then using the code in this article, you can complete a photo album using ListView.

Read the rest of the tutorial here:

ASP SQL server Hosting Solutions

ASP is Microsoft’s first server side scripting technology that can be used to create dynamic websites and other website applications. For example: ASP shopping cart, Livio WEB Calendar, MegaBBS message board, dBlog, and VisuBox live chat are some of the popular ASP-supported applications. Once you have created your ASP application, you will need a  good windows hosting provider to host website applications. Unlike plain HTML webpages, an ASP page cannot be run by just simply opening the page in web browser. ASP page must be requested through a web server that supports ASP. Many ASP hosting providers uses Internet Information Services (IIS) that runs on windows server OS’s like Windows 2003, 2005 or 2008.

Looking for a reliable ASP Hosting Solution?

If you are looking for reliable ASP hosting, consider the features below.

  • Your hosting company should support the ASP version that you use in your application
  • Make sure that the host supports all of your scripting needs including databases, e-mail accounts, Webmail (ASPEmail or ASPformMail), Web-based control panel, FTP access, and E-commerce support ect.
  • Make sure that your hosting company has knowledgeable staff and provide 24×7 customer support. You need a reliable customer support to resolve any issues you may encounter.
  • ASP Hosting Uptime above 99.6%
  • Provides Money-back Guarantee
  • Provides ODBC to connect to your database server
  • Other features like Web-based control panel, FTP access, and E-commerce support etc


Best candidates for ASP SQL Hosting: Arvixe ($5.00/mo ) and 3essentials ($4.00/mo)

Microsoft SQL Server

Microsoft SQL Server is a relational database management system that provides an environment to create computer databases for the Microsoft Windows web environment. SQL Server allows for dynamic web sites in a Windows server operating systems. SQL Server enables you to store your information in sophisticated ways. The original SQL Server code was developed by Sybase  in the late 1980. SQL Server 2005 was released in November 2005 and SQL Server 2008 was released in August 2008.

SQL Server 2008 Hosting

Microsoft SQL Server 2008 is a cost-effective database platform for hosting solutions and many Windows Web Hosting company support it. SQL Server 2008 has many features including support for managing new geo spatial data, new HierarchyID support for managing self-referencing tables, support for large User Defined Data Types, support for LINQ, new support for PHP develop ers, Business Intelligence support that provides deep insights into data, and much more. Many top Web hosting companies offer SQL Server 2008 hosting options. SQL Server 2008 is the ideal database for high level data driven applications and it is fully compatible with MS SQL 2005.

Best candidates for SQL Server 2008 Hosting: Arvixe ($5.00/mo)

SQL Server 2005 Hosting
Microsoft SQL Server 2005 is a comprehensive, integrated data management and analysis application used by many organizations to build complex business applications.Even though some ASP hosting companies use MSSQL 2008 hosting technology, some windows hosting providers still support MS SQL 2005.

Microsoft SQL Server 2005 is a comprehensive, integrated data management and analysis application that enables organizations to reliably manage mission-critical information and confidently run today’s increasingly complex business applications.

Best candidates for SQL Server 2005 Hosting: 3essentials ($4.00/mo) and Applied Innovations ($8.29/mo ).