Stories recently tagged with 'MadsKristensen'

ASP.NET client-callback – simplicity vs. performance(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 9 months ago

Even though I love the simplicity of the ASP.NET Client-Callback implementation, I have to admit that I’m probably not going to use it in the future. There’s a lot of great AJAX JavaScript libraries that let’s me keep the simplicity of the client-side code and at the same time harness the raw power of a generic handler. I’m sorry Microsoft, but you killed performance for the sake of simplicity on this one. read more...

add a comment |category: |Views: 6

tags: another

Implement PICS and P3P in ASP.NET headers(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 9 months ago

PICS (Platform for Internet Content Selection) and P3P (Platform for Privacy Preferences) are two really nice things to be aware of when developing web applications. If your website targets children, maybe you sell toys, you should know about products like NetNanny that blocks access to certain websites based upon a lot of parameters. It’s for the protection of children that parents install these website blockers to keep their youngsters from accessing websites containing violence, nudity etc. read more...

add a comment |category: |Views: 16

tags: another

Do more with a DataTable and improve performance(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 9 months ago

There are some features in the System.Data.DataTable class that a lot of developers doesn’t utilize. I base that statement on different code samples I’ve seen on blogs and article bases during the last couple of years. Some of these features can improve the performance. read more...

add a comment |category: |Views: 35

tags: another

The one true rich text editor(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 9 months ago

Just this moment, I am writing this sentence in a rich text editor here on my blog. It let’s me format text, insert images, tables and a lot of other great stuff as well. I can do bold or italic fonts, which helps clearing up the text and underline my point and what not. read more...

add a comment |category: |Views: 74

tags: another

Refactor your ASP.NET project(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 9 months ago

Today at work i was refactoring my code as I do everyday, when it suddenly hit me that our ASP.NET projects (aspx, ascx etc.) were also refactored in a sense. read more...

add a comment |category: |Views: 2

tags: another

Working with weeks in C# - not that obvious(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 9 months ago

For some reason, Microsoft didn’t add a Week property to the DateTime class. I never could figure out why. Instead they gave us the System.Globalization namespace, filled with date related functionality like the different calendar classes. read more...

add a comment |category: |Views: 7

tags: another

The simplest error reporting in ASP.NET(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 10 months ago

In ASP.NET 2.0 I'll show you how to get notified by e-mail when an unexpected error occurs - ONLY by editing the web.config. No C#/VB.NET code needed! read more...

1 comment |category: |Views: 288

tags: another

The true ASP.NET developer(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 10 months ago

ASP.NET is a double sided discipline that demands skills and understanding of two very different worlds: the web as a platform and .NET development. The problem is that it is hard to find an ASP.NET developer that is strong in both disciplines. Let me elaborate. read more...

add a comment |category: |Views: 2

tags: another

Create performance counters using .NET and C#(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 10 months ago

Today, I had to implement custom performance counters in one of our applications. I haven’t worked much with performance counters before, so I wanted to check the Internet for some good articles and maybe some helper classes or wrappers around the functionality. I found this article, which does an excellent job explaining how to go about it. But it didn’t offer any helper class or plug ‘n play wrapper, so I decided to build my own. Then I can use it the next time I have to implement performance counters in .NET. read more...

add a comment |category: |Views: 347

tags: another

Simple FTP file upload in C# 2.0(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 11 months ago

Sometimes you just want a simple function to perform a simple task. There are a lot of FTP libraries for free download on the Internet, but if you simply want to upload a file to an FTP server in C#, these libraries are overkill for that simple little task. That's what I thought when I browsed the web for such a simple little function. Maybe I'm slower than normal people, but I couldn't find any simple method on the web. They where all too complicated, so I thought to myself that I could do better. read more...

5 comments |category: |Views: 4944

tags: another

Turn URL's into hyperlinks in ASP.NET(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 11 months ago

Today, I needed a function that would look through some text input and check for any URL's and the URL's should then be turned into hyperlinks. In other words, I had to turn this www.someurl.com into <a href="http://www.someurl.com" target="_blank">www.someurl.com</a>. It should also be able to handle URL's that starts with http:\\ and not just www. read more...

2 comments |category: |Views: 17

tags: another