Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
GeneralRe: adjust my machine's utc? Pin
PIEBALDconsult4-Feb-09 5:51
mvePIEBALDconsult4-Feb-09 5:51 
GeneralRe: adjust my machine's utc? Pin
mirko864-Feb-09 5:56
mirko864-Feb-09 5:56 
GeneralRe: adjust my machine's utc? Pin
PIEBALDconsult4-Feb-09 6:53
mvePIEBALDconsult4-Feb-09 6:53 
GeneralRe: adjust my machine's utc? Pin
mirko864-Feb-09 7:18
mirko864-Feb-09 7:18 
GeneralRe: adjust my machine's utc? Pin
PIEBALDconsult4-Feb-09 8:00
mvePIEBALDconsult4-Feb-09 8:00 
GeneralRe: adjust my machine's utc? Pin
mirko864-Feb-09 8:05
mirko864-Feb-09 8:05 
GeneralRe: adjust my machine's utc? Pin
PIEBALDconsult4-Feb-09 8:10
mvePIEBALDconsult4-Feb-09 8:10 
QuestionHow do I change the value in the Title column for a document or folder in a doc lib using c#? Pin
eval994-Feb-09 4:00
eval994-Feb-09 4:00 
I have written a c# app which creates folders and imports files into a doc library. I would like to change the value of the Title property of these folders and documents to something meaningful to my users. The most recent ways I've tried are:

SPFile newdoc = folder.Files.Add(folder.Url + "/" + SPFileName, content, true);   
  
SPListItem doc = newdoc.Item;   
doc["Title"] = "whatever";   
doc.SystemUpdate();


and

SPFile newdoc = folder.Files.Add(folder.Url + "/" + SPFileName, content, true);   
Hashtable hashes = newdoc.Properties;   
hashes["Title"] = title;   
newdoc.Update();  


Neither changed the title property of the document. I didn't get any errors, it just didnt' do what I wanted.

How can I change the title property that displays in the document library for a document?
QuestionSerialPort output problem Pin
Admin8874-Feb-09 3:45
Admin8874-Feb-09 3:45 
AnswerRe: SerialPort output problem Pin
Luc Pattyn4-Feb-09 5:09
sitebuilderLuc Pattyn4-Feb-09 5:09 
GeneralRe: SerialPort output problem Pin
Admin8874-Feb-09 5:51
Admin8874-Feb-09 5:51 
AnswerRe: SerialPort output problem [modified] Pin
Luc Pattyn4-Feb-09 6:13
sitebuilderLuc Pattyn4-Feb-09 6:13 
GeneralRe: SerialPort output problem Pin
Alan N4-Feb-09 7:06
Alan N4-Feb-09 7:06 
AnswerRe: SerialPort output problem [modified] Pin
Luc Pattyn4-Feb-09 7:23
sitebuilderLuc Pattyn4-Feb-09 7:23 
QuestionSql Database LookUp Pin
boiDev4-Feb-09 3:04
boiDev4-Feb-09 3:04 
AnswerRe: Sql Database LookUp Pin
musefan4-Feb-09 3:29
musefan4-Feb-09 3:29 
AnswerRe: Sql Database LookUp Pin
J4amieC4-Feb-09 4:25
J4amieC4-Feb-09 4:25 
JokeRe: Sql Database LookUp Pin
musefan4-Feb-09 4:29
musefan4-Feb-09 4:29 
QuestionInstalling a COM+ interoperable C# dll on machine without .Net Framework Pin
dan!sh 4-Feb-09 2:23
professional dan!sh 4-Feb-09 2:23 
AnswerRe: Installing a COM+ interoperable C# dll on machine without dll Pin
musefan4-Feb-09 2:35
musefan4-Feb-09 2:35 
GeneralRe: Installing a COM+ interoperable C# dll on machine without dll Pin
dan!sh 4-Feb-09 3:43
professional dan!sh 4-Feb-09 3:43 
GeneralRe: Installing a COM+ interoperable C# dll on machine without dll Pin
musefan4-Feb-09 3:50
musefan4-Feb-09 3:50 
GeneralRe: Installing a COM+ interoperable C# dll on machine without dll Pin
dan!sh 4-Feb-09 4:08
professional dan!sh 4-Feb-09 4:08 
GeneralRe: Installing a COM+ interoperable C# dll on machine without dll Pin
musefan4-Feb-09 4:23
musefan4-Feb-09 4:23 
AnswerRe: Installing a COM+ interoperable C# dll on machine without .Net Framework Pin
SeMartens4-Feb-09 3:56
SeMartens4-Feb-09 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.