Thứ Hai, 26 tháng 9, 2011

Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication



patterns & practices Developer Center

How To: Use Forms Authentication with SQL Server in ASP.NET 1.1

J.D. Meier, Alex Mackman, Michael Dunner, and Srinath Vasireddy
Microsoft Corporation
Published: November 2002
Last Revised: January 2006
Applies to:
  • ASP.NET 1.1
See the "patterns & practices Security Guidance for Applications Index" for links to additional security resources.
See the Landing Page for a starting point and complete overview of Building Secure ASP.NET Applications.
Summary: This How To shows you how to implement Forms authentication against a SQL Server credential store. It also shows you how to store password digests in the database. (12 printed pages)

Chủ Nhật, 25 tháng 9, 2011

C# Replace String Examples

You want to replace one substring in a string with another in your C# program. You may need to swap specific characters with other characters or words. Also, see if you can optimize string replacements with StringBuilder. This page has some Replace method examples, and also a real-world example of using StringBuilder Replace, using the C# programming language.
Key points: Replace is an instance method on String. It replaces all instances of the specified string. It returns a copied string. The original string is not changed.