Sign In
Erudition
Known facts, ideas, and skill that have been imparted
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
.NET
Application Architecture
Design Patterns
MOSS
MSDN MAgazine
Networking
Pex
Security
SOA
TFS 2010
Unit Testing
WCF
XML
Archive
Archives
December 2009
(1)
November 2009
(7)
January 2009
(5)
September 2008
(1)
August 2008
(2)
July 2008
(1)
June 2008
(1)
April 2008
(2)
December 2007
(3)
October 2007
(3)
December, 2007
MSDN Blogs
>
Erudition
>
December, 2007
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Erudition
Code Snippets for common operations
Posted
over 5 years ago
by
erudition
2
Comments
1. read all the contents of a File string output = File.ReadAllText(<FilePath>); 2. Write contents to a File File.WriteAllText(<FilePath>,Encoding); 3. Convert String to Byte Array byte[] buf = System.Text.Encoding.<Encoding>...
Erudition
Creating a new document in a Document Library
Posted
over 5 years ago
by
erudition
1
Comments
string _siteUrl = " http://localhost "; using (SPSite _site = new SPSite(_siteUrl)) { using (SPWeb _web = _site.OpenWeb()) { SPFolder _folder = _web.Folders["<Document Library Name>"]; _web.AllowUnsafeUpdates = true; _folder.Files.Add("Contoso...
Erudition
Calling a WCF service from Infopath
Posted
over 5 years ago
by
erudition
1
Comments
Recently I got into a scenario where I wanted to call a WCF service from within an Infopath Form service, Infopath does not supports configuration files so my service was not able to pick the Binding and Endpoint setting for the Service at the client...
Page 1 of 1 (3 items)