|
Navigation
Categories
Entries by Month
| 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) |
|
|
|
 Thursday, June 15, 2006
 Monday, August 22, 2005
Do you have an ASP.Net application that will run in an Application Pool with a specific identity? Before you enter the user account in the Identity tab of the Application Pool properties dialog, you should add the account to the local group IIS_WPG. If you forget, you get permission issues. And permission issues are the hardest to fix, imho.
(I am sure you can guess why I am blogging this...)
 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
 Friday, February 18, 2005
 Friday, January 07, 2005
Brian Goldfarb is soliciting help about what type of MasterPage templates to build. (He doesn't say so, but I assume he means that these would be shipped with ASP.Net 2.0 or at least downloadable.)
My response in his comments:
I think have at least a few "ready-to-go" pages would be helpful. Like SharePoint services -- some templates are full of web parts, others are just shells.
 Monday, July 12, 2004
I'm working on an ASP.Net application that requires the entry of a date and time. The user interface needs to resemble Outlook's appointment form, where the date is entered separately from the time. The date box has a button to display a pop-up calendar, and the time has a dropdown that displays the work day in half-hour increments. Both boxes can be entered manually.
Matt Hawley of Excentrics World has just what I need: a Calendar pop-up and a Time Picker. Thank you Matt!!
A word of caution, however. The time picker returns the users entry/selection as a date data type. This included both the date and time. The date part is today's date, which may not be what you want...
 Thursday, May 27, 2004
Kent Sharkey posted the regex code necessary for ASP.Net to recognize Firefox & Netscape 7.1.
If I understood regular expressions, I would provide the update for Safari. But I don't, so instead I'll provide you with the User Agent strings for the various versions.
 Friday, May 21, 2004
Another thing I discovered...
Defining a relation/contraint between two tables in the DataSet designer does not always create the DataRelation in the resulting DataSet object.
I use strongly-typed datasets. I like the intellisense and it IsXXXNull methods. And I bind them to data grids. Everything is good.
When acting on a datagrid in ItemCreated or ItemCommand, it is common to access the underlying data. This is acheived via e.Item.DataItem. When a grid is bound to a DataSet or DataTable, this property returns a DataRowView. My lovely, strongly-typed object is gone. :(
I needed to build a page that displayed hierarchical data. So, instead of binding my grid to a DataTable, I was binding to a GetChildRows method, which is a DataRow(). My strongly-typed DataRow is back!!!
To get the strongly-type datarow without a relation, bind to dataSet.dataTable.Rows.
 Wednesday, March 24, 2004
|
|
Search

Further Reading...
Powered by: newtelligence dasBlog 1.9.7067.0
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
|