ASP.net and Ajax

by Joe Hunter 23. April 2012 22:37
This article is very useful for looking at ways of “Ajaxifying” (has to be a word? if it isn’t Copyright jhunter 2012) your asp.net web app when retrieving data from backend.
Personal favourite has to be handler (.ashx) pages!
csharp3

Click here for full article

Validate email address in VB.net

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

 

Tags:

.NET

Insert copyright symbol into VB Code

by Joe Hunter 15. September 2010 16:24

Hold down the ALT key and type 02217

Full list available here: http://tlt.its.psu.edu/suggestions/international/accents/codealt.html#math

 

 

Tags:

.NET

ASP.NET Response.Redirect to new window

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

 

Tags:

.NET

Making a tag cloud in ASP.NET

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

Tags:

.NET

ASP.NET Server control for rounded corners

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

Tags:

.NET

Configuring DCOM for outputting to XL from ASP...using a batch file

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

 

Tags:

.NET

Configuring DCOM for outputting to XL from ASP

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

 

Documenting .NET code

by Joe Hunter 13. February 2010 11:57

Started using NDoc to document .NET code...very useful:

NDoc Code Documentation Generator for .NET

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen