Ask a Question related to ASP.NET General, Design and Development.
-
Mark Fitzpatrick #1
Re: Need to delete a file when user navigate away from the page
The big problem is, because this entire process is stateless, the server
doesn't notice events like these. What you could do is create a new base
class for all your pages based on the normal Page class, but have it check
to determine the name of the script being called (using the
HttpContext.Current.Request objects collections) and if it isn't this page
you can delete the relevant files.
Instead of saving it as file, why not just add it to the viewstate for that
page. When they navitage away from the page it won't matter anymore as the
state won't be held.
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
"Sudha" <Sudha_s@mailcity.com> wrote in message
news:022101c33b4f$e7317860$a501280a@phx.gbl...> Hi,
>
> I have a datagrid control on my page. I navigate through
> the records using datagrid pagination. I get the records
> from the dataset when the user first queries for certain
> records. I then store the dataset into an xml file and use
> that xml file to display records when user clicks next or
> prev button in the datagrid. My problem is I need to
> delete that xml file when the user navigates away from
> that page. for eg my datagrid is in a search tab. When the
> user clicks Home tab or any other tab I need to remove
> that xml file from the disk. I used Page_Unload method
> but, it is fired when the user clicks Next or Prev button
> also. How should I remove a file when the user navigates
> to another page???
>
Mark Fitzpatrick Guest
-
How make flash buttond navigate your web page?
Ok I can make every button work for my web pages but one button. This one button won't go to my fourm. I was just wondering why. Can any one help... -
prompt user to save changes in datagrid editmode when they try to navigate away from page...how do you do that?
Hello, I have a custom datagrid control that works great. But I was thinking about adding some functionality to it. Currently, I use the... -
prompt to save changes in datagrid in editmode if user tries to navigate away
Hello, I have a custom datagrid control that works great. But I was thinking about adding some functionality to it. Currently, I use the... -
How to navigate inside a projector file that created with mult dir files
Hi, I created a projector file with combination of two director files. I use "go to frame of moive" lingo but fail. I put both dcr files to the... -
Importing a navigate-able file?? how does it work?
Is it posible to load an external director file into a main director file and then browse through the external file. Because when i use the import...



Reply With Quote

