Friday, March 30, 2007

ASP.NET Caching

Caching is process of saving html and data in browser cache. Some data are difficult to obatin it assumes lot of resouceof the server. The best way to store it in cache. So we can retrive from cache instead doing round trip to the server.There are also some portion of the site does not change frequently so caching is a good idea to store this portion ofwebsite in cahce rather then loadind it from server.

ASP.NET also provide caching features.ASP.NET Caching API provides great features for caching.ASP.NET provide three types of caching.

1) Page Output Caching
2) Page Fragment Caching
3) Data Caching


1) Page Output Caching:

In ASP.NET you can do page output caching with output directive....
Here is the code for output caching

<%@ OutputCache Duration="120" VaryByParam="none"%>

This means that page will cache for 120 second and during that time page will not change with get or post parameters.After 120 second page cache will be flush and then page content can be change by get or post parameters.

2) Page Fragment Caching:

We all know that it is impratical to cache whole page of website. So it is better cache a portion of a website thenwhole page. ASP.NET caching API also provide that feature.

From Following code asp.net can cache categoryid parameter of get and post method.

<%@ OutputCache Duration="120" VaryByParam="CategoryID"%>

You can also cache whole control in asp.net which can be used as portion of parameter.

<%@ OutputCache Duration="120" VaryByParam="none" VaryByControl="ViewCategory" %>

This will cache whole user control called viewcategory.

3) Data Caching:
For that ASP.NET Caching API provides two classes in System.Web.Cache name space.The first class, Cache, is the classwill be using to add and remove items from the data cache. The second class, CacheDependency,is used when assigning a cache dependency to an item in the data cache.

To add an item to the cache you can simply do:


' In VB.NET
Cache("name") = value


// In C#
Cache["name"] = value;


to get value

'IN VB.NET
value = Cache("name")

- or -

//IN C#
value = Cache.Get("name")


That's all..
Happy Programming....
Share:

Make Internet Explorer 6.0 as fast as firefox or IE 7.0

Google has done amazing thing with the speed of browser. Google has provided a software that will increase your browser speed almost 1.5 times.

It works with all browser and It saves lot of minutes of browsing..

here is the link to download that software...

http://webaccelerator.google.com/
Share:
Thursday, March 29, 2007

Building Layered Application with ASP.NET 2.0

There are lots of discussion about building layered application with asp.net 2.0. As we all know this can be done in many way. I have found one interesting article on this.

It covers all the aspects of building layered web application using asp.net 2.0.

here is the link for that article...
http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=416
Share:

Search Engine Optimization tools

Search Engine Optmization is one of the hottest things in this days. I have found great tool that will help you to opmize your sites.

First one is market leap which contains three tools
1) Link popularity tool

Link popularity check is one of the best ways to quantifiably and independently measure your website's online awareness and overall visibility. Simply put, link popularity refers to the total number of links or "votes" that a search engine has found for your website.

here is link for this tool...
http://www.marketleap.com/publinkpop/

2) Search Engine saturation

Search Engine Saturation simply refers to the number of pages a given search engine has in its index for your website domain. Not all search engines report this information but enough of them do to create some meaningful benchmarks for your search engine marketing campaigns.

here is the link for this tool..
http://www.marketleap.com/siteindex/default.htm

3) Keyword Verification.

Key word verification tool checks to see if your site is in the top three pages of a search engine result for a specific keyword. It's important to be in the top 3 pages of a search result because most people using search engines don't go past the 3rd page.

here is the link for this tool...

http://www.marketleap.com/verify/default.htm

second tool is reaction engine...

It is a great tool for seo optimization in your site. It will analyze site on the keypharses and then generate report based on this.

Report will conver following topics..
1) Download Time
2) Parent Time
3) Hosting Information
4) HTTP Headers
5) Html validation
6) Title and metatag
7) Meta data
8) Text view-only text view of your site.
9) Link on site.
10) Keyword density.

here is the link for that tool...

http://www.reactionengine.com/
Share:
Wednesday, March 28, 2007

Tool, Menu, and Status Strips

Windows Forms 2.0 have great control in their stack. ToolStrip and MenuStrip are great example of it. It is a great new control which you can use with application to developer better user interface.

I have found an article on both controls. It describes all the things that realted with toolstrip and menustrip. It also teaches how to another control in toolstrip. It also specifies how to customize the tool strip and menustrip control as per our need.

Here is the link for atricle...

http://en.csharp-online.net/Tool%2C_Menu%2C_and_Status_Strips
Share:

Write better window application

here is the another link for writing better windows application...

http://www.ssw.com.au/ssw/Standards/Rules/RulesToBetterWindowsForms.aspx
Share:

Databinding in .NET Applications

Data binding provides a way for developers to create a read/write link between the controls on a form and the data in their application (their data model). There are several ways to bind datasource with controls i have found very inersting link that covers all the aspects of databinding..

here is the link.....

http://www.akadia.com/services/dotnet_databinding.html
Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews