I am writing a C#, say a, code to display some information from data base. and sending that information to an excel sheet. For excel sheet i have return the script in another page. If there is no record in the data source it should come back to the main page i.e. to page a. How can i handle this.