|
Navigation
Categories
Entries by Month
| October, 2008 (1) |
| September, 2008 (1) |
| July, 2008 (4) |
| June, 2008 (6) |
| May, 2008 (2) |
| March, 2008 (5) |
| December, 2007 (1) |
| October, 2007 (1) |
| September, 2007 (2) |
| May, 2007 (1) |
| April, 2007 (5) |
| October, 2006 (1) |
| July, 2006 (2) |
| June, 2006 (6) |
| January, 2006 (2) |
| December, 2005 (6) |
| November, 2005 (9) |
| October, 2005 (9) |
| September, 2005 (3) |
| August, 2005 (11) |
| July, 2005 (20) |
| June, 2005 (3) |
| May, 2005 (5) |
| April, 2005 (5) |
| March, 2005 (5) |
| February, 2005 (5) |
| January, 2005 (13) |
| December, 2004 (10) |
| November, 2004 (6) |
| October, 2004 (2) |
| September, 2004 (7) |
| August, 2004 (8) |
| July, 2004 (8) |
| June, 2004 (4) |
| May, 2004 (13) |
| April, 2004 (14) |
| March, 2004 (33) |
| February, 2004 (1) |
| May, 2003 (6) |
| April, 2003 (5) |
| March, 2003 (4) |
| February, 2003 (1) |
| January, 2003 (6) |
|
|
|
 Sunday, July 31, 2005
 Saturday, July 23, 2005
Update: The Image Upload Web Part has been updated.
Heather Solomon blogged about end-user-focused web parts. (Be sure to look at the comments for links to many others.) All are very valid points.
I have a small but helpful contribution: The ImageUpload Web Part.
On a WSS Team site, the default template has an Image Web Part that displays the Windows Logo. I have never seen this logo on a production site. To change the image is easy enough for users familiar with the Web Part page model: Open the tool pane and change the location of the image. This is where it gets difficult for end-users.
What if the image is on the end-user's computer? Most likely, they email the file to the webmaster/developer. It is then uploaded to web server and the URL emailed back to the user. (Or the webmaster/developer is updating the web part.) More industrious users will post the image to a photo gallery. Some will even determine the URL. But there is an easier way.
The ImageUpload Web Part displays a form with a file upload input box. The end user can click the browse button and select the image. The web part stores the image in a document library and automatically remembers the location (URL) and renders the <IMG> tag correctly.
Download the CAB file and source code.
The web part requires a setting in web.config with the location to store the images. And, the end user must have permission to store items in that library. (This second restriction could be alleviated using impersonation techniques from Todd Bleeker or Victor Vogelpoel or Jay Nathan.)
 Wednesday, July 20, 2005
 Friday, July 15, 2005
This article made me laugh out loud:
"In fact, hockey has been fixed, in that veterinarian sort way."
"But since this lockout was all about the 10 or so hard-line owners and their unleashed commissioner getting what they wanted at all costs, hats off to them. Preferably with their heads inside, true, but you get what you can at times like this."
Ray Ratto - ESPN.com
 Wednesday, July 13, 2005
"The purpose of the SharePoint Utility Suite is to provide a packaged collection of Tools and Utilities showcasing the rich Object Model that is delivered with the SharePoint Product and Technologies SDK (which includes Windows SharePoint Services 2.0 and SharePoint Portal Server 2003). This package includes code and tool examples that SharePoint Developers and SharePoint Administrators might find useful." http://www.microsoft.com/sharepoint/downloads/components/detail.asp?a=724
Thanks to Jessica Gruber
 Tuesday, July 12, 2005
In response to a post in the ASP.Net forums, here is a routine to upload a file to a document library.
Sub ProcessPostedFile(ByVal fileUpload As HtmlControls.HtmlInputFile) Try ' get the filename and stream Dim fn As String = System.IO.Path.GetFileName(fileUpload.PostedFile.FileName) Dim stm As System.IO.Stream = fileUpload.PostedFile.InputStream Dim contents(CInt(stm.Length)) As Byte
stm.Read(contents, 0, CInt(stm.Length)) stm.Close()
' get the library path Dim docLibPath As String = Configuration.ConfigurationSettings.AppSettings("DocUploadPath") ' first, get the site containing the library Dim site As SPSite = New SPSite(docLibPath) Dim web As SPWeb = site.OpenWeb ' then get the folder Dim docFolder As SPFolder = web.GetFolder(docLibPath)
' delete the file if it exists Dim docFile As SPFile Try docFile = docFolder.Files(fn) Catch ex As Exception End Try
If Not docFile Is Nothing Then docFolder.Files.Delete(fn) End If
' save the file docFile = docFolder.Files.Add(fn, contents)
Catch ex As Exception Context.Trace.Warn(ex.ToString) End Try End Sub
 Monday, July 11, 2005
 Sunday, July 10, 2005
|
|
Search

Further Reading...
Powered by: newtelligence dasBlog 2.2.8279.16125
The opinions expressed herein are my own personal opinions and do
not represent my employer's view in anyway.
© Copyright 2008, Paul Schaeflein
E-mail
|