Apr
21

There are many ways in .Net to implement a captcha element. The reason I designed this is because:

1. It’s easy.
2. Doesn’t annoy the user.
3. It’s effective!
4. User could copy and paste the captcha code.
5. User can be color blind and still read the captcha.

Here’s How:

add a label (lblCaptcha)and textbox (txtCaptcha)to your asp.net page.

add the following code to the page_load:

if (!IsPostBack)
{

//generate a random number for the captcha label

int MyRandom;
Random random = new Random();
MyRandom = random.Next(999, 999999);
string New_Random = MyRandom.ToString(“000000″);
lblCaptcha.Text
= New_Random;
}

on your btnsend event add the following code:

protected void btnSend_Click(object sender, EventArgs e)
{

if (lblCaptcha.Text == txtCaptcha.Text)
{

//more code here to process the E-mail form.

}

else

{

//Show error msg

}

that’s it!

Email form with Simple Captcha

Email form with Simple Captcha


Apr
16
Apr
06

protected void Page_Load(object sender, EventArgs e)
{

Boolean isMobile = (Request.Browser.IsMobileDevice);

//redirect to the mobile directory through .htaccess

if (isMobile) Response.Redirect(http://m.kmtargets.com);

}


Mar
30

Website Before:

Website Before

Website After:

Website After

Live Site: http://www.glkirkbuidersinc.com


Mar
06

UPDATE UDO_LIST SET IS_VALID = CASE
WHEN GETDATE() > DATE_DUE THEN 0
ELSE 1
END
WHERE SPAN = ‘S’
and STATUS = ‘NONE’
and IS_DHS = 0


Feb
28

SELECT A.ACCOUNT, A.TOT_DUE_AMT, A.STATUS, A.NEXT_STAT_DATE, SUBSTR(T.PHONE_HOME,1,7) PHONEFRAG
FROM RACCOUNT A, RACCTREL T WHERE A.ACCOUNT= T.ACCOUNT AND
T.REL_POS = ’1′ AND
T.P_A_ADDR_FLAG = ‘P’ AND
(A.TOT_DUE_AMT BETWEEN 26 AND 501)  AND
A.LINK_STAT = 0 AND
A.NO_ACCOUNTS = 1 AND
A.DIVISION_ID=’PORT’ AND
A.STATUS=’R2C’


Feb
19
Site-Seeing  "A Visual Approach to Web Design"

Site-Seeing "A Visual Approach to Web Design"

  • Color Theory
  • The Color Wheel
  • Using Colors
  • Texture Theory
  • Using Textures
  • Page elements

Feb
19

BrainBench Badge

Name:  Web Design Concepts
Score: 4.36  out of 5.00   Date: 2010-02-19

View detailed topic results

Scored higher than 98% of all previous test takers.

Demonstrates a clear understanding of many advanced concepts within this topic. Appears capable of mentoring others on most projects in this area.
Strengths
Web Analytics
Design Process
DOM Scripting (Javascript)
WWW (World Wide Web) Knowledge
Accessibility
Web Usability
CSS Knowledge
Weak Areas
None Noted


Feb
15

2010-02-15

Brainbench

Completed Test:  Name: ADO.NET 2.0

Score: 3.40 out of 5.0

Date: 2010-02-15

View detailed topic results

Scored higher than 88% of all previous test takers.

Demonstrates a solid understanding of core concepts within this topic. Appears capable of working on most projects in this area with moderate assistance. May require some initial assistance with advanced concepts, however.
Strengths
Object Model
Components
DataBindings
Implementation
Weak Areas
Datasources
XML


Feb
14

Just ran into this site while downloading Subversion for my home source code repository.  Yes, I use source code  control at home…pretty geeky I know. The link below is a list of the Open Source Projects I use as a part of daily computing.


Tweeter button Linkedin button