Javascript - Simple function to format currency values in a textbox
1/26/2010 8:52:32 AM
|
I've written a small function that formats the value of a textbox by adding comma's in the appropriate position if they're not there. So something like 50000 would look like 50,000.
Read More...
|
|
|
ASP.NET - Iterating through controls in an update panel.
10/20/2009 2:24:21 PM
|
I've written a helper method to iterate through a collection of controls on my page and set certain properties based on their type. Without an update panel I could simply pass the collection of controls from my page and it would loop through them all as I expected. After I added an update panel I the textboxes in that panel we're no longer included. Here's how I solved my problem...
Read More...
|
|
|
JAVASCRIPT - Simple function to reset all form elements
8/28/2009 7:54:04 AM
|
There's a simple way to loop through all form elements and reset their value (instead of referring to each element by it's id and resetting it explicitly), here's how...
Read More...
|
|
|
ASP.NET - Setting text property of textbox with a textmode of password
8/26/2009 12:28:04 PM
|
When using the textbox control with a textmode of password it won't allow you to set the text property on a postback (and for good reason). However, sometimes you may want to set the textbox field to some value, such as asteriks, in order to show the client that whatever they've typed in before a postback event has been saved (in the session for example). Here's a simple way to work around that...
Read More...
|
|
|
C# - One line if statements
7/8/2009 9:12:40 AM
|
A very brief article about one line if statements.
Read More...
|
|
|