Hi,
I think you cannot use msgbox in asp.net and you are returning dataset in try block but if code gets any error in try block statement then it is showing a messagebox(which is invalid in asp.net) and it is not returing anyvalue. So please change your code.
Regards,
Prachi