Wednesday, 15 December 2010
Error: Could not load type ‘System.Data.Services.Providers.IDataServiceUpdateProvider’ from
http://fabiangwilliams.wordpress.com/2010/07/06/errorresolution-could-not-load-type-system-data-services-providers-idataserviceupdateprovider-from/
Tuesday, 9 November 2010
httpRuntime executionTimeout
<system.web>
<httpRuntime maxRequestLength="51200" executionTimeout="9999" />
</system.web>
Monday, 8 November 2010
Wednesday, 13 October 2010
How to get SPUser name from User Id?
string userName= web.AllUsers.GetByID(Convert.ToInt32(userid)).Name;
http://firstblogofvarun.blogspot.com/2009/03/how-to-get-spuser-name-from-user-id.html
Friday, 8 October 2010
Request failed with HTTP status 417: Expectation failed
In Web.config
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy proxyaddress="http://192.168.22.11:3118" bypassonlocal="True" usesystemdefault="True" />
</defaultProxy>
<settings>
<servicePointManager expect100Continue="false" />
</settings>
</system.net>
http://symmetri.blogsome.com/2008/09/01/request-failed-with-http-status-417-expectation-failed/
http://social.msdn.microsoft.com/Forums/en-US/devdocs/thread/60cd6e6a-4157-4811-8ed3-1e46f9022ea8
Monday, 27 September 2010
CAML query for retrieving ListItems where fieldType is 'User'
SPList spList = spWeb.Lists["List Name"];
SPQuery spQuery = new SPQuery();
spQuery.Query = camlQuery;
SPListItemCollection listItemCollection = spList.GetItems(spQuery);
http://www.saturnvibes.com/SharepointProjectServer2007/post/2009/04/16/CAML-query-for-retrieving-ListItems-where-fieldType-is-User.aspx
Wednesday, 22 September 2010
SharePoint: Internet Explorer'da Session Çalışmaması
Örnek: http://sharepoint_site
Çözüm:
SharePoint 2007: Central Administration > Operations > Alternate Access Mappings
SharePoint 2010: Central Administration > System Settings > Configure alternate access mappings
Add Internal URLs ->
Zone = Intranet
Save.
Referans:
http://vspug.com/sean/2007/07/11/internet-explorer-blocks-sharepoint-from-using-session-cookies/
Monday, 13 September 2010
Sunday, 5 September 2010
Friday, 3 September 2010
Thursday, 2 September 2010
Wednesday, 1 September 2010
Error: "The list cannot be displayed in Datasheet view for one or more of the following reasons:..."
1. Download and install the 2007 Office System Driver for Data Connectivity Components.
or
2. Install the 2007 SharePoint Services Support, which is available on the Microsoft Office 2007 installation media.
Reference:
http://njbblog.blogspot.com/2010/06/sharepoint-datasheet-view-office-2010.html
Sunday, 29 August 2010
SharePoint 2010: Cannot find link to Master Page / Page Layouts?
1. Click on “Site Actions”
- Click on “Site Collection Features”
- Enable “SharePoint Server Publishing Infrastructure”
2. - Click on “Site Actions”
- Click on “Manage site features”
- Enable “SharePoint Server Publishing”
Saturday, 28 August 2010
Session state can only be used when enableSessionState is set to true ... SharePoint 2010
In web.config
1. <pages enablesessionstate="true">
2. <modules runallmanagedmodulesforallrequests="true">
..
..
<remove name="Session">
<add name="Session" type="System.Web.SessionState.SessionStateModule" precondition="">
3. <pageparserpaths>
<pageparserpath virtualpath="/*" compilationmode="Always" allowserversidescript="true" includesubfolders="true"></pageparserpaths>
Save and exit.
Thursday, 26 August 2010
How to create Custom Page Layouts?
http://svengillis.blogspot.com/2010/06/inconvenient-editmodepanel-control.html
http://blog.henryong.com/2010/06/08/how-to-create-custom-sharepoint-2010-page-layouts-using-sharepoint-designer-2010/
http://www.tonstegeman.com/Blog/Lists/Posts/Post.aspx?List=70640fe5-28d9-464f-b1c9-91e07c8f7e47&ID=35
http://avikercode.blogspot.com/2010/07/how-to-create-sharepoint-publishing.html
http://www.digcode.com/Default.aspx?g=posts&t=278
Wednesday, 25 August 2010
Friday, 20 August 2010
Thursday, 19 August 2010
LLBLGen - EntityCollection to DataTable Conversion?
where TEntity : EntityBase, IEntity
{
List
EntityFields.ConvertToProjectors(collection.EntityFactoryToUse.CreateFields());
DataTable dt = new DataTable(TableName);
collection.DefaultView.CreateProjection(propertyProjectors, dt);
return dt;
}
Reference: http://www.llblgen.com/tinyforum/GotoMessage.aspx?MessageID=77377&ThreadID=3861
Wednesday, 18 August 2010
Tuesday, 17 August 2010
Forms Authentication with Active Directory in ASP.NET
http://blog.jumptree.com/2008/active-directory-and-aspnet-forms-authentication/
http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx
http://stackoverflow.com/questions/306652/asp-net-application-to-authenticate-to-active-directory-or-sql-via-windows-authen
Monday, 16 August 2010
Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008
Friday, 13 August 2010
Thursday, 12 August 2010
Tuesday, 10 August 2010
CheckBoxList Checked Items
public static class CheckBoxListExtender
{
public static List<ListItem> CheckedItems(this CheckBoxList list)
{
List<ListItem> col = new List<ListItem>();
foreach (ListItem item in list.Items)
{
if (item.Selected)
col.Add(item);
}
return col;
}
}
“An unexpected error has occurred” error message in SharePoint.
Here are the steps for getting the full error messages
1)Go to the MOSS site for which you would like to enable it.
Most likely to be found at c:\inetpub\wwwroot\wss\VirtualDirectories and a sub directory with your web application’s port number.
2) Locate and open the web.config file for editing.
3)Find out the following entry
<SafeMode MaxControls=“200“ CallStack=“false“ DirectFileDependencies=“10“ TotalFileDependencies=“50“ AllowPageLevelTrace=“false“>
And make following changes to it
<SafeMode MaxControls=“200“ CallStack=“true“ DirectFileDependencies=“10“ TotalFileDependencies=“50“ AllowPageLevelTrace=“true“>
4) And
<customErrors mode=“On“ />
To
<customErrors mode= “Off“ />
5)Save and close web.config.
Reference:
http://nishantrana.wordpress.com/2009/03/24/%E2%80%9Can-unexpected-error-has-occurred%E2%80%9D-error-message-in-sharepoint/
SharePoint Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.
in web.config
<trust level="WSS_Minimal" originUrl="" />
to
<trust level="Full" originUrl="" />
Saturday, 7 August 2010
How to remove Site Actions and View All Site Content
<SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="ManageWeb">
<<SharePoint:SiteActions control>>
</SharePoint:SPSecurityTrimmedControl>
To check the permission set Enumeration check this:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx
Reference: http://www.sharepointkings.com/2008/11/how-to-remove-site-actions-and-view-all.html
Thursday, 22 July 2010
IIS Process ID for pool
run C:\Windows\System32\Inetsrv\appcmd.exe LIST WP
Tuesday, 1 June 2010
Değere göre CheckBox'ın seçili olmasını sağlamak
[C#]
Referans: http://www.mikesdotnetting.com/Article/53/Saving-a-user%27s-CheckBoxList-selection-and-re-populating-the-CheckBoxList-from-saved-data
Monday, 31 May 2010
Sadece rakam girilmesine izin vermek
[C#]
txtCompanyPhone.Attributes.Add("onkeypress", "return isNumberKey(event);");
[JavaScript]
function isNumberKey(evt) {
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode <> 57))
return false;
return true;
}
Referans: http://www.cambiaresearch.com/c4/029c978b-aac5-472e-97a8-95b256f5febd/How-Can-I-Use-Javascript-to-Allow-Only-Numbers-to-Be-Entered-in-a-TextBox.aspx