I found a really easy way to convert an Array to an ArrayList without having to iterate through the array collection.
I found this on a website - http://www.dotnetspider.com/kb/Article1709.aspx.
The original code was in C#, but I converted it to VB for my purposes...
Dim ArrayListObject As ArrayList = ArrayList.Adapter(ArrayObject)
Just too simple...
Showing posts with label Coding Snipnets. Show all posts
Showing posts with label Coding Snipnets. Show all posts
Wednesday, April 2, 2008
Friday, December 28, 2007
OnClientClick function
Found this great functionality by accident while trying to get a hidden field value to be set BEFORE the page was refreshed. I spent hours trying to set a hidden field value to a default value, but couldn't find a good way to do this. Turns out that OnClientClick happens before the page is refreshed. Something to remember for future use. I set the OnClientClick="javascript:document.some_field.value=X;"
Subscribe to:
Posts (Atom)
