Browse by Tags

Generating a random strong password
You can use the ASP.NET Membership provider to generate a new random strong password. In the past I have usually either rolled my own authentication system or integrated an asp.net authentication system into an existing application and therefore I did...
How to quickly format a C# class file – Ctrl-K, Ctrl-D
In C# as you are typing in a class file the indenting of your code can easily get out of alignment making the code hard to read.  Where does your class, if block, or method begin and end?? You can manually go and fix each line but there is a much...
Timestamp string with milliseconds from a System.DateTime
You can easily convert a System.DateTime object into a string based on the current date and time by using the ToString() method of the DateTime object.  For instance: DateTime d = DateTime.Now; String s = d.ToString(“yyyyMMdd-HHmmss”); Will produce...
Parse a non-standard date string into a System.DateTime object
The other day I had a date that was in the form of yyyyMMdd and I needed to parse that string into a System.DateTime object.  Just trying to parse the string into a System.DateTime object would not work: String dateString = "20091016";...
Asynchronously sending a System.Net.Mail.MailMessage in C#
When sending an email in your ASP.NET application there are times when you do not want the user experience to slow just to wait for an email to be sent.  The code sample below is how to send a System.Net.Mail.MailMessage asynchronously so that the...
How to disable an ASP.NET button when clicked
Scenario: user clicks a button in your ASP.NET page and you want to disable it immediately using javascript so that the user cannot accidentally click it again.  Originally I thought this was going to be simple by using the onclientclick property...
How to programmatically connect to QuickBooks Online Edition (QBOE)
Here are all the steps to connect to QuickBooks Online Edition (QBOE) and retrieve some data.  Special thanks to Keith Palmer for his comments, answers, and his Consolibyte Solutions Website which really helped me get this working.  Originally...
Version number of current application
The other day I was writing an application that posted Journal Entries to QuickBooks and I wanted to include a memo line in the Journal Entry that not only included a timestamp but also included the version number of the application that posted the Journal...
Credit Card Expiration Date ASP.NET MVC SelectList Sample Code
A couple weeks ago I wrote about how to create credit card expiration date drop downs for your ASP.NET application.  Today I had to do the same thing but in ASP.NET MVC.  For the most part I was able to use the same logic but instead of slowly...
Credit Card Expiration Date DropDownList Sample Code
The other day I needed to create a credit card input form including the drop down lists for the credit card expiration month and year.  I started to write the code to populate the month and year drop down lists and I wanted to make them dynamic so...
More Posts Next page »

Search

Go

This Blog

News

    Ads by Lake Quincy Media
    Ads by Lake Quincy Media

Recommended Blogs

Syndication