@selvamariappan
Hi Selvamariappan,
I don't understand what your problem is, could you please explain it again in more detail? Thanks :)
@Vkas
Two quick things about this suggestion...
Firstly be careful when catching general exceptions. You don't want to gobble them up...if you use the code elsewhere, and something goes wrong, then the code calling your code will have no clue as to what went wrong. It's better to throw general exceptions and only catch the ones that you Know could be thrown and that your code can handle appropriately. This way calling code can handle any problems that your code is not expecting.
If your web application throws an exception that is not caught, details about the exception is recorded in the Windows Event Log (under Application). You could look into better ways of handling exceptions for your web application using the web.config and using Global.asax
The second thing is that Response.Write() will make your HTML code invalid. See my response
here for more information on this topic.