May 01, 2012 11:57 AM|Ruchira|LINK
Assign the Txt1 variable to an Empty string before you check it in the below line
if (Txt1.Length > 0)
So, moidfy that line as below
Please 'Mark as Answer' if this post helps you.