Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,

I am opening Generate Report Web page as Model dialog. That dialog having two textbox for selecting the dates for which we have to generate reports. after selecting the dates and clicking on generate button system checks whether there is any record between these dates. If record exist between these dates then it opens the word file showing all the records otherwise it opens the another window of same GenerateReport.aspx page showing the message there are no records between these date.

I want that if there are no records exist between these dates then it must show that message on the same page rather than opening the new window. I have not written any code for opening the new window on Generate button still it is opening the new pop up window. I have use the <base target="_self"> in the head tag. when i do this then it shows the
Message on same window if Records not exist but then it doesnt show me the dialog box for open and save the word document when record exist. it only saves the document.

Thanks,
Umesh Tayade
Posted
Updated 20-May-12 20:01pm
v2
Comments
Sangramsingh Pawar 20-May-12 10:00am    
post your code

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900