May 01, 2012 12:57 PM|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.