C# (RSS)

C#

SharePoint 2003 RSS Feed Reader Web Part

Has anyone seen or has implemented a RSS Reader as a Sharepoint 2003 web part?

The key feature a I looking for is the ability of the web part to remember whether an item in a feed has been read or not, similar to most desktop rss readers.  The other requirement is that it can not use custom database tables or database.

A couple of good RSS Reader web parts I have found are:

  Jan Tielens - RSS Reader Webpart for SharePoint
  Tim Hueres - RSS FeedReader 

The issue is they do not retain the read state of a individual RSS item.

Ideas, thoughts, things to try....

Central Maryland ASP.NET Professionals May Meeting

Central Maryland ASP.NET Professionals (http://cmap-online.org/)

Meeting Date: 5/3/05

Time: 6:30 PM - 9:00 PM

Location:

UMBC Technology Center
1450 South Rolling Road
Baltimore, MD 21227

Topic: Tuning Web Applications Using SQL Server Profiler

Description:

Most application performance problems aren’t really application problems, and they aren’t really database problems, but are somewhere between the application and the database. In this session, we’ll talk about how to tune applications with special emphasis on the SQL Server Profiler, a tool that can diagnose exactly where a performance issue is occurring. We’ll also review some other performance analysis tools including Performance Monitor and custom performance counters, and we’ll take a look at the number one technique for improving the performance of web applications.

Presented by: Geoff Snowman

Geoff Snowman is a developer community champion with Microsoft Corporation. He teaches seminars for developers and works with user groups in Maryland, DC, Virginia, and West Virginia. He also maintains a blog at http://blogs.msdn.com/gsnowman that lists events for developers in this area.

Geoff's been with Microsoft since 2001, working in roles where he assisted customers doing .NET development. Before joining Microsoft, Geoff worked for a Microsoft partner company, where he led teams doing software development. Geoff has over 20 years experience in the computer industry in a variety of technical and managerial roles. Geoff's hobbies include supporting the Baltimore Ravens and passing MCP examinations.  

Visit http://cmap-online.org/ for directions and more details

CMAP User Group Meeting - Creating Dynamic Themes & Skins in ASP.NET 1.1

Central Maryland ASP.NET Professionals Users Group Meeting in Columbia, Maryland

http://www.cmap-online.org

Date: February 1, 2005

Time: 6:30pm - 9:00pm

Topic: Creating Dynamic Themes & Skins in ASP.NET 1.1

Description: For every page, artists can spend dozens of hours creating hundreds of new headers or image buttons.
In this session you'll learn one way to apply different themes to your web site based on user, visit, or time without having to change any code in your site's assemblies. You'll learn how to save countless development and artist hours by creating a framework with capabilities such as automatic artwork generation. The framework will be built using three primary technologies: XML, base page templates, and GDI .

Presented by: Russ Nemhauser

Russ Nemhauser is a Microsoft ASP.NET MVP and a Microsoft Certified Professional, and has served as an Architect, Developer, Team Leader, and Project Manager over the past several years. His projects have included enterprise applications, online commerce sites, and corporate intranets for Wall Street, Universal Studios, Microsoft, Seagram, and others. Russ actively participates in the development community, speaking at several conferences and user groups each year. He also writes for several technical magazines and industry web sites.

Location:

Impact Innovations Group, LLC
8850 Stanford Blvd
Suite 4000
Columbia, MD 20723

http://www.impactinnovations.com

Central Maryland ASP Professionals Meeting on Tuesday, October 5th - Exploring the Community Starter Kit

6:30pm - 9:00pm
Topic: Exploring the Community Starter
Description:

The presentation will walk through the core architecture of the CSK to uncover techniques and best practices for building content management systems. We will discuss some of the strengths and weaknesses of the CSK, and briefly discuss deployment and customization.

Presented by: Scott Allen

Scott Allen is the Chief Software Architect for Medisolv Inc., an ISV based in Columbia, MD. Scott has over 12 years of experience in delivering commercial software products across a wide range of technologies – from 8 bit embedded devices to highly scalable web applications and web services for Fortune 50 clients. Over the last three years, Scott has been using .NET and SQL Server technologies to build business intelligence on top of clinical data warehouses. Scott is a co-founder of OdeToCode.com


Location:

Impact Innovations Group, LLC 8850 Stanford Blvd Suite 4000 Columbia, MD 20723

www.impactinnovations.com

Central Maryland ASP Professionals (CMAP) is a user group based in Columbia, MD that focuses on learning and discussing ASP.NET. Membership is free and open to experts and beginners alike!

www.cmap-online.org

Web Service Encryption Options

I have a web service and client that I need to encrypt some of the messages utilizing TripleDES. I currently investigating WSE2 as a solution. Does anyone know of any good examples using WSE2 and symetrical encryption? Are there other options?

Update: One option I have found is to use a SoapExtension to encrypt/decrypt the data. Here is a link to an article by Rob Howard describing the process.

How do you create an audit trail of changes made to an object

I have been working on a C# WinForms project which has a requirement of logging to a database, all of the changes made to an object/form to allow the users to produce a report on who/when/what was done within the application.

My question is... What is the best way to do this?

Currently, the way it has been implemented (by another engineer) is, the original data (before any updates) is kept within the object itself as a member variable and then compared with the current data when the object  is saved, logging the differences in each member to the database.

Here is a basic example of how the current implementation works.

1public class MySample
2{
3   public int var1;
4   public string var2;
5 
6   private MySample original;
7 
8   public void Read()
9   {
10     // Open database and populate fields
11 
12     original = new MySample();
13     original.ReadFrom( this );
14   }
15 
16   public void ReadFrom( MySample source )
17   {
18     var1 = source.var1;
19     var2 = source.var2;
20   }
21 
22   public void Write()
23   {
24     if ( original.var1 != var1 )
25     {
26        // Add to list of changed fields
27     }
28 
29     if ( ! original.var2.Equals( var2 ) )
30     {
31       // Add to list of changed fields
32     }
33
34     // Write change log to DB
35 
36     // Update original
37     original.ReadFrom( this );
38 
39     // Write fields to DB (excluding original field)
40   }
41}

This code just feels wrong to me. My first thought to fix this is to implement something utilizing reflection. I am looking for other people's experiences to help me come up with a better way.

The other thing that seems odd to me is, how is it possible to have an instance of MyObject inside itself?

Update: I have updated the sample code to be correct. That is what you get when trying to write something from memory late at night.

First Post

Welcome to my blog, Learning .NET. I will be using this blog to talk about some of the things I have learned and are still learning about developing with .NET using C#.

My name is Christopher Steen, and I am a Lead Software Engineer for company producing solutions for the hospitality and retail industries. 

More to come. Thanks for listening.