Ms-sql detect email address

Author: seven Category:Asp.net Slider

Declare @EmailAddress as varchar(max) set @EmailAddress = ‘anthonyp@alpha.com’ IF ( CHARINDEX(‘ ‘,LTRIM(RTRIM(@EmailAddress))) = ” AND LEFT(LTRIM(@EmailAddress),1) ‘@’ AND RIGHT(RTRIM(@EmailAddress),1) ‘.’ AND CHARINDEX(‘.’,@EmailAddress ,CHARINDEX(‘@’,@EmailAddress)) – CHARINDEX(‘@’,@EmailAddress ) > 1 AND LEN(LTRIM(RTRIM(@EmailAddress ))) – LEN(REPLACE(LTRIM(RTRIM(@EmailAddress)),’@',”)) = 1 AND CHARINDEX(‘.’,REVERSE(LTRIM(RTRIM(@EmailAddress)))) >= 3 AND …

How to VB.NET String.Format

Author: seven Category:Asp.net Slider

How to string format money in a sqlreader. Dim dNum1 As Double dNum1 = sqlDR(“Cost”) String.Format(“{0:c}”, dNum1)

ASP.NET Image Slider

Author: seven Category:Asp.net Slider, Did you know?

I took this reference from DYNAMIC DRIVE And what i like to do is take there scripts and modify it. Make it more user friendly. jQuery image galleries and sliders are very common on portfolio sites and are also useful …

How to Override Inline Styles with Style Sheet

Author: seven Category:CSS Hacks

For the first time I ran into an instance where I could not get to the inline style code. After research the best way but not good practice is to use my sample below. This works in all browsers except …

HttpBrowserCapabilities Class

Author: seven Category:Did you know?, HttpBrowserCapabilities

You can use this function in your vb or C# file for many different properties. for example VB Dim browser As System.Web.HttpBrowserCapabilities = Request.Browser Dim browsername As String = browser.Browser If browsername = “Firefox” Or browsername = “IE” Then Else …