by Joe Hunter
29. October 2010 18:29
Simple, elegant, effective way of validating email addresses in VB.NET, on VB forums: http://www.vbforums.com/showthread.php?t=407441
Function EmailAddressCheck(ByVal emailAddress As String) As Boolean
Dim pattern As String = "^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"
Dim emailAddressMatch As Match = Regex.Match(emailAddress, pattern)
If emailAddressMatch.Success Then
EmailAddressCheck = True
Else
EmailAddressCheck = False
End If
End Function
by Joe Hunter
15. September 2010 16:24
by Joe Hunter
10. August 2010 10:20
Very simple: OnClientClick="aspnetForm.target ='_blank';"
Reference:
http://stackoverflow.com/questions/104601/asp-net-response-redirect-to-new-window
by Joe Hunter
28. April 2010 22:24
Great article on 4guysfromrolla explaining how to create a tag cloud in ASP.net. Read it here
by Joe Hunter
13. April 2010 20:44
Scott Mitchell has an excellent article over at 4GuysFromRolla.com on how to create a custom asp.net server control for rounded corners...no graphic design experience required :)
Click here to view
by Joe Hunter
10. March 2010 11:12
If you have to automate this configuration, I have written a batch file to do this:
GOTO EndComment
Joe hunter
08/03/2010
This batch file allows the ASPNET account on the PC hosting the Portal
to have local launch (ll) and local activation (la) privileges for Microsoft
Excel so reports can be output to XL from the portal.
NOTEs:
- MS XL application ID is 00020812-0000-0000-C000-000000000046
- The DCOMPERM exe is downloadable from http://cid-62b84429c3a8a991.skydrive.live.com/self.aspx/SharePoint/DComPerm.zip#resId/62B84429C3A8A991!316
- Reference: http://blog.crowe.co.nz/archive/2006/03/02/589.aspx
:EndComment
DCOMPERM.EXE -al {00020812-0000-0000-C000-000000000046} set %computername%\ASPNET permit level:ll,la
by Joe Hunter
5. March 2010 16:24
Thanks to Chris Crowe, this article explains how to ensure you can output to Excel from an ASP.NET web app:
Read it here
by Joe Hunter
13. February 2010 11:57
Started using NDoc to document .NET code...very useful: