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 …


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. …