Monday, July 20, 2009

Page.MetaDescription and Page.MetaKeywords in asp.net 4.0

As i have in my earlier post Search Engine optimization is necessary for every sites otherwise site will not have more users and viewers. For search engine meta tag are very important one Search engine crawler get information from this meta tags. There lots of meta tag but most important meta tag are keyword and description. From keyword meta tag search engine crawler get information about keyword for which they list this site page and from the description tag they will get descriptive information about particular page.

ASP.NET 4.0 introduces support for this. Now you can create your own meta tag keyword and description with the help of Page.MetaDescription and Page.MetaKeywords. It will render as same description and keyword meta tags in simple HTML Page. For example if you write following in your page_load event.

protected void Page_Load(object sender, EventArgs e)
{
Page.MetaDescription = "This page contains information about asp.net 4.0";
Page.MetaKeywords = "ASP.NET 4.0,Search Engine Optimization";
}
It will render meta tag as following.
<meta name="description" content="This page contains information about asp.net 4.0" />

<meta name="keywords" content="asp.net 4.0, Search Engine Optimization" />

So now with asp.net 4.0 you can do your site search engine optimization very easily and you don’t have to write code for that.
Share:

Permanent redirection in asp.net 4.0

We all need search engine optimization in our sites. With web 2.0 site its necessary that our site is search engine friendly because if i write this blog but nobody comes to read my blog then what is the worth of it. So for every thing we need to have search engine optimization whether its a blog,site or any thing on web.

For Search Engine Optimization one of the most important thing is the permanent redirection with 301 headers. Now all you say what is 301 headers lets explore this thing in greater details.

301 Header in SEO:

Every dot net programmer does comes along Response.Redirect – It will redirect from one page to another page which causes 302 redirect. For search engine optimization 302 redirection is document is temporary moved from one location to another location so it will keep indexing the other document as well from which we have redirected. In 301 header it will stop the response from older page. So that search engine can index new location permanently.

We can achieve this functionality in asp.net 4.0 directly with permanent redirect method. Like following. It will create 301 headers for search engines/

Response.PermanentRedirect(“http://jalpesh.blogspot.com”);

With the help of this now you can redirect your 302 pages to 301 which will be more search engine friendly then the older one.

Share:
Sunday, July 19, 2009

IIS 7.0 URL Rewrite Module 2.0 Beta Version is out now.

Url rewriting is an important feature that will enable application to be search engine friendly and make url more readable. IIS 7.0 comes with built in url rewriting module so you don’t need to write more code for url rewriting module. URL Rewriting module will do following for you.

  1. Replace the URLs generated by a web application in the response HTML with a more user friendly and search engine friendly equivalent
  2. Modify the links in the HTML markup generated by a web application behind a reverse proxy.
  3. Fix up the content of any HTTP response by using regular expression pattern matching

You can download IIS 7.0 URL Rewrite Module 2.0 Beta Version from the following.

http://www.iis.net/downloads/default.aspx?tabid=34&i=1904&g=6

It is containing following features.

  1. Rule base url rewriting Engine
  2. Regular Expression Pattern Matching.
  3. Wild card pattern matching.
  4. Global and Distributed rewrite rules.
  5. Access to server variable and http headers.
  6. Various Rule Actions
  7. String manipulation features.
  8. Support for IIS kernel mode and user mode output caching
  9. Failed Request Tracing Support
  10. Rule Templates
  11. UI for testing of regular expression and wildcard patterns
  12. UI for managing rewrite rules and rewrite maps
  13. GUI tool for importing of mod_rewrite rules

For more details about IIS 7.0 Url Rewriting modules visit following links.

http://learn.iis.net/page.aspx/460/using-url-rewrite-module/

http://ruslany.net/2009/07/url-rewrite-module-2-0-for-iis-7-beta/

http://www.15seconds.com/issue/081205.htm

Share:
Saturday, July 18, 2009

Microsoft SilverLight 3.0 is out now-What’s new in Silverlight 3.0?

Microsoft Silvelight 2.0 has been great success for the Microsoft. There lots of rich user friendly animated application is designed with Microsoft Silvelight 2.0. Now with Microsoft has added some new features to Silverlight 3.0. It includes major media enhancement,allowing web applications to view on desktop, Graphic improvement for 3D Support, GPU Acceleration and H-264 Support etc. Following is new feature list for silvelight 3.0
  1. Live and on demand true HD Smooth streaming.
  2. More format Choice.
  3. True HD Playback.
  4. Extensible media format support
  5. Perceptive 3D Graphics
  6. Pixel shader effects.
  7. Bitmap Caching.
  8. Animation Effect.
  9. Enhance control skinning.
  10. Improve text rendering and font support.
  11. Search Engine Optimization
  12. Data Forms and Data Validation.
  13. Application library caching
  14. Binary Xml.
  15. Adobe Photoshop and Illustrator import support
  16. Fully compatible with visual studio 2010.
There are many more features. To know more about him please visit following link. http://silverlight.net/getstarted/silverlight3/default.aspx
If you have any question then you can ask here in silverlight community.http://silverlight.net/Community/
You can get started with silvelight 3.0 with following. Its will be great help and tools available on following link. http://silverlight.net/GetStarted/
Share:

Partial Types, Class and Method in C#.NET 3.0/2.0

With C# 2.0 Microsoft has added partial keyword in C#. So what is partial keyword used for. Lets go through the partial keyword in greater detail.

First and foremost use of the partial keyword is the you can declare one class or method with more then one declaration and at the compilation time it will have one complete class.So now you can declare a class more then one file at the compile time it will be treated as one class.

For example this is one class

//first file Patial Class
public class partial PartialClass
{
   public void First()
   {
     //First function
   }
}
 Here is the another class
public class partial PartialClass
{
   public void Second()
   {
      // Logic...
   }
}
Now at the compile time it will be treat as single class like following.
public class PartialClass
{
   public void First()
   {
      // Logic...
   }
   public void Second()
   {
      // Logic...
   }
}
Same way you can use partial method it will treated as one method as compile time. Partial method will only available with C# 3.0. It will not be available to C# 2.0.

Practical Usage Of Partial Class:

There are lots of way where partial class is useful like many developer can work on same class via creating different files. There are lost of code generators available in market so you can extend the class functionality via marking them partial. Partial class can also be used for the manage code in separate files instead of creating large files. With C# 3.5 linq to sql designer uses this concept to split custom behaviors outside mapping class.

Share:
Friday, July 17, 2009

My blog post is in Microsft TechEd Online Editors Pick List

Microsoft TechEd online is a great community and always been best to learn new thing. I have been proud of associating my self with great community. It’s a great thing to get acknowledgement from community. Recently one of my blog post-Sending email through System.Net.Mail.Smtpmail in asp.net 3.5/2.0 got place in Microsoft Teched editors pick list. It all because of my blog readers thank you for having faith in me. It’s a great honor to have this post is a part of community. Thanks Again………

TechEd

Here is the link for all blog of Microsoft Tech Ed Online..

http://www.msteched.com/online/blogs.aspx

Share:

Subsonic 3.0 is out now- Next Generation Object Relational Mapper

There lots of ORM(Object Relational Mapper) is available now like entity framework,nhibernate, linq, dlinq but i choose subsonic 3.0 for my next application which will be a question answer site for the following reason

  1. Now subsonic 3.0 is with linq support so you can write your lambda expression and linq queries along with the subsonic
  2. It comes with simple repository.
  3. Built in T4 Templates for 4.0
  4. Linq to subsonic.
  5. Subsonic 3.0 templates.
  6. Can handle thousand of queries at a times.
  7. Full support with asp.net 3.5 features.
  8. Ease of Use.
  9. Great support with asp.net mvc

And another great news is that Rob Conery is hired by the Microsoft and subsonic will official ORM for ASP.net Applications.

You can download subsonic 3.0 from here.

http://www.subsonicproject.com/Download

Happy Coding..

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