In reply to rakesh varikela:
Please use code tags making your code easier to read. I have added them for you.
What is your question? Does the code work? Are there errors? Does it function as you expect?
Posting code and stating "can u check the errors in code" isn't going to make anyone want to help if you can't articulate your issue.