0
votes
1answer
45 views

Developing a custom NewForm

I have created a custom layout in _layours/PhoneBook/createform.aspx and then wrote the following code to run upon activation: private void newAddFormForMembers(SPWeb web) { SPList ...
1
vote
2answers
128 views

SPWebConfigModification class not found?

Using Sharepoint 2010, I am trying to use the SPWebConfigModification class to add connection strings the the sharepoint's web.config. My problem is that the class SPWebConfigModification is not ...
3
votes
1answer
2k views

Programmatically set homepage in Sharepoint Foundation

I need to set the homepage to default.aspx in my FeatureActivated event receiver. I tried rootWeb.RootFolder.WelcomePage = "default.aspx"; rootWeb.RootFolder.Update(); but that doesn't seem to be ...
2
votes
2answers
136 views

How to catch the feature activate time

I am trying to write one program such that, when ever a feature is activated then it should display the activated time in the sharepoint list. for that i written following code. public class ...
0
votes
1answer
146 views

Using a feature receiver to add a directory to the web applications folder

Wondering if someone knows how to add a directory/folder to the web applications folder within IIS using a feature event receiver (FeatureActivated). Any help appreciated.
1
vote
1answer
156 views

How to rename a file in the 14 hive - edited-

I need to rename the user.aspx file in the 14 hive layouts directory in a feature event receiver. Is this possible ...if so...how? OK - Bad idea....This is what i want to do: I have a custom ...
1
vote
2answers
322 views

Visual Studio 2010 Workflows not associating with list

Probably a silly question: I have a vs2010 project with workflows in a site scoped feature. When i deploy through visual studio the workflows are associated with lists. However when i deploy ...
1
vote
1answer
2k views

Delete page from the Site Pages library

Wondering if someone has the code to delete a page from the Site Pages library in a Feature Event Receiver on de-activation TIA