Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home >Search > Articles & Samples > C-Sharp > Tips & Tricks


Search:
What's New - What's Hot
How to ping a server programatically in .net using C#     
Total Hits: 223  |  Today: 0Author: CodeSmithDotNet      Rating:  
Read Reviews | Write Review |  Your Rating: 

Normally, in Windows operating system we can ping a machine using Ping command in the command window. What we need to do is just provide the IP of the target machine we want to ping. Ping command returns the response which tells us that the other machine is active on the network and available. This same kind of functionality need to be achieved via programming. In this article I'll show you the code snippet which can help you ping a system in C# or Visual Basic.Net....

A Network Sniffer in C#     
Total Hits: 201  |  Today: 0Author: Hitesh Sharma      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, I will discuss the working of a simple network sniffer which can parse IP, TCP, UDP, and DNS packets....

Making Simple Message Class     
Total Hits: 217  |  Today: 0Author: AzamSharp      Rating:  
Read Reviews | Write Review |  Your Rating: 

Every application has to inform the user about certain actions. Most of the applications accomplish this by simply displaying the message on the label control. Usually when taking this approach we find our self repeating a lot of code. In this article we will see that how we can make a simple class that is responsible for displaying the messages to the user. We will make a simple application that will allow only zip files to upload. In this article we are not going to perform the actual upload. ...

StopWatch with digital display     
Total Hits: 249  |  Today: 0Author: Anthony Roach      Rating:  
Read Reviews | Write Review |  Your Rating: 

This project presents a stopwatch application that was developed due to my taking a mathematics university course and because it's been a long time since I did any maths academically I thought I'd better start getting some practice in. This meant taking timed tests and not having a decent way of timing the tests I thought I'd better write one, and due to being a programmer a simple time telling device was not enough, it had to look reasonable and get my attention when I was concentrating on some...

Interprocess Communication Between .NET and MFC using WM_COPYDATA     
Total Hits: 92  |  Today: 0Author: davids5759      Rating:  
Read Reviews | Write Review |  Your Rating: 

I was recently assigned a task where I wanted to use some of the functionality built into the Microsoft .NET framework with an existing MFC file viewer application. More specifically, I wanted to utilize the FileSystemWatcher class to notify the MFC Viewer app when a new file was created so it could display it automatically. Since MFC could not directly access this service, I had two options: (1). Implement my own FileSystemWatcher class in unmanaged Visual C++ (2). Provide some kind of hosting ...

XML in .NET: .NET Framework XML Classes and C# Offer Simple, Scalable Data Manipulation     
Total Hits: 68  |  Today: 0Author: Aaron Skonnard      Rating:  
Read Reviews | Write Review |  Your Rating: 

Microsoft .NET introduces a new suite of XML APIs built on industry standards such as DOM, XPath, XSD, and XSLT. The .NET Framework XML classes also include innovations that offer convenience, better performance, and a more familiar programming model, tightly coupled with the new .NET data access APIs—ADO .NET. XmlWriter, XmlReader, and XmlNavigator classes and classes that derive from them, including XMLTextReader and XMLTextWriter, encapsulate a number of functionalities that previously had to...

Using the Zip Classes in the J# Class Libraries to Compress Files and Data with C#     
Total Hits: 45  |  Today: 0Author: Ianier Munoz      Rating:  
Read Reviews | Write Review |  Your Rating: 

Zip compression lets you save space and network bandwidth when storing files or sending them over the wire. In addition, you don't lose the directory structure of folders you Zip, which makes it a pretty useful compression scheme. The C# language doesn't have any classes that let you manipulate Zip files, but since .NET-targeted languages can share class implementations, and J# exposes classes in the java.util.zip namespace, you can get to those classes in your C# code. This article explains how...

Isolate Your UI Code Before It Invades Your Business Layer     
Total Hits: 68  |  Today: 0Author: Mark Seemann      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many applications today have complex user interface requirements with many different screens and complex logic dictating their interaction. Most developers know that they should design their apps in layers, but my experience has shown me that in reality it is much more difficult than anticipated to isolate the user interface from the rest of the application....

c++ program to solve sudoku     
Total Hits: 190  |  Today: 0Author: Member 3262401      Rating:  
Read Reviews | Write Review |  Your Rating: 

c++ program to solve sudoku...........

Fire and Forget Fun: RPC Pings, GET, POST and more.     
Total Hits: 130  |  Today: 0Author: Peter Bromberg      Rating:  
Read Reviews | Write Review |  Your Rating: 

I've covered the asynchronous Fire and Forget pattern several times here and now I want to show a final usage pattern.

Most blogging APIs include the RPC Ping API to ping various RPC servers that you've updated your content. However, this works for any content, not just blog posts or changes in your RSS feed. So, if you have a forums app on your site, you can use it to ask the servers to revisit for a new forum post. Same with a new article, and so on.

Manyy of these RPC ping servi...

Bandwidth Leeching Prevention with Http Handlers     
Total Hits: 79  |  Today: 0Author: Joseph Chahine      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, Joseph explains how important it is to implement Http handlers in web applications to prevent bandwidth leeching.
Unfortunately, a web server is exposed to many attacks targeting its bandwidth leading many times to a denial of service state on the server.

Bandwidth leeching, also called hotlinking, is described by the practice of hosting on a web server, web pages that contain unauthorized content links, known as hotlinks, direct links, or remote links, to files hosted...

Tip/Trick: Adding Authorization Rules to Business and Data Layers using PrincipalPermissionAttributes     
Total Hits: 380  |  Today: 0Author: Scott Guthrie      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, Scott demonstrates how to add authorization rules to business and data layers using PrincipalPermissionAttributes.
Earlier this summer I posted two tutorials on using Windows Authentication with ASP.NET: Enabling Window Authentication within an Intranet ASP.NET Web Application and Implementing Role Based Security within ASP.NET using Windows Authentication and SQL Server. I also linked to Scott Mitchell's great ASP.NET 2.0 Security, Membership and Roles Tutorials that cover ...

TicTacToe for Longhorn using XAML and C#     
Total Hits: 126  |  Today: 0Author: Deepak Kapoor.      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article is a sequel to my previous article - Hello Longhorn. In my last article I said that I will write a XAML version of Hello Longhorn. I changed my mind a bit, and decided to write something a bit more interesting. Thus I came with idea of writing the famous Tic-Tac-Toe using XAML and C#. Oh Ya! If you are a Xbox of Playstation developer, I will say that there is no need to panic as I have no plans to take over the gaming industry (at least not with this game :)).

Even though thi...

A standalone messagebox (good for user interaction during the install process of your application)     
Total Hits: 121  |  Today: 0Author: Ariadne.      Rating:  
Read Reviews | Write Review |  Your Rating: 

The VS2003 implementation of the MSI installer is not as flexible as we developers think...

If you like to (or have to) interact with your user during the installation process you can use the built-in dialog boxes of VS. But these dialog boxes are very limited. If you have to do something special (e.g. tell you user to plug in his USB connector to start the USB plug and play) you have to start a custom action in VS....

Converter for Microsoft Project 2002 XML file to TODOLIST XML file     
Total Hits: 155  |  Today: 0Author: maharishi_b.      Rating:  
Read Reviews | Write Review |  Your Rating: 

I have been using .dan.g.'s ToDoList for a very long time now. It's very easy for me to track things that I have to do and also track the projects on which I am working. But there was always a problem related to the creation of task list. My organization uses Microsoft Project (like many other companies) for tracking projects and the cost of development related to these projects. So, I had to make two tasklists, one for the company and the other for myself. ToDoList is much more simpler when com...

How to find the path of the layouts folder of SPS using IIS interface     
Total Hits: 147  |  Today: 0Author: S. Akif Kamal.      Rating:  
Read Reviews | Write Review |  Your Rating: 

It looks as it is very difficult to programmatically find the layouts folder of SPS using IIS object model but i found it very easy and interesting using directoryservices and I am sure you will have the same opinion....

ErrorProvider - Fix for Disappearing ToolTip     
Total Hits: 178  |  Today: 0Author: Kevin.Molyneaux.      Rating:  
Read Reviews | Write Review |  Your Rating: 

Microsoft's ToolTips have a 'feature' that when you click on a tooltip, the tool tip goes away and does not reappear, which is a major problem with the ErrorProvider messages. This posting presents a hacked solution; I am posting this in hopes that it will bring about a better resolution....

Logging system for .NET SOA applications     
Total Hits: 98  |  Today: 0Author: Anders Revsgaard.      Rating:  
Read Reviews | Write Review |  Your Rating: 

No matter how well you design your system a distributed SOA application is always complex. When a SOA application fails, it can be difficult to track down not only the cause of the problem but also the component and web service where the error occurred. Logs from the same error are likely to be positioned on different machines, collocated with the web service and the consumer participating in the transaction. When finding the cause of the problem it is necessary to piece together logs from diffe...

Implementing IDisposable and the Dispose Pattern Properly     
Total Hits: 101  |  Today: 0Author: Scott Dorman.      Rating:  
Read Reviews | Write Review |  Your Rating: 

In most modern programming languages, memory is allocated on the heap or the stack. Memory allocated on the stack stores local variables, parameters, return values, and is generally managed by the operating system. Memory allocated on the heap is handled differently by different programming languages. In C and C++, memory must be managed manually, while in C# and Java memory is managed automatically.

Even though manual memory management is easier for the language runtime, it adds complexi...

Using DOTNETARX To Develop Your .NET ObjectARX Applications     
Total Hits: 178  |  Today: 0Author: arxbird.      Rating:  
Read Reviews | Write Review |  Your Rating: 

With the newest AutoCAD 2006, the .NET programmers can use the ObjectARX Managed Wrapper Classes to develop their AutoCAD programs. But there are many inconveniences and bugs in the wrapper classes. For example, you cannot do conditional filtering, and many global functions in C++ is not provided in the wrapper class. To solve the problems, I have developed a tool “DOTNETARX” to help the .NET programmers to write the ObjectARX programs more easily....


1  2  3  4  5  6  7  8  9  10  


Disclaimer - Privacy
© 2002-2012 DevASP.net