Boovendan's profileBoovendan's SpaceBlog Tools Help

Boovendan's Space

Boovendan Murugesan

August 22

Optimize Your Site

Things I Have Done

1. HTTP Compression

HTTP compression is used to compress page content from the server end. It compress HTTP requests and responses, so is a great performance improvement. My project is hosted in Windows Server 2003, and I implemented HTTP compression after reading this article.

2. Disable Possible ViewState

View State allows the page state to be persisted with the client, and it does not require cookies or server memory. View State saves data in a hidden input filed inside a page. Definitely, it is a powerful feature, but the drawback is it increases page size and memory allocation in the server.

So, we should avoid View State where it is not necessary. Especially, in the case of DataGrid controls, we should avoid View State as it loads all the grid data in the page state.

In my application, I disabled View State for most of the controls and pages where View State is not necessary. THis made the page sizes smaller.

3. Changes in the Web.Config File
  1. Use page caching:

    This will save your page only for a certain amount of time, and the page will be faster to load. But, remember that if your page data changes frequently, it is not a good idea to use page caching.

    <caching>
    <outputCacheSettings>
        <outputCacheProfiles>
            <add name="cached" duration="600" 
                varyByParam="none" enabled="true"/>
        </outputCacheProfiles>
    </outputCacheSettings>
    </caching>
  2. Remove unnecessary httpModules from the web.config:
    <add name="ScriptModule" 
         type="System.Web.Handlers.ScriptModule, System.Web.Extensions, 
               Version=3.5.0.0, Culture=neutral, 
               PublicKeyToken=31BF3856AD364E35"/>
    <remove name="WindowsAuthentication" />
    <remove name="PassportAuthentication" />
    <remove name="AnonymousIdentification" />
    <remove name="UrlAuthorization" />
    <remove name="FileAuthorization" />
  3. Turn off trace:
    <trace enabled="false" pageOutput="false" />
  4. I propose to disable automatic save for profiles:
    <profile enabled="true" automaticSaveEnabled="false" />
  5. Set debug=false:
    <compilation debug="false">
4. Implement Cache Dependency

Three types of cache dependencies are available:

  1. Caching Dependency on cached items
  2. Cache Dependency on a file
  3. Cache Dependency on SQL

For my project, I used cache dependency on file. For your project, you can choose to use a dependency based on which will be the best fit for your application. Here is a nice example of cache dependency on file.

5. Optimize Stylesheets

It is important to clean up style sheets and remove unnecessary code from style sheets because it increases the load time. Remove all unnecessary classes from style sheets and try to use a single CSS file. In my project, I have used a tool to reduce the size of my stylesheet. I used this service to reduce the size of my CSS file by 20%.

6. Optimize JavaScript

I optimize my JavaScript using this service.

7. JS and CSS File Position

According to the advice from some good articles, I put the CSS file declaration at the top of my master page. It is recommended to call CSS files at the top of a page because the page rendering will progressively become efficient.

I put JavaScript file links at the bottom of the main master file. If we put scripts at the top of the page, then it will cause unnecessarily high load times.

8. server.transfer() Instead of response.redirect()

Where possible, I use server.transfer() instead of response.redirect(). It loads pages faster because it posts only the form, not the complete page.

9. Client-side Script for Validation

For page validation, I use client-side validations instead of postbacks. This way, I reduce round trips in pages.

July 30

Simple Code Snippet in VB.NET

Create Data Set and respective Table Adopters to the table containing Database 
Then you could use the code by replacing the respective names of the components 
Dim nwrow as DataRow = Dataset_name.Table_name.NewRow()
nwrow("col_name")=Value_tobeassigned
Dataset_name.Table_name.Rows.Add(nwrow)
Table_Adopter.Update(nwrow)
July 21

VB.NET Code Snippets.

Try
     TextBox1.Text = TextBox1.Text.Remove(TextBox1.< LENGTH OF TEXT BOX > - 1)
Catch ex As Exception
     TextBox1.Text = ""
End Try
Friends try considering this code to your calculator to the CE activity..
June 03

E-Governance in India

INDIAN E-GOVERNMENT

Overview

      India is a country which is developing for decades, but not yet a developed nation, in connection to this we wish to make a strategy for our nation, an E-Governance system. Until E-Governance implementation nevertheless India going to attain the position of developed country.

     At the beginning when we started to think about E-Governance, we were shocked because our nation already got 113th position in the survey of “UNO readiness” among 179 countries. But till now India not having even a single form to apply online, no services are registered without papers and many of us not aware about E-governance including the highly educated.

     So as a result we started to think off the real E-Gov that is followed in developed nations. And we are here to present a model description to our nation regarding E-Gov. As we have complex governance system and over population, so structuring of E-Gov to our nation is a little bit difficult. Even though, we have tried up to the scope of our knowledge. Here we are presenting the structure, model representation of web forms and the report of the study we made.

 

Definition

  1.      Simply, E-Governance means conducting any aspects of government business Operations and Services over the internet, from providing information by government to paying bills to the government.
  2.      The application of electronic means in: the interaction between government and citizens and government and businesses, as well as in internal government operations to simplify and improve democratic, government and business aspects of Governance.

 

What is E-Governance :

          Imagine a situation in which all interaction with government can be done through one counter 24 hours a day, 7 days a week, without waiting in Queues. In the near future this will be possible if governments are willing to decentralize responsibilities and processes, and if they start to use electronic means such as the Internet. Each citizen can then contact the government through a website where all forms, legislation, news and other Information will be available.

 

Why E-Governance

Inconveniences we face

Human Queues

     In India it perhaps possible to see the god without Queue in Tirupathi temple, But it is not relatively possible to get served from the government without Queue. Now a day’s Queue is a culture of our government

High cost

     India uses 7000 tons of paper for every election as approximately

Time

     Due to unstructured departments and improper system, no serves is reaching in time to the citizens and other business organization.

Forgery

     We cannot map an individual person clearly and completely, so there may be high possibilities to forgery.

Bribery issues

     Bribery became a casual act, which is followed in most of government offices. Example 7 million farmers in Karnataka will give 100-2000 Rs bribe for a single land registering in a year.

Weak communication

     No government offices can communicate with other government offices quickly and there is no accurate data sharing across the departments.

Unbalanced development

     Citizens who are aware about the services will make use of it, and those who are not, is not. So the government fund will not be utilized in a balanced way.

 

The right system to govern the nation

Delivering government services

     All the government services will be delivered through online makes user-centered, convenient, integrated and efficient.

Enabling variety in delivering

     Access to government services and information reflects varying needs of citizen and business organization.

Adding value to information

     People know government information is well managed and they can readily access digital contents.

Providing authoritative data

     Authoritative government registries and other databases each provides a single source of data that can be used across government and that can be accessed to public engagements.

Delivering value for money

     Using technology adds values for both users and government, identify and use opportunities to achieve synergies and ensure technology is used efficiently and effectively.

Enhancing public Engagement

     People are able to contribute online to government policy and service design, development, and delivery, and interact with government.

Strengthening trust and security

     People are confident that accessing government online is secure and trust that government-held information is protected from security threats.

 

What will E-Governance do

               E-Governance widely classified into three to make all the government activities to be simple and efficient.

 

Government to Citizen

E-Government affects everyone

     Technology is part of our daily lives. All citizens and all parts of government are affected by E-Government.

E-Government built trust

     Secure and trusted relationships between people and business and government are a key outcome for E-Government.

E-Government delivering results

     E-Governance means government can deliver better services and make better decisions while protecting people’s privacy. Network technology gives us new ways of collecting and creating, integration and sharing, and storing data information.

E-Government engages people

     Enabling the engagement between people and government will support public debate and encourage greater participation in the design of policies and their delivery.

E-Government makes people first

    E-Government is not just about technology: it gives more choice, makes them more productive and allows them to interact with government in a way that is convenient for them and respects their privacy.

 

Government to Business

E-government is collaborative

     E-Government supports organizations working together: integrating their services, sharing information and technology, and committing to jointly deliver better results.

E-government an expert system

     E-Government can perform the verification task automatically, this will improves the productivity and improve the quality of services delivering to citizens, business, and other government entities.

E-governance can empower business

     E-Governance offered services to assist in business development, specifically the development of small and medium enterprises.

E-governance values banking

     Banking is the area in which IT can dramatically increases government efficiency. E-Governance identifies the peoples for banking.

 

Government to Government

E-government provides quality service

     E-Government is used not just to improve the efficiency of government service but also to improve the quality of government services.

E-government leads accuracy

     It is possible to gather accurate data for the cases of census, tax, and voting.