Category: code

Prepopulate fields in SharePoint with Querystring values via Jquery

What are you talking about? Paul Grenier over at EndUserSharePoint discussed in length a lot of great stuff you can do with Jquery and SharePoint. This is one of the really cool things I used at a client: This code is used to prepopulate values you put in the querystring into SharePoint fields. This is …


2 ways to send email within SharePoint, using code

  Using SPUtility.SendEmail (SharePoint way) Try Dim thisWeb As SPWeb = SPControl.GetContextWeb(Context) Dim toField As String = “someone@microsoft.com” Dim subject As String = “Test Message” Dim body As String = “Message sent from SharePoint” Dim success As Boolean = SPUtility.SendEmail(thisWeb, True, True, toField, subject, body) Catch ex As Exception ‘ handle exception End Try More …


Password change for FBA users

For a client we did a lot of fba work, today i want to share the “change password” functionality. We started from the codeplex project, and added some extra properties we thought were usefull. The names speak for themselves 😉 CancelDestinationPageUrl ContinueDestinationPageUrl ContinueButtonText SuccessText SuccessTitleText PasswordLabelText NewPasswordLabelText Cancelbuttontext Changepasswordbuttontext Changepasswordtitletext Confirmnewpasswordlabeltext Long list of properties …


create a log out button on SharePoint 2007 – 2010

I ran into a question from a client, who was working with FBA. He wanted to simplify his portal for extranet users, so he wanted to display a log out link on his page. It turns out the solution is really simple: just create a link to the _layouts/signout.aspx page in a content editor webpart. …