Call a Function or Subroutine with its string name using the Invoke method

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...

Visual Studio Debugging Issue

Visual Studio Debugging Issue 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...

Resetting a Form in ASP.NET

Here’s a quick and dirty way of resetting an form on your website or web application by Imran Akram on his blog. Although you could easily go through each 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...

Using ASP.NET’s Membership, Roles and Profiles with your existing database

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...

Create a random character string

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 ...
Page 1 of 212
© | Hosted by Lisa Dowdell | Powered by WordPress | Original Theme by Elegant Themes