Posted on May 11th, 2011
Found this tidbit of information that has proven to make my scripts more efficient and figured I’d share.
While the CallByName() function, which allows you to call a function or subroutine using the subroutine or function name stored as a string value, still works in VB. NET, you do have another option. You can use the Invoke() method of the MethodInfo class. This class is a member of the...
Posted on Mar 4th, 2011
For application development for .NET, my tool of choice is MS Visual Studio. Every once in while lately I’ve run into an issue that frustrates the heck out of me. I will be coding my app, make a breakpoint where I’d like to start watching the performance of the application, and click the green debug arrow. My application will execute and not stop at my break points. I couldn’t...
Posted on Feb 1st, 2011
Here’s a quick and dirty way of resetting an asp.net form on your website or web application by Imran Akram on his blog. Although you could easily go through each asp.net form element and set it to an empty value and set all your select type elements to index -1, this snippet helped me when I designed a form with over 20 elements. I’ve translatted Imran’s snippet to...
Posted on Aug 13th, 2010
Many times as a developer you need to implement a user-access only portion of your website or application. For years now, Microsoft has provided a fairly simple way to do this with the membership and role providers. There are several articles to help developers implement this into their websites and customize the information they gather and store about the user using profiles. I think Scott...
Posted on May 4th, 2010
About a year ago I had to create a RSVP application that allowed the attendees to complete an RSVP form and receive a confirmation code in return. I wanted to create a random number with a specific number of characters for my confirmation code.
Here’s the code that generated the confirmation code.
Public Function GetRandomPasswordUsingGUID(ByVal length As Integer) As String
...