DotNetShoutout - Stories tagged with C#
6
Shouts

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

published 1224 days, 7 hours, 43 minutes ago posted by farooqkaiserfarooqkaiser 1224 days, 23 hours, 17 minutes ago
Thursday, February 11, 2010 11:30:56 AM GMT Wednesday, February 10, 2010 7:56:41 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: Web Dev | clicked: 17 | comment | | source: fairnet.com
tags: C#, XML, chart, report
2
Shouts

Adding a list item to Document library through c-sharp

posted by PraveenPraveen 1226 days, 11 hours, 47 minutes ago
Tuesday, February 09, 2010 7:27:20 AM GMT
As we all know the required filed for document library is not Title. We should be upload a file for the document library list item. This is the required field by default. You can add columns and make them required as well. So, when through program we want to add a list item to the document library then we need to collect the uploaded file and the meta data i.e. the list of columns data. So on the custom form of the document library we need to add ASP.NET controls for file upload and for all the other col... (more)
category: How To | clicked: 0 | comment | | source: praveenbattula.blogspot.com
tags: C#, Sharepoint
8
Shouts

Dive Deep Into MVC: ModelMetadata and ModelMetadataProvider

published 1225 days, 8 hours, 45 minutes ago posted by mgolchinmgolchin 1226 days, 12 hours, 23 minutes ago
Wednesday, February 10, 2010 10:29:29 AM GMT Tuesday, February 09, 2010 6:51:07 AM GMT
Custom ModelMetadataProvider that extracts model's metadata from an XML file. (more)
category: Web Dev | clicked: 7 | comment | | source: mgolchin.net
tags: ASP.NET MVC, C#
3
Shouts

.NET CF and Windows Mobile Performance Best Practices

published 1225 days, 8 hours, 45 minutes ago posted by nightmannightman 1226 days, 16 hours, 52 minutes ago
Wednesday, February 10, 2010 10:29:29 AM GMT Tuesday, February 09, 2010 2:22:24 AM GMT
The impact of performance is much more readily apparent in .NET Compact Framework applications. The mobile devices commonly have a CPU that is 10 times slower than your desktop CPU, and possibly up to 100 times less RAM than a desktop or server. In Agile or XP development, the mantra is often to ignore performance considerations until necessary – I don’t think you can apply that to .NET CF... (more)
category: Architecture | clicked: 0 | comment | | source: jsprunger.com
tags: Windows Mobile, Best Practices, C#, Performance, .NET CF
6
Shouts

Code Capers | Generating Structured Text with StringTemplate

posted by mceranskimceranski 1227 days, 1 hour, 9 minutes ago
Monday, February 08, 2010 6:04:44 PM GMT
StringTemplate is a powerful tool that can be used to generate source code, web pages, emails, or any other formatted text output. Although StringTemplate was originally written in Java it has been ported to C#, Python and Ruby. My first encounter with StringTemplate was a few years ago when I needed to build a complex deployment script for setting up new SQL Server instances. The script needed to configure operators, alerts, SQL mail and also create a few basic jobs. The most important requirement was t... (more)
category: Web Dev | clicked: 0 | comment | | source: www.codecapers.com
tags: string-formatting, C#, Template
6
Shouts

BlockingCollection and IProducerConsumerCollection

posted by https://me.yahoo.com/mosessaur#7fe0dhttps://me.yahoo.com/mosessaur#7fe0d 1227 days, 2 hours, 57 minutes ago
Monday, February 08, 2010 4:16:55 PM GMT
BlockingCollection and IProducerConsumerCollection Posted on 2/8/2010 11:12:56 AM by Justin Etheredge In .NET 4.0 there is a new namespace on the block, and it is called System.Collections.Concurrent. In this namespace you will find a pretty decent number of goodies that will help you to more easily write application which can leverage multiple threads without having to resort to manual locking. We looked previously at the ConcurrentBag, ConcurrentStack, and ConcurrentQueue. Well, I have two ... (more)
category: How To | clicked: 10 | comment | | source: www.codethinked.com
tags: C#, Parallel Programming
9
Shouts

Top 5 Common programming mistakes .NET developers must avoid !!

published 1227 days, 5 hours, 34 minutes ago posted by http://amazedsaint.blogspot.com/http://amazedsaint.blogspot.com/ 1227 days, 10 hours, 16 minutes ago
Monday, February 08, 2010 1:40:11 PM GMT Monday, February 08, 2010 8:57:43 AM GMT
Some time back, I asked a question in Stackoverflow.com, about common programming mistakes .NET developers must avoid. The response was awesome, to say the least. I’m just listing down the top 5 developer crimes I picked, from the answers I received (regardless the votes). (more)
category: How To | clicked: 3 | 3 comments | | source: amazedsaint.blogspot.com
tags: .NET, Software Develeopment, C#, programmers
6
Shouts

Detecting User Inactivity (C#)

published 1227 days, 5 hours, 34 minutes ago posted by BlackWaspBlackWasp 1228 days, 2 hours, 54 minutes ago
Monday, February 08, 2010 1:40:11 PM GMT Sunday, February 07, 2010 4:20:24 PM GMT
Some software, such as backup utilities, can use a large proportion of processor time and other resources. Often the user is given the option to only run such processes when the computer is not in use. This requires the detection of user inactivity. (more)
category: Smart Client | clicked: 3 | 1 comment | | source: www.blackwasp.co.uk
tags: C#, Windows
3
Shouts

Writing object to object mapper: first implementations

posted by gpeipmangpeipman 1228 days, 6 hours, 54 minutes ago
Sunday, February 07, 2010 12:19:40 PM GMT
I wrote some object to object mapping code and introduced it in some of my previous postings about performance. As I received 22x performance raise when trying out different mapping methods and it is now time to make my code nice. In this posting I will show you how I organized my code to classes. Yes, you can use my classes in your work if you like. (more)
category: How To | clicked: 0 | comment | | source: weblogs.asp.net
tags: .NET, C#, O/O mapping
7
Shouts

Performance: Using LCG to copy property values of two objects

published 1227 days, 5 hours, 34 minutes ago posted by gpeipmangpeipman 1230 days, 56 minutes ago
Monday, February 08, 2010 1:40:11 PM GMT Friday, February 05, 2010 6:18:32 PM GMT
Today I gave last performance boost to my property values copying mechanism. I would like to thank my readers Ron and David to remind me Lightweight Code Generation (LCG) and pointing me out aussie bloke blog entry Generic copy object using Lightweight Code Generation. In this posting I will show you last performance boost and put down a summary about my experiment this far. (more)
category: How To | clicked: 1 | comment | | source: weblogs.asp.net
tags: .NET, lcg, C#, Performance
6
Shouts

MOSS My Calendar web part login problem for different accounts.

published 1228 days, 7 hours, 54 minutes ago posted by PraveenPraveen 1230 days, 9 hours, 22 minutes ago
Sunday, February 07, 2010 11:19:44 AM GMT Friday, February 05, 2010 9:51:43 AM GMT
Introduction When i work with my calendar web part in SharePoint i got lot of questions and things happend. I configured every thing correctly in My Calendar web part. i.e. Mail server address, Mailbox. But, when i open the page which contains calendar web part, it prompts for user name and password of SharePoint site and another for the Calendar login . i.e. login page of OWA application. If i provide the credentials it will work very fine. Now the problem starts. If the same application is tryi... (more)
category: How To | clicked: 2 | comment | | source: praveenbattula.blogspot.com
tags: C#, Outlook integration, Calendar, Sharepoint
7
Shouts

How to display Site pages/ Subsites in navigation using Treeview control in sharepoint applicartion.

published 1227 days, 5 hours, 34 minutes ago posted by PraveenPraveen 1230 days, 9 hours, 25 minutes ago
Monday, February 08, 2010 1:40:11 PM GMT Friday, February 05, 2010 9:49:09 AM GMT
For very big projects in SharePoint or any other platform it's very difficult to organize the navigation to keep all the data on page. For example, you have plenty of data around 15 to 20 subsites and 50 pages, then it's impossible to display all the links at one place. So, it's big challenge that even you have more data on site but if user failed to find what he want on the site then it's just waste. So by thinking that for long time, i was came up with a good solution and here i am presenting for you ... (more)
category: How To | clicked: 3 | comment | | source: praveenbattula.blogspot.com
tags: Navigation, C#, TreeView, Sharepoint
7
Shouts

Controlling Inheritance - Chapter Five of Deep C#

published 1228 days, 7 hours, 54 minutes ago posted by mikeukmikeuk 1230 days, 10 hours ago
Sunday, February 07, 2010 11:19:44 AM GMT Friday, February 05, 2010 9:14:12 AM GMT
Inheritance is difficult and C# provides ways to control it or even to forbid its use. So how does that work!? (more)
category: How To | clicked: 2 | comment | | source: www.i-programmer.info
tags: Inheritance, C#, sealed
5
Shouts

Playing WAV Files (C# / .NET)

published 1229 days, 11 hours, 50 minutes ago posted by BlackWaspBlackWasp 1231 days, 21 hours, 14 minutes ago
Saturday, February 06, 2010 7:24:26 AM GMT Wednesday, February 03, 2010 10:00:19 PM GMT
A commonly used standard for high quality sound reproduction is the Waveform Audio File Format, with sound data usually stored in WAV files. The .NET framework provides the SoundPlayer class to allow simple playback of such files. (more)
category: UX | clicked: 0 | comment | | source: www.blackwasp.co.uk
tags: wav, audio, .NET, C#
2
Shouts

Quadratic Formula Solver in C#

posted by vcskicksvcskicks 1231 days, 21 hours, 31 minutes ago
Wednesday, February 03, 2010 9:43:15 PM GMT
.NET implementation of the quadratic formula to solve quadratic equations. Algorithms for working with double and float types. (more)
category: Web Dev | clicked: 1 | comment | | source: www.vcskicks.com
tags: math, C#
6
Shouts

Vote for your favourite .NET DI (IoC) Framework

published 1229 days, 11 hours, 50 minutes ago posted by deanomachinodeanomachino 1232 days, 1 hour, 44 minutes ago
Saturday, February 06, 2010 7:24:26 AM GMT Wednesday, February 03, 2010 5:30:03 PM GMT
Vote for your favourite .NET DI (IoC) Framework I've started to take a look at Dependency Injection Containers (IoC), mostly because we have started using them where I work and also just out of general interest and trying to get my mind around how they work. During my investigations I came around a load of .net IoC frameworks, a lot of them had their own pros and cons, and a lot of people were hard core supporters of certain frameworks. Currently where I work we have chosen to go with Castle. While on ... (more)
category: Web Dev | clicked: 1 | comment | | source: deanhume.com
tags: IoC/DI, C#, ASP .NET
2
Shouts

How to give specific permissions to a SharePoint list item through C-sharp

posted by PraveenPraveen 1232 days, 13 hours, 57 minutes ago
Wednesday, February 03, 2010 5:17:22 AM GMT
SharePoint 2007 allows item level permissions. The is the big change in security trimming from SharePoint 2003. It's really very good and useful in many scenarios like when an item is belongs to others or task assigned to some other person then users can't see other's tasks or they can't edit other's tasks etc.. item level permissions are really good and useful. Here is a small code, to set specific permissions to a user for a list item. The below is the exaple from my SharePoint custom workflow to... (more)
category: How To | clicked: 0 | comment | | source: praveenbattula.blogspot.com
tags: Security, C#, Permissions, Sharepoint
10
Shouts

HerdingCode - Episode 71: James Avery and Rob Conery on NoSQL and a bunch of other stuff

published 1230 days, 10 hours, 5 minutes ago posted by mithumithu 1233 days, 1 minute ago
Friday, February 05, 2010 9:09:01 AM GMT Tuesday, February 02, 2010 7:12:52 PM GMT
James and Rob invade this week’s show to discuss NoSQL, the ASP.NET MVC vs WebForms debate, TekPub and all kinds of other stuff. Object Databases and NoSQL, ORM are so last year James challenges the idea that all data must reside in a relational databases for everything Rob won’t go to the bar in an 18-wheeler. Graph databases, Object Databases, Document Databases Doesn’t an ORM abstract the database away already so what are we saving? James pimps TekPub Rob talks it bit about DDD and how we marry rel... (more)
category: Podcast | clicked: 0 | comment | | source: herdingcode.com
tags: VB, C#, DDD, MSDN, ASP .NET, HerdingCode, MVP
7
Shouts

Nizar’s .NET Blog » Refactoring for Unit Testing

published 1232 days, 8 hours, 29 minutes ago posted by noorani786noorani786 1233 days, 2 hours, 37 minutes ago
Wednesday, February 03, 2010 10:45:04 AM GMT Tuesday, February 02, 2010 4:37:10 PM GMT
Imagine the following (which you’ve very likely run into in the past): You join a new company and inherit a humongous existing code base. You are told to add some new functionalities without of course breaking existing functionality. “No problem”, you say! “I’ve done this before.” (more)
category: Architecture | clicked: 9 | comment | | source: nizarnoorani.com
tags: Refactor, C#, Unit Test, unit testing
2
Shouts

Creating new instance of SharePoint workflow through C

posted by PraveenPraveen 1233 days, 8 hours, 6 minutes ago
Tuesday, February 02, 2010 11:08:10 AM GMT
In SharePoint 2007, very good feature i like much is that framework supports for writing custom events, features, workflows or any other areas... We can customize complete SharePoint system at any context. While working with SharePoint custom workflows, we get some scenarios where we need to stop a workflow or start a new instance of workflow. So, i did some research on the MSDN library and saw all the dll's by doing some reflection on the libraries and found some functions and classes which supports th... (more)
category: Architecture | clicked: 0 | comment | | source: praveenbattula.blogspot.com
tags: workflow, Instance, C#, Sharepoint