March 2007 - Posts
Introduction:
Transferring data from one source to another is a common practice in software development. This operation is preformed in many different scenarios which includes migration of the old system to the new system, backing up the data and collecting data from different publishers. ASP.NET 2.0 includes the SqlBulkCopy class that helps to copy the data from different data sources to SQL SERVER database. In this article I will demonstrate the different aspects of the SqlBulkCopy class.
Read more...
Transferring data from one source to another is a common practice in software development. This operation is preformed in many different scenarios which includes migration of the old system to the new system, backing up the data and collecting data from different publishers. ASP.NET 2.0 includes the SqlBulkCopy class that helps to copy the data from different data sources to SQL SERVER database. In this article I will demonstrate the different aspects of the SqlBulkCopy class.
Read more...
Do you want to know a secret? A deep, dark, dirty secret? One that, if revealed, would cause great angst in the ASP.NET community and prompt shouts of "Aha!" from the anti-Microsoft crowd?
Most Web sites built with ASP.NET aren't very scalable. They suffer a self-imposed glass ceiling that limits the number of requests they can process per second. These sites scale just fine until traffic rises to the level of this invisible ceiling. Then throughput begins to degrade. Soon after, requests start to fail, usually returning "Server unavailable" errors.
The underlying reason has been discussed many times in MSDN®Magazine. ASP.NET uses threads from a common language runtime (CLR) thread pool to process requests. As long as there are threads available in the thread pool, ASP.NET has no trouble dispatching incoming requests. But once the thread pool becomes saturated-that is, all the threads inside it are busy processing requests and no free threads remain-new requests have to wait for threads to become free. If the logjam becomes severe enough and the queue fills to capacity, ASP.NET throws up its hands and responds with a "Heck no!" to new requests.
One solution is to increase the maximum size of the thread pool, allowing more threads to be created. That's the course developers often take when their customers report repeated "Server unavailable" errors. Another common course of action is to throw hardware at the problem, adding more servers to the Web farm. But increasing the thread count-or the server count-doesn't solve the issue. It just provides temporary relief to what is in reality a design problem-not in ASP.NET itself, but in the implementation of the actual site. The real problem for apps that don't scale isn't lack of threads. It's inefficient use of the threads that are already there.
Read more...
A lot to learn from this application generator ZAP, written by Stephen Walther.
Abstract:
After you write hundreds of ASP.NET applications, certain patterns emerge. You discover that you are writing the exact same code over and over again. I've reached that point with ASP.NET. In order to avoid the insanity that results from writing the same tedious code, I wrote a tool named ZAP that automatically generates ASP.NET websites. In particular, based on a configuration file, ZAP generates a set of C# classes, a database, a set of database tables, a set of database stored procedures, a set of user controls, and a set of ASP.NET pages. The tool generates a user interface, business logic, and data access layer automatically. ZAP generates everything in C# (sorry VB.NET developers!). You can view all of the code that the tool generates. You can download ZAP (and its source code) at the following URL: Download ZAP ZAP works with Visual Web Developer and Visual Studio 2005. It is compatible with Source Control systems such as the one included with Visual Studio Team Systems.
Read more...
Once a veteran programmer was asked to define his professional developer's career in as few words as possible. His answer was "passion", "excitement" and "learning". And that's absolutely true as new, bleeding edge, exciting technologies/frameworks/languages keep flooding the technology limelight; we programmers fuel our passion of we-can-do-anything by mastering them. One of the newest buzz phrases in the industry is "Windows Workflow Foundation" (WF). This article is aimed at getting a jump start into it to fuel excitement and pump up passion. Basic knowledge of .NET Framework is the only prerequisite for marching on with this jump-start tutorial. Examples are in C#, but VB.NET lovers are also invited to the show as this is all about framework, and if they can understand the pseudo code, programming it in VB.NET must be trivial.
Read more...
The SqlNetFramework is a set of classes which allows you to work with a relational database server using SQL statements. The main two features of the SqlNetFramework are that it is very easy to learn and easy to use. See How easy is to use the SqlNetFramework section.
Features:
Introduction:
What impresses potential clients touring your office more than anything? A big screen displaying realtime performance data for your critical servers. I'm joking, but only partially: it makes a company look professional and it's also a huge boon for network operations employees who can tell within seconds if something is wrong with a server. An ideal presentation medium for this is obviously a web page, since you can implement multiple versions of this performance data display for network operations or even for people wishing to check on the status of a server over their phone or PDA and also drive automatic updating of that data. There are several rudimentary web controls and tutorials out there on this subject (such as this article at 4GuysFromRolla), but nothing that was very feature rich or that automatically updated, which I considered to be the most compelling feature of performance counter data display. This kind of surprised me, so I decided to roll my own and develop the ASP.NET web control that you see here today.
Read more...
X/HTML 5 is currently work in progress and when released will replace HTML 4 and XHTML 1.
The X/HTML 5 specification is being developed by the Web Hypertext Application Technology Working Group (WHATWG).
On this site team member Ian Hickson discuss about the major changes and implications for the web authors and developers.
By the way a new draft of the HTML 5 specifications has been published today.
One controversial new feature will be surely the client/public storage. This will have some serious security issues!
Read the interview....
Mike Woodring has an interesting collection of .Net samples covering almost everything from remoting to security.
Read more...
From the developer who give us this so useful tool ViewState Helper check this cool utility.
From his blog:
Have you ever copied and pasted text from a webpage, or anywhere else, into a document or email… only to have it retain it’s crazy formatting? Well, I got sick of that, and I got tired of pasting into notepad and copying again to scrub the text clean of formatting. That’s why I whipped up the Clipboard Text Scrubber. It runs in the system tray and monitors the clipboard for text. If it finds any it scrubs the formatting from it, leaving you with good old unformatted text. It can run in automatic mode or manual mode, and has a couple other clipboard related features as well.
Read more...
ASP.NET ViewState Helper is an application designed to help all web developers, but has specific features to aid ASP.NET developers track ViewState issues. In real-time you can see your web pages being analyzed while you browse to them using Internet Explorer 6.0 or higher. As you can see in this Screen Shot, ASP.NET ViewState Helper gives you very detailed information to help you optimize your web application’s performance. You can see page information like:
- Page’s total size: This is the total size of the web page shown in the URL column
- ViewState size: This is the size of the ViewState field
- ViewState %: What percent of the total page size is being taken up by the ViewState?
- Markup size: The size of html markup (non-visible text) on the page
- Markup %: What percent of the page consists of non-visible HTML markup?
Double-clicking on any URL in the list will bring up the ViewState decoder window. If the page you double-clicked on contains a ViewState, it will be decoded into plain text, and also broken down into a tree-view for easy analysis.
Download here...

More Posts