help.net


Musing on .Net

News

Windows Phone Apps

FotoBank


FotoIreland

Windows 8 Apps




hit counters






Open source CMS


My blog

Irish blogs

Locations of visitors to this page Get Chitika eMiniMalls

.Net useful

Blogs I read

PocketPC

SQL

Usability

May 2007 - Posts

Working with Transactions

A transaction is a group of operations combined into a logical unit of work that is either guaranteed to be executed as a whole or rolled back. Transactions help the database in satisfying all the ACID (Atomic, Consistent, Isolated, and Durable). Transaction processing is an indispensible part of ADO.NET. It guarantees that a block of statements will either be executed in its entirety or rolled back,( i.e., none of the statements will be executed). Transaction processing has improved a lot in ADO.NET 2.0. This article discusses how we can work with transactions in both ADO.NET 1.1 and 2.0 versions.

Read more...

 

Posted: May 25 2007, 10:54 PM by help.net | with 1 comment(s)
Filed under:
Refresh module

Most of you are familiar with the feature of all web-browsers that when you press the F5 button, the content of a page is refreshed. After the F5 button is pressed, the browser repeats the previous request to the page. Nothing wrong will actually happen when the previous request is made by the GET method. However, problems appear when the last request is made by the POST method. Let's consider an example where a user is transferring money to a shop to pay for some goods. Having completed this operation, the user refreshes the page and as a result the server code is executed once again with the same data. Thus, the user may accidentally pay twice.

Valery Minsk propose to use an HTTP module to intercept the refresh.

Read more...

Posted: May 25 2007, 10:51 PM by help.net | with no comments
Filed under:
Thumbnail Image Viewer Control
A thumbnail image viewer control which downloads and displays the full size image in modal form using a floating div and javascript.
 
Read more...
 
Screenshot - ThumbViewerControl1.jpg
Posted: May 25 2007, 12:20 PM by help.net | with no comments
Filed under:
Autolist
This small web application has following features:
  1. Auto suggest list box [AutoList.js]
  2. Auto select text.
  3. Scrolling list item either one by one or on the basis of defined page size.
  4. Multicolor list item.
  5. Getting result in the xml form directly from SQL Server using ‘FOR XML’ and to process it to populate list box or to send back to client.
  6. Client side population of list box from xml.
  7. Getting result in xml form by using callback function (AJAX).
  8. Client side XML transformation using XSLT.
  9. Client side wait/process message while processing data [ProcessMonitor.js].
Read more...  
Posted: May 25 2007, 10:07 AM by help.net | with no comments
Filed under:
Top 10 .NET Framework Technologies to Learn in 2007

Peter shares what he believes are the top 10 .NET Technologies to focus on for developers, starting this year.

I don't know but I think this list is already old after the avalanche of announcements by Microsoft (Silverlight is one or example).

What do you think?

From Peter Bromberg:

Everybody has an opinion, and yours may differ based on your personal observations and experiences.

I've been working with the .NET Framework since the first BETA in 2000, and I've seen a lot of stuff come and go.  The following are what I consider to be my Top 10 List of things about .NET you must learn, going forward with the technology from 2007 on:

1) WCF (Windows Communication Foundation):  While WCF is certainly less "sexy" than say WPF / Silverlight, it is going to represent the backbone of solving business problems with .NET going forward from here. Big organizations are starting to embrace it, and it provides a cohesive framework for solving business problems in a distributed, integrated way. WCF integrates Remoting, WebServices, EnterpriseServices and Transactions, WSE, MSMQ, and much more into a cohesive programming framework. If you intend to make it your business to study just one new .NET technology this year, make it WCF.

2) ADO.NET (and LINQ): ADO.NET is how you talk to a data store, and databases are such a ubiquitous part of what you will do as a developer that you have NO CHOICE but to become extremely competent in this area. The next big thing in how to talk to data is LINQ with language extensions and entity objects that "represent" mappings of data and its relationships. If you don't become at least familiar with all this stuff, somebody else is going to eat your lunch.

3) WPF (Windows Presentation Foundation): Everything you learned about Windows Forms, pages in a browser, and UI elements is going to go out the window, because Microsoft has already declared that WPF is the new way we're gonna do this stuff. Its already built in to Windows Vista, and the XPS (XML Paper Specification) is already built into the printer subsystem. Don't hang on to the old- get with the new just as fast as you can get your little tushy in gear! And besides that, WPF is just so friggin' cool, it will knock your socks off in hi-def streaming video!

4) SQL Server 2005 (and on): I understand this isn't really .NET, but then again it really is. SQL Server 2005 hosts CLR integration of managed code. That's not only revolutionary, it provides a power to the programmer that you cannot get on other platforms. You have to learn everything you can about SQL Server 2005 including Service Broker, because it will help you to be a better programmer and problem - solver.

5) ASP.NET 2.0:  Even non "web programmers" need to understand how this works. The feature set has grown and matured, and you are looking at dynamic languages, LINQ, AJAX, and much more being integrated into the ASP.NET Framework (not to forget Silverlight - the sexiest technology of all of them!).

6) Security. Developers are notoriously weak on security ("Who cares about permission sets - I'm just a Code Monkey"). Unfortunately, we do not live in a perfect world and there are evil people out there who jump with glee when they can mess up your day. The more you become an expert about security, the higher your pay will be: expert security consultants make upwards of $300 / hr.

7) TDD (Test Driven Development): Unit, regression and integration testing aren't a luxury - if you want to develop robust systems then you must  have a test protocol. And to do testing right, you need to study how to write tests and what tests to write. There are several excellent books on TDD and at least one that specifically focuses on .NET.

8) Networking (System.Net and related): Networking -- TCP, UDP, HTTP, FTP, and on -- are an integral part of what you need to know how to do in order to glue programs together and make them be able to talk with each other and your data. The more you know about this area, the better equipped you'll be to make the right kind of choices when you are tasked with creating business logic through code.

9) Threading:  When asked to develop a multi-threaded object or to use a ThreadPool, 95 out of 100 programmers who claim to be professional .NET developers fall flat on their faces! You need to study all the threading primitives, know how they are used, be able to use the .NET or a custom ThreadPool, and manage threads in your applications.

10) Learning. That's right, I classify learning as a technology. People need to become smarter about how to learn, and especially, WHAT to learn. Just as you become a better programmer when you learn to use the Google or other search engines more effectively, you become a better programmer when you can detail for yourself what you need to learn to be better at your craft, and write down a plan for implementing that learning process.

 

Posted: May 25 2007, 10:04 AM by help.net | with 14 comment(s)
Filed under:
100 Web apps for everything

Cool list of tools useful in web development. This is aim to freelancers but I thnink this can be used by anybody in the business.

Read more...

 

Role of HTTP Modules in .NET Security

Today, one of the important goals is to provide high security to the distributed Web Applications. The security is designed throughout the .NET Framework like Code Access Security, ASP.NET Integrated Security and Cryptography, which can be optimally used to develop Secure Applications.

However, in scenarios where one has to perform Authentication or Authorization by the database and give appropriate privileges to the users (or) the permissions have to be provided at the runtime for specific operations (or) in scenarios like where no web browsers are used , it becomes crucial to develop Custom Security.
The ASP.NET Framework has defined set of Http Modules which takes care of the basic Authentication and Authorization mechanisms. The Custom Security (Custom Authentication or Authorization) can be performed in Forms Authentication or Windows Authentication by coding in the Global.asax file, which is not a reliable (or) reusable solution. The .NET Framework gives the flexibility to develop custom Http Modules and plug them into the ASP.NET Application,hence enabling to develop highly scalable, reusable and reliable .NET Security Components.

This article explains in detail about the HTTP Modules and the steps to create custom Http Module with an example. The article also gives a brief how to create a custom Http Module in developing a custom database authorization module.

Read more...

 

Posted: May 22 2007, 11:23 PM by help.net | with 2 comment(s)
Filed under:
HTTP Compression check

Are you using HTTP Compression for your web applications?

I do, but if you don't you miss really something. Check your compression with this online tool.

See what I got with my main project Scoilnet.

 

Posted: May 22 2007, 11:04 PM by help.net | with no comments
Filed under:
Free Microsoft E-Learning on Ajax

Title: Clinic 5230: Developing Enhanced Web Experiences with Microsoft® ASP.NET AJAX Extensions

Course Type: Self-paced Course

Available Offline: Yes

Estimated Time of Completion: 2 Hours

Language: English

Description:
In this 2-hour clinic you will learn about the rich functionality that ASP.NET AJAX Extensions provides for building highly responsive and enhanced web applications. In addition to learning about the different server and client components of ASP.NET AJAX, you will also learn how to build new ASP.NET AJAX applications and how to upgrade existing ASP.NET applications to take advantage of ASP.NET AJAX.
This clinic is appropriate for experienced .NET Web Developers and Software Architects who are looking to incorporate ASP.NET AJAX within their existing and future solutions.

Read more...

 

Posted: May 22 2007, 11:00 PM by help.net | with no comments
Filed under:
.NET Cheat Sheets
Nice posters collection by Jihn Sheehan. Now I need more walls in my office!

.NET Format String Quick Reference

Current Version: 1.1
» Download Now (PDF, 123 KB)

ASP.NET 2.0 Page Life Cycle & Common Events

Current Version: 1.0
» Download Now (PDF, 64KB)

Visual Studio 2005 Built-in Code Snippets (C#)

Current Version: 1.0
» Download Now (PDF, 56 KB)

More to come!

Other Cheat Sheet Links

 

Posted: May 22 2007, 10:50 PM by help.net | with 17 comment(s)
Filed under:
More Posts « Previous page - Next page »