Hello Hrishkesh,
I have not got the chance to deploy your code as it is and test it, but i used the same datautility code which i have asked you to use earlier just by replacing the TextArea object with TextBox. Good news is it worked fine. I am attaching a snapshot for your reference. Please do little bit of debugging and i am sure you are going to find the error.