avinash-moss-expert.blogspot.com
MOSS Solutions: 10/01/2010 - 11/01/2010
http://avinash-moss-expert.blogspot.com/2010_10_01_archive.html
Thursday, October 21, 2010. How to control "Access Denied" page. The SPUtility.HandleAccessDenied method provides the functionality to redirect users to the standard "Access Denied Page" pragmatically, thus asking them to re-logon. One of the scenarios of such usage is the public sites, where access to the standard SharePoint specific pages still exists and you want to block those pages. However, you can handle access denied exception via SPSecurity.CatchAccessDeniedException = true (source). Posted by A...
harryohm.blogspot.com
Lets Share some points on Sharepoint...: Custom List Paging in OOB way
http://harryohm.blogspot.com/2009/05/custom-list-paging-in-oob-way.html
Lets Share some points on Sharepoint. Tuesday, May 19, 2009. Custom List Paging in OOB way. Using (SPSite mySite = new SPSite("site url"). Using (SPWeb myWeb = mySite.OpenWeb(). SPList myList = myWeb.Lists["List Name"];. SPQuery myQuery = new SPQuery();. MyQuery.Query = ". MyQuery.RowLimit = 10;. Set the paging information with query object in case it is required. String strPageInfo = string.Empty;. Prepare the pageInfo string for Previous Page. If (strEvent = "PREVIOUSPAGE"). Gets the result set. 183; s...
avinash-moss-expert.blogspot.com
MOSS Solutions: 03/01/2010 - 04/01/2010
http://avinash-moss-expert.blogspot.com/2010_03_01_archive.html
Friday, March 19, 2010. Error 5337 when Submitting Data from InfoPath 2007 to a SharePoint List. There might be two reasons:-. In infopath editor, Go to form option, set full trust and create trusted certificate. That should make it work. 2 If you are using RunWithElevatedPrivilages or updating list. This happens mostly when you call SPListItem.Update inside the RunWithElevatedPrivileges block. So you should. 8226;Declare your SPWeb object outside elevated block. SPWeb myWeb = null;. Links to this post.
avinash-moss-expert.blogspot.com
MOSS Solutions: 08/01/2010 - 09/01/2010
http://avinash-moss-expert.blogspot.com/2010_08_01_archive.html
Wednesday, August 11, 2010. Export Webpart programmatically using SPLimitedWebpartManager. Private void ExportWebpart(SPLimitedWebPartManager wpm, string strFilePath). Foreach (var webPartOnPage in wpm.WebParts). System.Web.UI.WebControls.WebParts.WebPart webPartObj = (System.Web.UI.WebControls.WebParts.WebPart)(webPartOnPage);. Store below detail into xml since some web part does not export (eg: filter text web part). So while import we can use below detail and addwebpart using assembly name. For this u...
avinash-moss-expert.blogspot.com
MOSS Solutions: 01/01/2011 - 02/01/2011
http://avinash-moss-expert.blogspot.com/2011_01_01_archive.html
Wednesday, January 26, 2011. Programmatically adding items to a SharePoint list. SPSite site = new. SPWeb web = site.OpenWeb(). SPList list = web.Lists[ "SharePointList". SPListItem Item = list.Items.Add();. Can add required items. Note: 1. No need to use SPSecurity.RunWithElevatedPrivileges. 2 No need to use allowunsafeupdate property. 3 No need to update web object. Posted by Avinash Maheshwari. Links to this post. Creating a List programmatically using the sharepoint object model. Links to this post.
avinash-moss-expert.blogspot.com
MOSS Solutions: SharePoint custom Master Page Do Not Print
http://avinash-moss-expert.blogspot.com/2011/03/sharepoint-custom-master-page-do-not.html
Thursday, March 31, 2011. SharePoint custom Master Page Do Not Print. When using Microsoft custom Master Pages, print preview pages dont show any content in the body of the page. Sharepoint use core.css file in which they write few classes where they says that this class should not be use for print/media. While customizing make sure not to use those classes on top of your body area. So that it won’t hide it. Hope this helps you. Posted by Avinash Maheshwari. Subscribe to: Post Comments (Atom).
avinash-moss-expert.blogspot.com
MOSS Solutions: 05/01/2010 - 06/01/2010
http://avinash-moss-expert.blogspot.com/2010_05_01_archive.html
Monday, May 3, 2010. How to: Pass Values Between ASP.NET Web Pages. Please refer MSDN link:-. Http:/ msdn.microsoft.com/en-us/library/6c3yckfw.aspx. Also refer my another article:-. Pass page values from one to another page in ASP .NET". Http:/ avinash-moss-expert.blogspot.com/2010/05/transferring-page-values-to-another.html. Posted by Avinash Maheshwari. Links to this post. Pass page values from one to another page in ASP .NET. To Pass Values Between ASP.NET Web Pages. We can use following:-. This tells...
avinash-moss-expert.blogspot.com
MOSS Solutions: print preview dont show any content of the sharepoint page
http://avinash-moss-expert.blogspot.com/2011/03/print-preview-dont-show-any-content-of.html
Thursday, March 31, 2011. Print preview dont show any content of the sharepoint page. When using Microsoft custom Master Pages, print preview pages dont show any content in the body of the page. Sharepoint use core.css file in which they write few classes where they says that this class should not be use for print/media. While customizing make sure not to use those classes on top of your body area. So that it wont hide it. Hope this help you. Posted by Avinash Maheshwari. View my complete profile.
avinash-moss-expert.blogspot.com
MOSS Solutions: Using Microsoft Custom MasterPages I don't see content in Print Preview
http://avinash-moss-expert.blogspot.com/2011/03/using-microsft-custom-masterpages-i.html
Thursday, March 31, 2011. Using Microsoft Custom MasterPages I don't see content in Print Preview. When using Microsoft custom Master Pages, print preview pages dont show any content in the body of the page. Sharepoint use core.css file in which they write few classes where they says that this class should not be use for print/media. While customizing make sure not to use those classes on top of your body area. So that it wont hide it. Hope this help you. Posted by Avinash Maheshwari.