sharepoint2007

How to remove the domain name?

Hi I have one sharepoint application, in this i have to show the current user, i used SPContext.Current.Web.CurrentUser.LoginName. then it returns XXXXXX\abida. But i want only the username like abida. How to achieve this requirement? ...

Problem with ranking of search results in SharePoint 2007 if using the CONTAINS predicate

While writing a front-end for the SharePoint Search web service for work, I did some quick testing with the MOSS Search Tool to make sure things were working right under the hood. What I found was that queries composed only of CONTAINS predicates (FREETEXT ones were fine) would have a rank of 1000 for any results that were returned. Acc...

How to get sharepoint upload limit size by using sharepoint web services

In my application before uploading i have to check whether file size is greater than upload limit. How do we get share point file upload limit using web services in C#?? ...

Internet explorer 8 opens file in browser instead of the client

Our company is working with a great Business Intelligence tool CorVu 4.2 to analyse the operational and strategic data. Since several years we are successfully working with Sharepoint 2007 to collaborate and share information with colleagues. Most of my colleagues are working with Internet Explorer 7, but step by step Internet Explorer 8...

dynamic GridView in CreateChildControls throws a "RegisterRequiresControlState can only be called before and during PreRender" exception

I am trying to add a GridView dynamically to a SharePoint Web Part. Right now, the first time I load the gridview, everything works fine. My gridview has an edit column enabled... so when I click that, it throws an exception when I try and add the gridview control on the postback. The exception: "RegisterRequiresControlState can only b...

Is it possible to create a list in WSS 3.0 based on a custom template using SharePoint web services?

I want to create a SharePoint list using SharePoint web services (instance is SharePoint Services v3.0). That list should be built from the custom list template that I have created previously. Browsing through MSDN documentation resulted in the following resolutions: services.ListsService.AddList(title, description, templateID); or ...

Data view web part throwing error

Hi I'm using a xslt based dataview webpart the steps i have taken to create a data view webpart is that added a list view webpart on the page Modified the toolbar property to show fulll toolbar open the web page containing above list view webpart in sharepoint desginer and converted it to xslt based webpart (to make further changes i...

Overridding SharePoint's square.gif and setrect.gif

Within the custom branding of a SharePoint 2007 site collection, I need to change the bullet images. Instead of using <li> tags, SharePoint 2007 uses tables and images as follows: <tr> <td class="ms-vb" style="padding-bottom: 5px;"><img alt="" src="/_layouts/images/square.gif">&nbsp;</td> <td class="ms-vb" style="padding-bottom:...

SharePoint field set to not required but still requires input

This field is part of a custom list definition in a feature. Originally this was a required field. The change to not being required was done simply by removing the "Required='TRUE'" from the schema.xml, packaged as a solution, deployed via stsadm -o upgradesolution, etc. It works as it should on my dev box but not on staging. I've co...

Resources to get started with Commerce 2009 with SharePoint 2007

Hi, I need to get up to speed about developing a commerce site using MS-Commerce server 2009 and SharePoint 2007. I was wondering where are good resources to get started, to explain the concepts and design, etc. ...

SharePoint 2007 Web Application is not found

I created a Web Application called testwebapp and then a site collection (testsite). When I try siteCollection = new SPSite("http://localhost"); in Visual Studio 2008 it throws an error Web Application is not found. Of course, the localhost works in IE and I don't know why testwebapp doesn't work. Any ideas? TIA! David ...

Programmatically tell whether a webpart that has been deployed is a native one that ships with MOSS, or one that was custom developed?

I have a SharePoint 2007 MOSS instance, and I'm on a fact-finding mission. There have been multiple developers, developing multiple webparts and deploying them (using VS2005/2008 SharePoint Extensions). I thought maybe I could look at the fields in the "Web Part Gallery" list in my site, and look by "Modified by", but it looks like a de...

Silverlight + SharePoint Web Services : Avoiding Browser Login Prompt

Environment: SharePoint 2007 (Integrated Windows Authentication) Silverlight 3.0 (Communicating with SharePoint via WCF) On the SharePoint site, we have a list that contains links to other sites throughout the SharePoint web application. The silverlight app traverses this first list via Web Service call to /_vti_bin/Lists.asmx and m...

MOSS: Creating site templates from publishing sites

Hi, On my MOSS site I am trying to save a publishing site as a site template. Then create subsites from this template. I am able to sucessfully create the site template and it is populated in the site template gallery. Following these instructions.. http://blah.winsmarts.com/2007-7-All_you_ever_wanted_to_know_about_SharePoint_2007_Site...

SPException: Catastrophic failure (Exception from HRESULT: 0x8000FFF (E_UNEXPECTED) in Sharepoint

Hi all: I've been trying to programmatically copy custom content type and its custom columns from one web to another for some time now, and I always get different errors or exceptions every time. After yet more tries, I received more strange and cryptic exception from Sharepoint after clicking onto a newly copied custom column in a cu...

SP Gridview link button column not working

Hi I have one sharepoint custom page application which is rendering from a user control. In the user control page, i had used SPGridview for displaying data. My first column is Title Column (link button column), when the user click on the link, then one popup window will open with corresponding data. But the problem is the link button i...

Disable workflow on sharepoint 2007 lists

At this moment every image which is uploaded to sharepoint has to run through the complete workflow before being shown to a end user. This is not wished behaviour. What we like to approach is that an uploaded image is accessible directly to the end-user, without workflow or even approval action. Is this possible, and if so, how? ...

SharePoint 2007 - Content deployment and swapping content database

Hi all, I'm currently working on a SharePoint 2007 site which is setup to allow clients to author content on a staging server and then this is automatically pushed up to the live environment via content deployment. The content deployment is setup in the 'Content deployment jobs and paths' in central admin. Now the problem I've got is t...

Need Help - Flaw with stsadm migrateuser command

We have a SharePoint farm with a mixed set of users from two domains (Let's say A and B). Some of the users are being added with their A domain accounts and some with their B domain identity. We now now need to decommission one of the domain (B) and need all the B domain users to be replaced with their A domain accounts. The problem lie...

How do I remove the help icon and link from the SharePoint header?

According to Microsoft, the SharePoint help pages present a security concern and should be disabled. Since we don't want users clicking on a broken help icon, it needs to be removed as well. What's the best way of removing the icon and the separator pipe that's to the left of it? ...