sharepoint

Get HTML of a web page using C#.NET

Below i am using a function that takes a web page full url as string and return back HTML of that page as string. You can use this returned HTML in your code as per your requirement. Step 1: First import 2 namespaces that are required by this function to work. using System.IO; using System.Net; Get HTML of a web page using C#.NET

File Download from SharePoint Document Library in Forms Based Authentication Scenario

I was writing the code for downloading a file from a SharePoint document library using Forms Based Authentication. Every time file was getting downloaded with 8kb of size when i was opening them they were showing that file is not supported. I opened one of downloaded files that was actually a word file, in notepad File Download from SharePoint Document Library in Forms Based Authentication Scenario

Resolved: Site Collection Administrator has limited permission to site.

Today i restored a moss site backup on a new port at my server. This site had Forms based authentication, after implementing all the settings i logged in as a site collection administrator in to the site. When i click Site Actions links, i found some options are missing in the menu e.g. “Edit Page”, Resolved: Site Collection Administrator has limited permission to site.

The trial period for this product has expired SharePoint: Resolved

I was getting this error in case of Publishing site e.g. Creating a publishing site, creating a publishing page etc. There are so many resolution on internet regarding this issue but nothing helped for me. So how i resolved this issue is discussed below: Download “office2007-kb971620-fullfile-x86-glb.exe” from http://support.microsoft.com/kb/971620/en-us After download, double click “office2007-kb971620-fullfile-x86-glb.exe” to run. The trial period for this product has expired SharePoint: Resolved

Convert date from dd/MM/yyyy to MM/dd/yyyy for storing in SharePoint list or Sql Server Database

I was working on a custom web part that takes the date in Indian format e.g. dd/MM/yyyy while inserting the record in SharePoint custom list. But as we know that SharePoint custom list insert the date value as MM/dd/yyyy format. So it was throwing me the error for invalid string format so below is the Convert date from dd/MM/yyyy to MM/dd/yyyy for storing in SharePoint list or Sql Server Database

Resolved:Use Microsoft.SharPoint namespace in Inline Code of .ASPX Page

Its 2:17 AM of night and I am working with a pop up window to use in sharepoint due to this i took a .aspx page provided in visual studio so i have to wrote some inline code that uses Microsoft.SharePoint name-space. Below is the code snippet for utilizing Microsoft.SharePoint in inline code: <%@ Page Resolved:Use Microsoft.SharPoint namespace in Inline Code of .ASPX Page

Hide View All Site Content and Recycle Bin in Quick Launch: Resolved

I assigned a task to hide “View All Site Content” and “Recycle Bin” link from left hand navigation of sharepoint site. I wanted to implement this without editing the master page in SharePoint Designer. I just open the page where i want to hide these links, i checked the source of that web page by Hide View All Site Content and Recycle Bin in Quick Launch: Resolved

Resolved: No SharePoint Site exists at the specified URL

I created a blank solution in VS2008 and added 8 projects in this solution. Out of 8 projects 6 were the different class library project, 1 was for Event Receivers and 1 was for Web Parts using VSeWss 1.3. Now i created a new web part inside web part project code it according to my Resolved: No SharePoint Site exists at the specified URL

Resolved: An object in the SharePoint administrative framework could not be deleted because other objects depend on it.

I was deleting a web application from my sharepoint server using CA.I checked for “Delete content databases” and “Delete IIS Websites” and then press delete. After that a error window appears in screen and states that “An object in the SharePoint administrative framework, “SPWebApplication Name=Dhondiyals’ Site Parent=SPWebService”, could not be deleted because other objects depend Resolved: An object in the SharePoint administrative framework could not be deleted because other objects depend on it.

Resolved: Administrative service for this server is not enabled

Yesterday one of my developer installed a web part using addsolution command of stsadm, After that he navigate to Central Administration > Operation Management > Solution Management. He tried to deploy the installed web part in more then one web application immediate and encountered an error that “The timer job for this operation has been Resolved: Administrative service for this server is not enabled