We help IT Professionals succeed at work.

How to develop smart client in C#

Last Modified: 2008-02-01
I want to develop smart client in C#
the model for smart client is
Windows forms + can be run offline  + automatic updates

so please send me some c# code for this type of smart client
Watch Question


It should run under .NET 1.1 framwork
I think this is a very good complete smartclient that you will be able to use as a reference, and it is in 1.1.

RSS Feed Aggregator and Blogging Smart Client

Hope that helps, Jono


i already gone through it.
I want one simple demo which work as a smart client or tell me some good web site
I gone all of of the codeproject smart clients
so please send good and simple to understand demo of smart client.
It very urgent because i want show my manager
Take a look at this, it is a simple smartclient that will run in offline mode. It looks like it is 1.1 because it was written mid-2004:

This may also help:
Smart Client Application Model and the .NET Framework 1.1


Please, can you provide demo on smart client which do not contain any database related stuff.
Becuase i don't have SQL server on my machine.
Those articles use SQL Server on the web server to return the data back to the client. If you don't want to use SQL Server then what backend do you want to use. Are you aware that SQL Server Express is free. Therefore, when you release your smartclient you will deploy your web services to your web host which would have SQL Server aswell. Let me know what you want to do.


Basically i want to show how smart client works. I want really very simple demo.
Because i am giving only proof of concept; depending on that we will decide the architecture of our product.  
so i want to see what and how it actaully work with code also.

I was thinking on Smart client. How to develop this then I come to know that following architecture, this as follows  
 Application consists of three parts

-Web Service
-Web Server

*Client is on one machine and server is running on other machine (may be on same machine).
*Web service will act as bridge between client and server.
*All the content of server will be in client cache in some folder.
*When application starts; and if network is on then it checks for any updates available.
*If any updates available then it download to the cache. If and uploading is required from it will do this task also.
Here may be text file act like SQL server database.

If i am correct  then please help me regarding this issue.

I am waiting for one of the good demo or site which contains above architecture.

Tthanks for reply.
So really at this stage you are just after a web service that has local caching. If this is just a demo you can just show the web service part and explain the local caching part to your manager. Let me know if you do want to code the caching part for this demo too, however it will be a bit more work.

Take a look at these 2 articles for web services, the first gives you more information and screenshots however doesn't show you how to consume the web service from your app; the second article tells you that.

Your first C# Web Service

Web Service Tutorial in C#


Yes I want Local caching Demo ? please explain and how it Work ?
It depends on what data you want to store/cache that the smartclient needs offline access to.

This article is very good at explaining what problems you will have with offline caching and how to go about making it work. I am aware that this article is for .NET 2.0 however most of the code will be very similar. Jump down to about 3/4 of the way down the page to "Data Access", this starts with getting data from server to client and leads on to data caching. For me to help you anymore I need to know what you want to do cache on the client.



See basically i want to develop application which work offline and when it connected to internet then it automatically it updates provided that updates are avialble. The update may be new windows form or redesigned windows form or any other userinterface related or may be backend but we are not suppose to database related things.

Please try to give solution according this criteria.
I understand now, you are not after data caching you want to update the actual Smart Client *.exe. You would know that .NET 2.0 has ClickOnce deployment which can easily do this; is there a compelling reason not to use .NET 2.0? I'll find an updater for 1.1 though.
This one is on us!
(Get your first solution completely free - no credit card required)


Thanks for giving such useful inforamtion.

Now I am working with provided links. These are very helpful for me.
I will check and confirm you whether it work in way that i want.
Once again thanks for co-operation.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.