Posted by Ajay Matharu in Google, Information, SEO, Search Engine, Technical, Technology, WebOct 9th, 2009 | 1 Comment
What is the issue?
One of the most common challenges search engines run into when indexing a website is identifying and consolidating duplicate pages. Duplicates can occur when any given webpage has multiple URLs that point to it. For example:
URL
Description
http://mysite.com
A webmaster may consider this their authoritative or canonical URL for their homepage.
http://www.mysite.com
However, you can add ‘www’ to most websites and still get the same home page.
http://mysite.com/default.aspx
You can also often add the specific filename of the homepage and get the same page
http://mysite.com/default.aspx?promo=ABC
Many...
Posted by Ajay Matharu in .Net, ASP.Net, Development, Sharepoint, Technical, TechnologyJul 25th, 2009 | No Comments
Here is the way we can add item level permission for a user on an item,
SPRoleDefinition oUserRole;
SPRoleAssignment oUserRoleAssignment;
SPListItem itm;
SPSite site = null;
SPWeb web = null;
string siteUrl = Request.Url.ToString();
site = new SPSite(siteUrl);
web = site.OpenWeb();
SPGroup grp = web.Groups[groupname];
itm=web.Lists["Shared Documents"].Items[0];
oUserRole = web.RoleDefinitions.GetByType(SPRoleType.Administrator);
oUserRoleAssignment = new SPRoleAssignment(loginName, emailId, userDisplayName, notes);//for user
or
oUserRoleAssignment = new SPRoleAssignment(grp);//for group
oUserRoleAssignment.RoleDefinitionBindings.Add(oUserRole);
itm.RoleAssignments.Add(oUserRoleAssignment);
web.AllowUnsafeUpdates...
Posted by Ajay Matharu in Technical, Visual StudioJul 24th, 2009 | No Comments
Today I went through one of the video that showed how to work with LINQ and while going through I saw something which I had seen many a times before but everytime I forget about that, but this time I remembered.
What I saw was the person who showed a small demo on the LINQ started to write something, in the class he wrote some 2-3 words and the code for the class appeared automatically. I used to wonder on how they do that so I thought let me check on that, you just write couple of words and you have your class ready with you. After doing some research on that here is what I have.
This is a...
Posted by Ajay Matharu in Internet Explorer, TechnicalJul 22nd, 2009 | 2 Comments
(1) IE7Pro (only IE 7) – little overwhelming and takes some time to get used to, but totally worth it. Includes powerful tab manager, AD or Flash blocking utility, Crash recovery, Proxy switcher, Web accelerator, User Agent switcher, Webpage capturer, Greasemonkey scripts support, Firefox style inline search, spell checker and some more.
(2) LeechVideo – handy IE addon that lets you download favorite videos from popular video sharing websites (i.e. Youtube, Google Video, DailyMotion, etc.). Other alternatives: Viloader | Video Downloader
(3) Inline Search – integrates an in-page...
Posted by Ajay Matharu in Development, Microsoft, Sharepoint, Technical, TechnologyJun 10th, 2009 | No Comments
Hi Guys,
While working on the Sharepoint, I came across this error “Sharepoint site does not exists at mentioned URL”. On searching something I found that we’ll have to change the URL under the Project Properties.
Enter Sharepoint Site URL