G
Guest
Two questions:
1. I have several asp.net pages that initiate a file download, via
Response.WriteFile(). This works fine, except that it leaves the original
page up. These pages are generally launched in new windows, so I'd prefer
that they go away by themselves.
Can anyone suggest a way to have the page close by itself?
2. I have tried to disable the remaining page so that the user can't
re-submit. While it's easy enough to toggle off the buttons, an Enter key
causes a Submit, which ASP.Net (1.1) interprets as the first button (in this
case the one I'm trying to disable.
What's the cleanest way to prevent a page from being able to Post back?
Thanks.
1. I have several asp.net pages that initiate a file download, via
Response.WriteFile(). This works fine, except that it leaves the original
page up. These pages are generally launched in new windows, so I'd prefer
that they go away by themselves.
Can anyone suggest a way to have the page close by itself?
2. I have tried to disable the remaining page so that the user can't
re-submit. While it's easy enough to toggle off the buttons, an Enter key
causes a Submit, which ASP.Net (1.1) interprets as the first button (in this
case the one I'm trying to disable.
What's the cleanest way to prevent a page from being able to Post back?
Thanks.