August 25, 2009

Finding Outlook Contact by Email, firstname and lastname in C#

use the below code to find the outlook contact by firstname and lastname in c#
all the best


private void ThisApplication_Startup(object sender, System.EventArgs e)
{
FindContactEmailByName("Sateesh", "kumar");
}

private void FindContactEmailByName(string firstName, string lastName)
{
Outlook.NameSpace outlookNameSpace = this.GetNamespace("MAPI");
Outlook.MAPIFolder contactsFolder =
outlookNameSpace.GetDefaultFolder(
Microsoft.Office.Interop.Outlook.
OlDefaultFolders.olFolderContacts);

Outlook.Items contactItems = contactsFolder.Items;

try
{
Outlook.ContactItem contact =
(Outlook.ContactItem)contactItems.
Find(String.Format("[FirstName]='{0}' and "
+ "[LastName]='{1}'", firstName, lastName));
if (contact != null)
{
contact.Display(true);
}
else
{
MessageBox.Show("The contact information was not found");
}
}
catch (Exception ex)
{
throw ex;
}
}

August 19, 2009

301 Redirect in asp, asp.net, perl, coldfusion, Ruby on Rails, iis,cgi perl, php, htaccess

301 redirect is the Search Engine Friendly method for webpage redirection.
The code "301" is interpreted as "moved permanently".

Below are different methods to implement URL Redirection

IIS Redirect

In internet services manager, right click on the file or folder you wish to redirect
Select a redirection to a URL
Enter the redirection page
Check exact url entered above and A permanent redirection for this resource
Click on Apply

ColdFusion Redirect
<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="http://www.new-url.com">

CGI PERL Redirect
$q = new CGI;
print $q->redirect("http://www.new-url.com/");

Ruby on Rails Redirect
def old_action
headers["Status"] = "301 Moved Permanently"
redirect_to "http://www.new-url.com/"
end


ASP Redirect
<%@ Language=VBScript %>
<% Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www.newurl.com/" %>

PHP Redirect



ASP .NET Redirect


JSP (Java) Redirect
<% response.setStatus(301); response.setHeader( "Location", "http://www.new-url.com/" ); response.setHeader( "Connection", "close" ); %>


Redirect Old domain to New domain (htaccess redirect)

Create a .htaccess file with the below code,
it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

Please REPLACE www.newdomain.com in the above code with your actual domain name.

In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

Redirect to www (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

Please REPLACE domain.com and www.newdomain.com with your actual domain name.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

More ways visit : http://www.webconfs.com/how-to-redirect-a-webpage.php

August 5, 2009

ICWAI Foundation Result June 2009

THE INSTITUTE OF COST & WORKS ACCOUNTANTS OF INDIA
JUNE-2009 EXAMINATION > DATE 04/08/2009

A premier, dynamic, vibrant professional institution actively associating itself in the industrial and economic development of the nation. The profession places itself at the service of the nation, government, industry, and the society to realise the objectives of a welfare state resulting in the prosperity and the well being of its people - a fact increasingly realised with the opening up of the country's economy and change in the economic scenario of the world.

Foundation Result June 2009


1. Press Release (Foundation Result) ----- http://www.icwai.org/icwai/docs/foundJ09.TXT
2. Check your result online ---- http://www.icwai.org/icwai/students-foundationresult.asp


Inter Result for June 2009


1. Coming Soon


Final Result for June 2009


1. Coming Soon

RW reports




Goldmine is a great crm application but reporting can be difficult. The RW reports software is very easy to use and is priced very competitively.

We have a huge amount of experience working with data and seeing that reporting on Goldmine data is not easy we modified our Report Writer so that you can create the reports you need in a totally new way. The objective of this software is to be able to create standard reports with the least complicated tools. We've cut out the rarely used reporting functions that make some systems too "busy", and we've concentrated on the most common tasks - just to make your life easier!

Use RW reports for

* Standard data lists
* Standard data lists with summaries
* Summary reports
* Cross-tab/pivot-table reports
* Chart

more info: www.rwreports.com