Fairfeeds.com - Stories tagged with C#
1
Votes

Web 2.0 | MS Chart Controls to PDF with iTextSharp using XML Template

posted by farooqkaiserfarooqkaiser 29 days, 2 hours, 4 minutes ago
Wednesday, February 10, 2010 8:00:18 PM GMT
In this article, i will examined how to build reports using ItextSharp PDF controland Ms Chart controlsusing XML template. The Xml template give us freedom to change the contents without having to recompile and deploy the application again. Let�s say here is our sample report in XML template. 1: 2: Here is our C# code that will generate the PDF. 1: XmlDocument xdox = new XmlDocument(); 2: xdox.Load(XMLFile); 3: Document document = new Document(); 4: PdfWriter.GetInstance(document... (more)
Category: Technology | Clicked: 1 | Comment | | Source: fairnet.com
Tags: C#, chart, report, XML
1
Votes

Web 2.0 | Email Template using C#

posted by farooqkaiserfarooqkaiser 43 days, 3 hours, 34 minutes ago
Wednesday, January 27, 2010 6:30:38 PM GMT
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. 1: 2: Now, i will load the template in C# and Tags will be replaced with Real Data. Here is C# sample code. 1: XmlDocument xdox = new XmlDocument(); 2: xdox.Load(Template); // Load your template here 3:str... (more)
Category: Technology | Clicked: 1 | Comment | | Source: www.fairnet.com
Tags: .NET, C#, Email, XML
1
Votes

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

posted by farooqkaiserfarooqkaiser 77 days, 2 hours, 37 minutes ago
Thursday, December 24, 2009 7:27:20 PM GMT
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: (more)
Category: Technology | Clicked: 1 | Comment | | Source: www.fairnet.com
Tags: C#, FTP, Http Handler
1
Votes

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

posted by farooqkaiserfarooqkaiser 82 days, 17 hours, 35 minutes ago
Saturday, December 19, 2009 4:29:19 AM GMT
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=\"Excel 8.0;HDR=No;IMEX=1;\""; Excel 2007 Connection String "Provider=Microsoft.ACE.OLEDB.12.0; data source={0}; Extended Properties=\"Excel 12.0;HDR=No;IMEX=1;\""; CSV or Text Connection String "Provider=Microsoft.Jet.OLEDB.... (more)
Category: Technology | Clicked: 0 | Comment | | Source: www.fairnet.com
Tags: C#, CSV, XLS, XLSX
1
Votes

Web 2.0 | Custom Sorting with Jquery UI

published 163 days, 5 hours ago posted by farooqkaiserfarooqkaiser 173 days, 1 hour, 36 minutes ago
Tuesday, September 29, 2009 5:04:12 PM GMT Saturday, September 19, 2009 8:28:26 PM GMT
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 sorting order. Here is our XML File. (more)
Category: Technology | Clicked: 0 | Comment | | Source: www.fairnet.com
Tags: .NET, ajax, ap.net, C#, Linq
1
Votes

Web 2.0 | The ABC of WCF

published 168 days, 8 hours ago posted by farooqkaiserfarooqkaiser 178 days, 3 hours, 53 minutes ago
Thursday, September 24, 2009 2:04:34 PM GMT Monday, September 14, 2009 6:11:31 PM GMT
WCF is 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 functionality is included in a single assembly called System.ServiceModel.dll, located in the System.ServiceModel namespace. What are the ABCs of WCF? ABC stands for address, binding, and contract, t... (more)
Category: Technology | Clicked: 1 | Comment | | Source: www.fairnet.com
Tags: .NET, C#, WCF, WebService
1
Votes

Web 2.0 | Localizing ASP.NET MVC

published 177 days, 3 hours, 39 minutes ago posted by farooqkaiserfarooqkaiser 185 days, 19 hours, 10 minutes ago
Tuesday, September 15, 2009 6:24:57 PM GMT Monday, September 07, 2009 2:54:18 AM GMT
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 information, including the language, the country/region, the calendars in use, the format patterns for dates, currency, and numbers, and the sort order for strings) CutureInfo Provides information about a specific culture... (more)
Category: Technology | Clicked: 0 | Comment | | Source: www.fairnet.com
Tags: .NET, ASP.NET MVC, C#, Localization
1
Votes

Web 2.0 | JQuery AJAX with ASP.Net MVC

published 192 days, 10 hours, 30 minutes ago posted by farooqkaiserfarooqkaiser 196 days, 17 hours, 29 minutes ago
Monday, August 31, 2009 11:34:25 AM GMT Thursday, August 27, 2009 4:35:16 AM GMT
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 an HTTP GET request.getJSON() - Load JSON data using an HTTP GET request.getScript() - Loads, and executes, a local JavaScript file using an HTTP GET request.post() - Loads HTML by performing an HTTP post request. In this article, I w... (more)
Category: Technology | Clicked: 0 | Comment | | Source: fairnet.com
Tags: ajax, ASP.NET MVC, C#, jQuery, WebService
1
Votes

Web 2.0 | Displaying Jquery Progress using ASP.NET MVC with Ajax

published 192 days, 10 hours, 30 minutes ago posted by farooqkaiserfarooqkaiser 198 days, 16 hours, 51 minutes ago
Monday, August 31, 2009 11:34:25 AM GMT Tuesday, August 25, 2009 5:13:12 AM GMT
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. To reference the Jquery script library, add the following markup at the end of the head element in Site.Master: You can increase the performance by replacing above Script with google AJAX Libraries. Google AJAX Libraries can be found here http://code.google.com/apis/ajaxlibs/ Now, i will modify my pre... (more)
Category: Technology | Clicked: 0 | Comment | | Source: fairnet.com
Tags: ajax, ASP.NET MVC, C#, jQuery
1
Votes

Web 2.0 | Building currency convertor using ASP.NET MVC with Ajax

published 193 days, 9 hours, 13 minutes ago posted by farooqkaiserfarooqkaiser 202 days, 16 hours, 47 minutes ago
Sunday, August 30, 2009 12:51:51 PM GMT Friday, August 21, 2009 5:17:47 AM GMT
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 will show you how to build an AJAX-enabled ASP.NET MVC application. To create a new MVC project, seeASP.net MVC application structure. I will consume a currency convertor web service which is freely available a... (more)
Category: Technology | Clicked: 3 | Comment | | Source: www.fairnet.com
Tags: ASP .NET MVC, C#
1
Votes

Web 2.0 | Form validation with ASP.NET MVC using IErrorDataInfo Interface

published 201 days, 4 hours ago posted by farooqkaiserfarooqkaiser 210 days, 7 hours, 16 minutes ago
Saturday, August 22, 2009 6:04:21 PM GMT Thursday, August 13, 2009 2:48:51 PM GMT
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 IErrorDataInfo interface.public interface IDataErrorInfo{    // Properties    string Error { get; }    string this[string columnName] { get; }} We will modifylast articlethat will implementIErrorDataInfo Interface. To implement the IDataErrorInfo interface, we must create a partial class.... (more)
Category: Technology | Clicked: 2 | Comment | | Source: www.fairnet.com
Tags: ASP.NET MVC, C#
1
Votes

Web 2.0 | Entity Framework with ASP.NET MVC

published 203 days, 4 hours, 26 minutes ago posted by farooqkaiserfarooqkaiser 212 days, 5 hours, 57 minutes ago
Thursday, August 20, 2009 5:38:10 PM GMT Tuesday, August 11, 2009 4:07:15 PM GMT
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. CREATETABLE [dbo].[tblComment](             [CommentID] [int] IDENTITY(1,1)NOTNULL,             [Name] nvarcharNULL,             [Email] nvarcharNULL,             [Comment] nvarcharNULL) Now, Right click on the Models directory and select add new item... (more)
Category: Technology | Clicked: 1 | Comment | | Source: www.fairnet.com
Tags: ASP .NET MVC, C#, entity-framework
13
Votes

Adventures in .NET: Visual Studio 2008 var Keyword ‘Bug’

posted by raazzraazz 249 days, 17 hours, 29 minutes ago
Sunday, July 05, 2009 4:34:57 AM GMT
I stumbled across an interesting bug while editing an ASP.NET web project in Visual Studio 2008 a few days ago and I figure after four years of using the Visual Studio suite without encountering any real bugs, one isn't all that bad. That being said, given the nature of the behavior I encountered, I was compelled to investigate the issue behind it. With the introduction of C# 3.0's implicit variable keyword var Microsoft added some simple tricks to the compiler in order to produce the traditional C# 2... (more)
Category: Technology | Clicked: 0 | Comment | | Source: lakario.blogspot.com
Tags: ASP .NET, C#, Visual Studio 2008
13
Votes

MultiTargeting M-V-VM: An Exercise in reuse for Silverlight and WPF Applications

posted by raazzraazz 249 days, 17 hours, 33 minutes ago
Sunday, July 05, 2009 4:31:23 AM GMT
Now that we have Silverlight and WPF the line between Web Applications and Smart Clients is getting smaller and smaller. Despite some marked differences between these two platforms they both support XAML, they both can run our compiled C# code, both can call web services, and we even get our beloved Visual Studio development experience on both sides too! With so many similarities the temptation to build applications that span both platforms is almost too sweet to resi... (more)
Category: Technology | Clicked: 2 | Comment | | Source: geekswithblogs.net
Tags: C#, MVVM, WPF, XAML
12
Votes

Simple .NET Profanity Filter - James Newton-King

posted by raazzraazz 249 days, 17 hours, 36 minutes ago
Sunday, July 05, 2009 4:28:49 AM GMT
A website I am working on right now accepts public comments, and one of the requirements is to do a basic check for dirty language. Surprisingly for such a common problem I wasn’t able to find any code on the net that did what I wanted and so I’ve ended up writing my own. The Censor class is pretty simple: you give it a list of words you want to censor, either simple text or with wildcards, and the censor will star out any matches it finds.IList (more)
Category: Technology | Clicked: 3 | Comment | | Source: james.newtonking.com
Tags: .NET, C#
13
Votes

planetgeek.ch » Enum’s are Evil

posted by raazzraazz 249 days, 17 hours, 37 minutes ago
Sunday, July 05, 2009 4:27:00 AM GMT
In C# dotnet the class Enum is heavily used. Some geek’s argue that the Enum’s “improve code clarity and and reduce the probability of invalid values. … Enum’s are self-documenting. (more)
Category: Technology | Clicked: 0 | Comment | | Source: www.planetgeek.ch
Tags: .NET, C#
13
Votes

Handling Events within Silverlight Control Templates – AutoCompleteBox Example - Dan Wahlin's WebLog

posted by raazzraazz 249 days, 17 hours, 46 minutes ago
Sunday, July 05, 2009 4:18:12 AM GMT
One of the great features Silverlight offers is the ability to customize controls by using control templates. If you don’t like how a particular control looks you can modify the template and in many cases be ready to use the new control without writing a single line of C# or VB code. I’m working on a client application that uses the AutoCompleteBox found in the Silverlight Toolkit and needed a way to change it from a regular TextBox to more of an editable ComboBox. Fortunately the Silverlight Toolkit ... (more)
Category: Technology | Clicked: 1 | Comment | | Source: weblogs.asp.net
Tags: C#, VB.NET, XAML