From the category archives:

C#

Actually what I wanted to do is to control the length of the new password that generated by ResetPassword() function of MembershipUser class. After googling once, I found this article that posted on Stackoverflow.com is really help me. user.ChangePassword(user.ResetPassword(), MyMethodToGenerateRandomPassword()); That blocks of code inspire me to write mine. string newPassword = u.ResetPassword(); string newShorterPassword…

Partial Class C#.NET From Partial Class Definitions at MSDN, it is possible to split the definition of a class or a struct, or an interface over two or more source files. Each source file contains a section of the class definition, and all parts are combined when the application is compiled. There are several situations…