Create Your Badge
Search
Tuesday, June 23, 2009
Saturday, June 13, 2009
Shortcut key for select all on textbox (ctrl+A) in C Sharp
1: private void anyTextBox_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
2: {
3: if (e.KeyChar == '\x1')
4: {
5: ((TextBox)sender).SelectAll();
6: e.Handled = true;
7: }
8: }
Wednesday, June 10, 2009
Nextgen Gallery - change the "view with Piclens" link
Tuesday, March 24, 2009
WCF Sample project
First open up Visual Studio 2008 and go into Create New Project
- Navigate to the Web portion of the Project Types tree in the language of your choice (C# in my example above) and select WCF Service Application from the Templates side.
Moving to the real IIS
- project properties tab
go to web tab
under server: select use local IIS web server
enter project Url
click create virtual directory
create
example:
svcutil.exe /language:cs /out:EASProxy.cs /config:app.config http://crytal.minecode.local:8000/TopazBridge.EASWcfWS/Service1.svc?wsdl
Thursday, January 29, 2009
Download Sharepoint SDK
http://www.microsoft.com/downloads/details.aspx?FamilyId=6D94E307-67D9-41AC-B2D6-0074D6286FA9
Overview
The Microsoft Office SharePoint Server (MOSS) 2007 SDK is designed for solution providers, independent software vendors, value-added resellers, and other developers to learn about the new Office SharePoint Server 2007 enterprise application and platform. It features conceptual and "How to" articles, sample code, and programming references. What’s New in this Release for the Microsoft Office SharePoint Server SDK- Installation enhancements: You now have a choice of installation path when you’re installing the SDK. Browse to your preferred folder during setup. The default installation path for the Microsoft Office SharePoint Server SDK is <%Program Files%>\2007 Office System Developer Resources\.
- Start menu navigation: This release features a new Start menu shortcut for quick access to documentation (compiled HTML Help, or CHM for short) files and the Welcome Guide (ReadMe.htm), which is a landing page with links to all the tools and samples. In Windows Server 2003, click Start, Programs, 2007 Microsoft Office System Developer Resources, Office SharePoint Server 2007 SDK to open: MOSS 2007 Technical Articles and Visual How-Tos, Office Forms Server SDK Documentation, Office SharePoint Server SDK Documentation, Welcome Guide, Windows SharePoint Services SDK Documentation. In Windows Vista, click the Windows Vista Start button, All Programs, 2007 Microsoft Office System Developer Resources, Office SharePoint Server 2007 SDK to open: MOSS 2007 Technical Articles and Visual How-Tos, Office Forms Server SDK Documentation, Office SharePoint Server SDK Documentation, Welcome Guide, Windows SharePoint Services SDK Documentation.
- Offline experience improvements: All of the technical articles, visual how-to articles, and book excerpts are now packaged—plus the Excel Services and Excel 2007 Windows Compute Cluster Server 2003 Job Submission Developer Guide—into one searchable CHM file. Browse offline for content published on MSDN out-of-band with the SDK. (Known issue: Several links in the MOSSSDK_TechArticles.chm and WSSSDK_TechArticles.chm do not work in a strictly offline scenario. Also, WMV file screencasts or downloads associated with articles are not packaged in the CHM, to keep the download size manageable. Workaround: Browse to the content on MSDN online; for ease-of-use, the CHM file table of contents is the same as the MSDN Library table of contents.
- New tools and samples included with the Microsoft Office SharePoint Server 2007 SDK: Developer tools and samples for the following areas of Office SharePoint Server development (new items in bold):
- Business Data Catalog Samples and Utilities
- Microsoft Business Data Catalog Definition Editor
- Sample Pluggable SSO Provider
- WSHelloWorld Web Service
- WSOrders Web Service
- Excel Services User Defined Function Sample
- WSOrders Custom Proxy Sample
- Amazon Web Service Sample
- AdventureWorks Metadata Samples
- SAP Sample
- Document Management and Content Processing Samples
- Comment Scrub Document Converter
- Term Replacement Document Inspector
- Search Samples
- Sample Protocol Handler
- Custom Content Source
- Custom Federated Search Web Part with a Credentials UI (also available at MSDN Code Gallery)
- Federated Search SQL Server Connector (also available at MSDN Code Gallery)
- Federated Search HTML to RSS Connector (also available at MSDN Code Gallery)
- Federated Search Virtual Earth Map Connector (also available at MSDN Code Gallery)
- Records Management and Policy Samples
- De-Duplication Router
- Document Integrity Verifier
- Records Center Web Service Console Application
- Search, Collect, and Hold Tool
- Sample Custom Barcode Generator
- IRM Document Protector
- Workflow Samples
- Custom Workflow Report Query Generator
- Custom Workflow Report XLSX Injector
- Visual Studio Workflow Templates
- Enterprise Content Management Workflow Activities
- List Item Activities
- Hello World Sequential Workflow
- State Based Approval Workflow
- Modification Workflow
- Replication and Contact Selector Workflow
- Intersystem Purchase Order
- Confidential Approval Workflow
- Group Approval Workflow
- Approval Workflow Sample
- Multi-Stage Workflow
- Server-side Collect Signatures Workflow
- Business Data Catalog Samples and Utilities
Monday, January 26, 2009
C# 3.0
If you are interested in C# 3.0, there is both a technical article and a Word Document with much of the detail covering:
- Implicitly Typed Local Variables
- Extension Methods
- Lambda Expressions
- Object and Collection Initializers
- Anonymous Types
- Implicitly Typed Arrays
- Query Expressions
- Expression Trees
Tuesday, January 20, 2009
Using Application block 3.1.0.0 in sharepoint
Wednesday, January 14, 2009
video recording tool / screen capture tool
reference:
http://msdn.microsoft.com/en-us/library/aa979522.aspx
camstudio http://www.download.com/CamStudio/3000-13633_4-10067101.html?tag=mncol;pop&cdlPid=10743277
Tuesday, January 13, 2009
Open Source Logging Tools in C#.
Open Source Logging Tools are free, open-source logging tools in C#.
- AppLog
- AppLog is a simple application logging utility. It is written in C#, and makes use of the ByteFX MySQL data access library.
- C# Logger
- The C# Logger (CSharp Logger) is designed after the log4j project by apache. It is a logging tool that can be used to write events such as debug, info, warn and error messages to the Windows event log.
- C# .Net Logger
- C# .Net Logger (CSharp Dot Net Logger) is an extensible .NET Logger written in C# with advanced message queuing allowing for completely asynchronous use.
- log4net
- log4net is a tool to help the programmer output log statements to a variety of output targets. log4net is a port of the excellent log4j framework to the .NET runtime.
- Logger.NET
- Logger.NET is a logging framework which enables you to include code which contains logging information.
- logthis
- The logthis .NET logging framework is a C# logging framework as a drop-in logging tool module for .Net applications.
- LogZipper.NET
- LogZipper.NET is a console application which rotates log files according to several command-line switches to allow scheduling.
- NLog
- NLog is a simple logging library similar in concepts to log4net, designed with simplicity and flexibility in mind.
Monday, January 12, 2009
deployment administrator-approved infopath form templates
Tuesday, January 6, 2009
sharepoint web services lists
WSS Web Services
Web Reference URL
Administration
Alerts
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/alerts.asmx
Copy
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/copy.asmx
Document Workspace
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/dws.asmx
Forms
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/forms.asmx
Imaging
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/imaging.asmx
List Data Retrieval
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/dspsts.asmx
Lists
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/lists.asmx
Meetings
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/meetings.asmx
People
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/people.asmx
Permissions
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/permissions.asmx
Search
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/search.asmx
Site Data
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/sitedata.asmx
Sites
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/sites.asmx
Users and Groups
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/usergroup.asmx
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/versions.asmx
Views
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/views.asmx
Web Part Pages
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/webpartpages.asmx
Webs
http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/webs.asmx
How to get the full name of the user who is logged in to a asp.net website using integrated authentication
private string GetFullName(string strLogin)
{
string str = "";
// Parse the string to check if domain name is present.
int idx = strLogin.IndexOf('\\');
if (idx == -1)
{
idx = strLogin.IndexOf('@');
}
string strDomain;
string strName;
if (idx != -1)
{
strDomain = strLogin.Substring(0, idx);
strName = strLogin.Substring(idx + 1);
}
else
{
strDomain = Environment.MachineName;
strName = strLogin;
}
DirectoryEntry obDirEntry = null;
try
{
obDirEntry = new DirectoryEntry("WinNT://" + strDomain + "/" + strName);
System.DirectoryServices.PropertyCollection coll = obDirEntry.Properties;
object obVal = coll["FullName"].Value;
str = obVal.ToString();
}
catch (Exception ex)
{
str = "";
Trace.Write(ex.Message);
}
return str;
}
