blah blah blah is here! blah blah » Close

0
votes
1 answers

Events in web applications, how to set up the handlers?

Hi, Little confused, say I am creating a CMS application, and I want to have events for my class Content. I want to handle events like OnPreContentAdd, OnContentDeleted, OnContentAdded, etc. So I have my class Content, how to I define th ...

0
votes
1 answers

ReOccuring calender events, how to architecture this?

Hi, I have a database table that has all the rows for events people have inputed in their personal calender. Events can be also set to re-occur every x days. I need to create some kind of a polling service (windows service I guess) that ...

0
votes
1 answers

Is Sharepoint an important framework to learn?

Hi, It is kind of a silly question, but it seems sharepoint is a requirement for quit allot of jobs out there no? How many of you guys are comfortable with sharepoint development? It seems that if you have a solid grounding in asp.net 2. ...

0
votes
1 answers

Output a DataTable's (from a DataSet) rows, and column information

Hi, I have a datatable that I extracted from my dataset. I want to enumerate through the datatable, and output all the rows. Each row has to display all the column information, comma or tab seperated. How can I do this? for (int x = 0 ...

0
votes
1 answers

Thank You Vulpes & Madhatter

Just wanted to express my appreciation to both Vulpes and Madhatter. You guys have made my C# experience that much better (and smoother!). I'm sure allot of other members acknowledge your help on csharpfriends. bool helping = true; whil ...

0
votes
1 answers

DateTime and Timezones, how to format date when factoring in timezone

Hi, I want to store the users timezone in the database. Once the user has selected their timezone, how can I adject the datetime to the users timezone? Is timezone = UTC?

0
votes
1 answers

Creating a calender, help with date functions

Hi, I am creating a calender type application, so I need some help with some date functions. 1. Given a year and month, I need to list the day name and number. So for example, I'll initialize a DateTime object: Year 2008 Month: 8 (Augu ...

0
votes
1 answers

Resizing Images

Hi, I have lots of images that I need to resize to various dimensions. I need some help creating a function that will resize a image to a fixed dimension (length and width). Does anyone know how to code such a function? I will then loop ...

0
votes
1 answers

How to check if a file exists or not, if it does then copy the file

Hi, I know I can check for a directory if it exists or not using Directory.Exists(), but how can I check if a file exists? Basically I want to do this: 1. check if a file exists at a given path 2. if the file exists, copy the file to an ...

0
votes
1 answers

Let's build a formatter!

Hi, I want to fix up some compressed javascript file, basically it has been minimized by removing all whitespaces, carriage returns, etc. so that the file size is as small as possible. So the javascript looks something like: http://pagea ...

0
votes
1 answers

Best Practises so my Class Library will work in Console applications also?

Hi, I created a class library that has all my classes, business logic and my database access layer code in it. Now I tried using it in a console application and I ran into a problem, when doing this like: Users.GetSalesHistory(); My cod ...

0
votes
1 answers

ConfigurationManager not working in my C# console application?

Hi, I'm building a simple console application, so I added the connection string elements into my app.config file. I now want to grab the connection string information using: Console.WriteLine(ConfigurationManager.ConnectionStrings[" ...

0
votes
1 answers

When using webclient, how can I store any cookies the page might have?

Hi, If I am scraping a webpage, if the page has cookies, how can I detect cookies and store them in some kind of collection, as I might need those cookies for further requests? (say like if I have to do authentication during the page scrap ...

0
votes
1 answers

Is Windows Forms depricated?

Hi, Is windows forms depreciated for the new frameworks? If so, what book should I get to get an overview of what's new? is it windows presentation or what? confused with the new naming!

0
votes
1 answers

What's the point of LINQ?

Hi, What is the point/advantage of using LINQ over ADO.NET database access? It is just something you have to learn to keep up with the times because its the latest buzz, or there are some real advantages over traditional ADO.NET and store ...

Feedback