What are the limits of WebForms?

Posted on 2004-11-05
Last Modified: 2010-04-15

I'm a C# developer with no experience yet with WebForms, just C# Window programs and C# web services.  So I'm looking for help to answer this question so I can more properly size the project I'm working on.

I need a thin client (browser only) into which I will code some compute intensive functionality which will allow the client to have near real-time response time.  There will be various controls, such as list boxes, radio buttons, and the like, with which the user will interact.  But because the user's time will be extremely limited, the time lost by sending to, and receiving from, a server over the web will render the interface useless.  So I'd like to build in lots of intelligence into the client (via webforms?), which will include not only the logic which is needed to inter-relate the controls, but a good amount optimization code (2,000-5,000 lines of C#) as well.  Plus there may be several megabytes of data needed as well.

Is this something I can do with webforms?  If not, is there another .NET technology I can use?  If webforms is the right technology, what limits are there, as far as the amount of code I can use, or the amount of data I can use?

Question by:ba272
    1 Comment
    LVL 20

    Accepted Solution

    It does not matter what technology you are using for Web applications. The idea is always that you have some code on the server (C# for example) which executes and creates as a result a HTML page which it sends to the browser of the client. The page reaches the browser and the server forgets about this client. Everything that happens in the browser is actually on the client machine. It can use several technologies there:
    - JavaScript
    - VB Script
    - ActiveX controls
    JavaScript is the most used one. VB Script is supported only by IE (I think) and is not so widely used. ActiveX controls can be written in C, C++, C#, VB, etc. but they have a lot of security issues (they have full control just as Windows applications). Because of this and the fact that they are supported only on Windows, they are not preferred and are even disabled on a lot of machines.

    So for your case: if you have megabytes of data which you have to process and you need such huge codes (2000-5000 lines C# code), I think you should change your strategy. You will have to make every computation on the server and just send results (UI) to the user. The WebForms in C# are just a convenient way to execute things on the server, but the result should be always a HTML page with some kind of script. This script will not have access to your huge data and is very limited (no libraries, no strong typing, etc.)

    Once again: I think C# and .Net are the right technology for you. You will not be able to achive any better results with whichever other technology, as they all have to produce HTML files with scripts at the end.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
    Article by: Najam
    Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now