Friday, December 14, 2012

Hurry Upp - Improve Alexa rating

1. Download Alexa Toolbar

The toolbar is quite useful to keep track of your sites ranking.

2. Write Blog Post about Alexa

Just like other networks, Alexa do love sites which posts content about it and let their users know the credibility and value they possess in current internet market. A post linking to them with a few words about their services and boom! Alexa will notice and make you go up the rank ladder a few steps.

3. Ask for reviews

If you ever had visited your Alexa site rank with concentration you must have seen that reviews tab? Yeah if it’s there, it must be helping their service to rank websites and positive reviews will surely do wonders for your rank. If you have a trusted user base you can ask your traffic to write reviews about your site or if you are new on the ladder, get some friends do it for you in start and leave rest for your audience.

4. Submit your blog to directories

Alexa tracks your back-links as well, so the more links you’ll have pointing your site either direct or deep it doesn’t matter much, you’ll get notice by them which will increase your web rank. This will also help your SEO campaign as Google also love and track links to the site and it helps them count your search engine rankings, but make sure the links are useful, originating from authentic sites with nice reputation and of the same niche as yours.

5. Place Alexa widgets:

Just like I pointed out earlier, the more you’ll love Alexa on your site the earlier you’ll climb up the rank ladder. So make sure you are having their widgets on your site or blog. If your site is under 100K you can also place the traffic stats widget as well which will surely look good in your site bar or footer if its widget ready or else go with the simple site rank widget at least.

6. Get more people to your site

More people = More Traffic and ultimately better rank. Sounds natural? So get some quality content on your blog and promote your blog or web which will ultimately bring you traffic and your rank will shoot as well.

9. Auto Traffic Exchange

Traffic Exchange programs bring a lot of traffic to your blog, although the quality isn’t much worthy and often it increase your bounce rate as well as the traffic is more interested in getting paid or to get the source they clicked for. So traffic exchange does work but comes with its cons too which you should keep in mind too while opting for it.

10. Offer guest post with quality content

I know a number of just started blogger who avoid linking to others, or allowing someone else to post on their blog, I too was like that in past, but remember in blogging you are dealing with the world wide web and you can never get attention of others while resting in isolation, you’ll have to make your own space and give some to others. So allow other bloggers to post on your blog, do the same and the results will be fruitful like nothing other but make sure that the content you post or ask other to publish is original and of worth. This will end with a boost to your Alexa rank certainly.

11. Leave comments on high ranking sites

You see that Sites Linking IN under the Reputation heading? It obviously matters and the more you have links to your site the more your alexa rank will climb and the more SE Juice you’ll get. Now how to get links? One of the easiest methods to get links is to check well ranked sites on Alexa and leave a nice comment there with a backlink to your site. Although the link will be “no-follow”, but it will certainly drive targeted traffic to your site.
Make sure what you left there is not a piece of junk which will be sooner or later removed by some moderator rather write what will build your reputation, motivate comment readers to check in and visit the link you left there.
You’ll lose a lot of traffic by just saying:
Hi! Nice article, please check my site at:
Rather a nice article with a related link and brief introduction will surely help you gain user trust and they’ll visit your link for more in depth knowledge.

12. Frequency of posts

I tried it myself and get no real benefit, but it’s quite common community trend to ask new bloggers and authors to publish their content on a fixed time. This will help the crawler know when you publish your content and it will be already there to index your site as early as possible, also this will boost your rank and ultimately will increase your loyal readership who’ll actually then know when they’ll find some more interesting information on your site.
This technique is not applicable to a few niches including tech updates, news etc. as they have to break the news as earlier as possible and they can’t actually wait for their posting time to come. So make your decision keeping in view your niche demands.

13. Branding with your name on other sites (Gravtor)

Brand your site on other platforms with the help of a logo gravtor, this will give you a unique presence and will also increase your online reputation which ultimately leads to more traffic, more ranking.
Get famous = Get Online Presence = Get More Traffic = Get Nicer Ranks
Simple, isn’t it? So why not start acting then?

14. Social networks (Facebook/Twitter/ G+)

Search engines now a day crawl all these places to get some more information on who’s in trending now? Which site’s content is getting viral and doesn’t give a damn about all these places and just keep on seeding content on their site.
Make sure you use all these platforms to engage your readership and keep them busy with your latest content. Their likes, shares, retweets, +1s all will count to the big cause and will drive your more traffic and more rank.
And the last tip which is import of all:

15. “Remember, Content is KING”

The heading says it all, no more explanations.

Foot Note:

Did you know that the average person spends just 7 seconds on a resume?
The point is that people have short attention spans, and if you write in huge paragraphs, with no proper formatting, you’ll likely lose readers. After the 1,300th word, people’s eyes start glazing over, unless it’s superbly written. This post consists of 1297 words, so I am pretty much on track.

Monday, December 3, 2012

What is C#.NET Generics? where we can used in real time?

Generics were added to version 2.0 of the C# language and the common language runtime (CLR). Generics introduce to the .NET Framework the concept of type parameters, which make it possible to design classes and methods that defer the specification of one or more types until the class or method is declared and instantiated by client code. For example, by using a generic type parameter T you can write a single class that other client code can use without incurring the cost or risk of runtime casts or boxing operations, as shown here:

// Declare the generic class. public class GenericList { void Add(T input) { } } class TestGenericList { private class ExampleClass { } static void Main() { // Declare a list of type int. GenericList list1 = new GenericList(); // Declare a list of type string. GenericList list2 = new GenericList(); // Declare a list of type ExampleClass. GenericList list3 = new GenericList(); } }

Lacy Print PDF Document Pages by PDF Viewer with C#, VB.NET

Step1. Create a new project.

1.      Create a new project in Visual Studio. Please note that this project needs a Form.

2.      Set the Target Framework of This project to be .NET Framework 2 or above in Properties.

Step2. Add reference and Set up the Form.

1.      Add Spire.PDFViewer Form Dll as reference from your downloaded Spire.PDFViewer.

2.      Add a toolScript  and pdfDocumentViewer in the default Form " Form1".

3.      Add two buttons and a ComboBox  in Form1 from toolScript dropdown list

4.      Set the "Name", "Display Style", "Text" and "ToolTipText" of button1 in Properties to be "btnOpen", "Text", "Open" and "Open PDF document" and button2 to be "btnPrint", "Text","Print" and "Print PDF document".

5.      Set the Dock property of pdfDocumentViewer in order to view PDF file page in a enough space.
Step3. Print PDF Document Pages by PDF Viewer

1.      Add below namespaces at the top of the method.

C# Code:
using System.IO;
using Spire.PdfViewer.Forms;

VB.NET Code:
Imports System.IO
Imports Spire.PdfViewer.Forms
2.      Load a PDF document from system

C# Code:
        private void Form1_Load(object sender, EventArgs e)
            string pdfDoc = @"D:\michelle\e-iceblue\Spire.PDFViewer\Demos\Data\Spire.Office.pdf";
            if (File.Exists(pdfDoc))

VB.NET Code:
         Private Sub Form1_Load(sender As Object, e As EventArgs)
         Dim pdfDoc As String = "D:\michelle\e-iceblue\Spire.PDFViewer\Demos\Data\Spire.Office.pdf"
                 If File.Exists(pdfDoc) Then
                 End If
         End Sub
3.      Open the PDF document

C# Code:
        private void btnOpen_Click(object sender, EventArgs e)
            OpenFileDialog dialog = new OpenFileDialog();
            dialog.Filter = "PDF document (*.pdf)|*.pdf";
            DialogResult result = dialog.ShowDialog();
            if (result == DialogResult.OK)
                string pdfFile = dialog.FileName;
VB.NET Code:
         Private Sub btnOpen_Click(sender As Object, e As EventArgs)
                 Dim dialog As New OpenFileDialog()
                 dialog.Filter = "PDF document (*.pdf)|*.pdf"
                 Dim result As DialogResult = dialog.ShowDialog()
                  If result = DialogResult.OK Then
                 Dim pdfFile As String = dialog.FileName
                 End If
         End Sub
4.      Print PDF document pages by PDF Viewer

C# Code:
        private void btnPrint_Click(object sender, EventArgs e)
            if (this.pdfDocumentViewer1.PageCount > 0)
        private void pdfDocumentViewer1_PdfLoaded(object sender, EventArgs args)
            int totalPage = this.pdfDocumentViewer1.PageCount;
            for (int i = 1; i <= totalPage; i++)
            this.comBoxPages.SelectedIndex = 0;
        private void pdfDocumentViewer1_PageNumberChanged(object sender, EventArgs args)
            if (this.comBoxPages.Items.Count <= 0)
            if (this.pdfDocumentViewer1.CurrentPageNumber != this.comBoxPages.SelectedIndex + 1)
                this.comBoxPages.SelectedIndex = this.pdfDocumentViewer1.CurrentPageNumber - 1;
        private void comBoxPages_SelectedIndexChanged(object sender, EventArgs e)
            int soucePage = this.pdfDocumentViewer1.CurrentPageNumber;
            int targetPage = this.comBoxPages.SelectedIndex + 1;
            if (soucePage != targetPage)

Client side file size validation using javascript

uploading file in rad Asynchronous upload and validating file size using java script or validating uploaded file size from client side

Here in this article i am going to explain how to make validation for file which is uploading in JavaScript. I am using a third party tool called "Telerik". In this third party tool we have a lot of features for our convenience. Here i am checking the Uploaded file size limit up to 2MB. When ever the file size get exceeded the limit then we can validate and remove the uploaded file from the list. Check the example in the below link.....

Bind DropDownList from javascript

Generally DropDownList also we can bind from clientside. The step by step procedure i have mentioned here.

 we have to get the data from the database and need to bind to dropdown means we need to get it on "ListView" is the better way. I have used PageMethods to get the data to clientside.

<script type="text/javascript">

        function pageLoad() {

        function CallMethod(result) {
            var ddl = document.getElementById("ddl");
            for (D = 0; D < result.length; D++) {
                opt = new Option(result[D], result[D]);


Here the pageLoad method works just like server side pageload event. In this pageload i have got data and binded to dropdownlist. In CallMethod function "result" indicates the obtained data which we need to bind to dropdown in the form of list.


    public static List<string> GetData()
        List<string> list = new List<string>();
        return list;

By this pageMethod list<string> is returning to javascript function.

You can get the sample code by the attached document.....

Difference between .ToString and “as string” in C#

There is a simple but important difference between these three…
ToString() raise exception when the object is null
So in the case of object.ToString(), if object is null, it raise NullReferenceException.
Convert.ToString() return string.Empty in case of null object
(string) cast assign the object in case of null
So in case of
MyObject o = (string)NullObject;
But when you use o to access any property, it will raise NullReferenceException.