guys please help couldn't break the solution.
On Jun 7, 10:25 am, jack <gautams.m
@gmail.com> wrote:
> guys please help couldn't break the solution.
Without being able to see any of your code, it's difficult to know how
to help.
At a wild guess, you've got a page (Page1.aspx) which contains a link
to a second page (Page2.aspx). Page2.aspx creates the excel file and
sends that as it's response, and marks the content disposition as an
attachment (thus suggesting to the browser that it open the file in
the appropriate application). However, the problem is that the link in
Page1.aspx includes a target specification of _blank, and so when
users are clicking on the link, it's opening a new browser window
first.
If all the above wild speculation is correct, then the fix is to
remove the target="_blank". If it's not correct, maybe you can post
some actual information that would allow us to see what the problem
is?
Damien