sharepoint

Fill textbox with current username logged in sharepoint.

I made a custom list, it is actually a form fill out for an absence request workflow. Before publishing it I found a flaw. The first textbox is a Person or Group textbox, this helps out to retrieve the Active Directory username, but the flaw is that I can type whatever username I want, Example: "User X is logged on, but if he types User...

Create a document library with external persistence

I would like to create a custom document library where I use the standard UI but implement a different persistence layer. Basically fetch and display documents from a different source system. This way I can use my existing object model but leverage the great office integration within SharePoint. I found a decent article here but they ar...

WSS 3.0 email

I have set up WSS and a few sites. I have the outgoing email address set as SharePoint@....... When I get a message from the server and try to reply to it it doesnt go anywhere as there is no SharePoint@..... email account. What my question is is this, is there a way to set this up so that emails go to the site owners? that way they can ...

Have a webpart hide its self, if the user doesn't have proper permission

If the user creates a web part page in SharePoint and then adds one of my custom web parts to it, I would like to completely hide a web part depending on a particular users permissions. For example, I have a reporting web part some users have access to reports and some don't, I don't even want some users to know that reports exist. I ...

How can I read text from cache into user name field of ASP.NET login control

I have a primary ASP.NET site that asks for a user name. When the user gives a user name and clicks the submit button, he/she is redirected to the respective application (actual site) based on their user name (user name goes into cache here). User names across all sites are unique. I want to use the cache to read back the user name en...

How can I debug a SharePoint EventReceiver with Remote Debugger?

Hi! I have written an SharePoint EventReceiver (Windows SharePoint Services 3.0) and want to debug it with Visual Studio 2008 SP1, which runs on a different computer. I have tried the following steps: Installing the event receiver (I know that this works because a log file proves that the code is executed). Registering my event receiv...

Dynamic service reference in Silverlight

I'm building a Silverlight application that interfaces with SharePoint Web Services. In a windows forms application I'd create a web reference to my local SharePoint server, then change the Uri of the reference at runtime to point to whatever SharePoint site I wanted to use. Silverlight doesn't seem to have web references, but similar ...

How Sharepoint enables editing data via Excel?

a Sharepoint Web Query allows saving changed Excel cells back to the server. It's quite simple to come up with a custom JSP(or any other dynamic html producer) page to produce data called in QYI file. My question: is there a way to handle in a JSP page changes in the Excel List when "Synchronize with Server" menu clicked in Excel? othe...

Setting author field in SPListItem won't persist

I am trying to copy an SPListItem (with file) from one site collection to another. I do this by creating the file like this: var archiveFile = newsArchive.Lists[listName].RootFolder.Files.Add(originalItem.File.Name, originalItem.File.OpenBinary()); var archiveItem = archiveFile.Item; through a utility method I wrote i then set all fie...

How can I get the root directory's local path of my sharepoint site?

Hi! Is there are way to progammatically determine the root directory's local path of the current sharepoint site? Best Regard Oliver Hanappi ...

Web Part connections in site definitions

I have requirement of specifying web part connections in onet.xml. So when site is created using this site definition the said web parts are already connected and ready to use. Which properties I need to specify for that particular web parts in onet.xml. ...

MOSS 2007: 3 additional assembly binding redirects, where are they coming from

Hi, I have a web.config of a functioning MOSS server with our custom settings and a web.config of a freshly installed MOSS. Here's 3 redirects I don't know the source of: <dependentAssembly> <assemblyIdentity name="Microsoft.SharePoint.Portal.SingleSignon" publicKeyToken="71e9bce111e9429c" culture="neutral" /> <bi...

Programmatically Cancel a SharePoint Workflow

Inside a workflow I want to handle and error such as not being able to lookup a username that I want to assign a task to. So the username doesn't exsist, I'm going to notify an administrator by email of this, log it to the workflow history and then terminate the workflow. Question is, how do I terminate the workflow, from inside the wor...

SharePoint content targeting, is it possible to have multiple views per user?

Our SharePoint site has a couple of broad groups that use it. In essence they are managers and users. We have different tabs viewable to the different people. We now have a requirement for Managers to be able to pretend for a while that they are users, and see what users would normally see. We cannot think of a way of achieving this tog...

Automatically logging into and out of FBA SharePoint site

We've got a WSS 3.0 site that is using Forms Based Authentication (FBA). We want to set the site up so that certain users can be logged in automatically, rather then getting the login screen, and I'm not sure of the best way to do this. Actually, based on this article, I've already created an HTTP Module that handles the logging in. M...

redirect using itemreceiver sharepoint

When a list item is added to a sharepoint list i want to redirect to a thank you page. how can i do that in an itemreceiver? ...

SharePoint Email Alerts

I'm having problem sending email alerts from a Discussion Board. I've added all the work email to the Shared Service User profiles n SharePoint Central Administration area. However, when I click on Alert Me I get the following error: The following users do not have e-mail addresses specified: User Name. Alerts have been created succes...

What do the different scopes in WSPBuilder do?

When creating a new WSPBuilder project or new WSPBuilder item in Visual Studio, you get to choose the scope of the item being created. The options are Web, Site, WebApplication and Farm. What do the different scopes do, and how does that affect deployment? How do you determine which scope to use? ...

Install a custom ASPX file as part of a ListTemplate definition

I am using VSeWSS 1.3 to create a custom list definition scoped to 'Site'. <Elements Id="8924acef-84ef-4584-ade4-e3eaeb8df345" xmlns="http://schemas.microsoft.com/sharepoint/"&gt; <ListTemplate Name="MyListDefinition" DisplayName="MyList" Description="" BaseType="0" ...

Implementing document management with an ASP.NET MVC front-end

I've implemented a website for a client that holds editable articles. I used ASP.NET MVC and made the content manageable by storing it in a 'Content' table in the database and creating a simple Admin section of the site, where the user can add/edit/remove content and choose where on the site it will appear. Now the client has come bac...