Prevent IE File Download Warning Or Maintain State After Warning?
Mar 15, 2011
I have an application whereby a user browses to an Ajax enabled page, sets up some filters, and then clicks on download report. When the user clicks on this button, they are redirected to a Download.aspx page, which builds up the report and appends it to the response as binary (the file may either be zip/pdf or excel). The issue I am having is that everytime the user goes to the page and hits the download button the warning message from IE pops up "To help protect your security internet explorer has blocked this site from download files to your computer". This is not a huge issue, but the problem is that when the user clicks this warning to accept the file, it reloads the page, and all my filters are lost, so the user has to set up all the filters to filter out the data they dont want and then re-download the file.
The interesting thing is that I thought I could track the filters using session variables, so that when the page reloads after accepting the warning message it could be restored, but IE for some reason is not loading the page in the way it should, and so the Page_Load method is never fired when IE reloads it after the user accepting the warning, so I cannot restore the filter settings on the page because I have no event to do it from!
I have searched and searched for a solution.. I have tried changing the mime headers - I am using content-disposition tag set to "attachment; filename=report.zip", I have tried changing the mime type descriptions to different things to see if I can avoid the warning but to no avail. I have tried using an iframe but couldnt quite get it to do what I want it to do, the page was still being refreshed..
I am completely stuck here. Basically, I am serving a file to the user by sending it using Respnse.BinaryWrite. I am also sending this on a redirected page so as not to destroy the Response stream of the webpage which fired the filedownload. This works perfect on my development machine, it also works perfect on Firefox.However, if I publish to my test server, on IE 8 (and 7 I presume) a security warning bar appears (does not appear in dev mode on my pc), asking the user to accept or decline the file. Now the not-so-funny thing: If the user accepts, the file is NOT served, I just get back to my main webpage. If the user tries a second time to get the file the security question will NOT pop up again and the file is served.How can I make sure the file is served in the first instance if the user accepts the security warning and wants to download?
I met with the following security warning in browser (at the top of the page in IE) when browse a page -- "An add-on for this web site failed to run. Check the security settings in Internet Options for potential conflicts." The function I developed works fine besides the security warnings. I am using IE 8. why there is security warnings and how to resolve?
Here is the code I added to BlueBand.master to refer the js/css files in head section. I am developing a webpart which such script files will impact (i.e. my webpart will generate a div called "tabs" which such below scripts will impact).
I need to used openForecast.jar in my asp.net app, for that i read here and there and found IKVM, when i wrote in cmd
then i got warning message like this
D:BobbyTelkom Projectikvm-0.44.0.5in>ikvmc OpenForecast-0.4.0.jar Note IKVMC0002: output file is "OpenForecast-0.4.0.dll" Warning IKVMC0100: class "org.jfree.data.time.TimeSeries" not found Warning IKVMC0100: class "org.jfree.data.time.RegularTimePeriod" not found Warning IKVMC0100: class "org.jfree.data.time.TimeSeriesDataItem" not found Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in "net.sourceforge.op enforecast.input.TimeSeriesBuilder.<init>(Lorg.jfree.data.time.TimeSeries;)V" ("org.jfree.data.time.TimeSeries") Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in "net.sourceforge.op enforecast.input.TimeSeriesBuilder.<init>(Lorg.jfree.data.time.TimeSeries;Ljava. lang.String;)V" ("org.jfree.data.time.TimeSeries") Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in "net.sourceforge.op enforecast.input.TimeSeriesBuilder.build()Lnet.sourceforge.openforecast.DataSet; " (org.jfree.data.time.TimeSeries") Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in "net.sourceforge.op enforecast.input.TimeSeriesBuilder.build(Lorg.jfree.data.time.TimeSeriesDataItem ;)Lnet.sourceforge.openforecast.DataPoint;" ("org.jfree.data.time.TimeSeriesDataItem") Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in "net.sourceforge.op enforecast.output.TimeSeriesOutputter.output(Lnet.sourceforge.openforecast.DataP oint;Ljava.lang.String;)V" ("org.jfree.data.time.TimeSeriesDataItem")
I also found that openForecast consist of about 6 class files and 3 subFolder which each contains several class files..how to fix it (since the documentation of IKVM itself still getting me nowhere)
in my application i have to read from an excel files and check the value of every cell i'm using an OleDb connection to open it and reading but i have this issue if some of the cells in the excel sheet is having this warning when i try to read it returns DBNull ??could any one give me a clue ....knowing that i can not force the user for not having this warning ...i have to solve this within my code .
so theoretically, i have multiple companies using my application, and each company has multiple users. Now data is stored in a sql database and certain parts of it are changed enough whereby it has to be "reselected" by every user after a specific amount of time. ill call this the "highly dynamic data." (I already sorted out the 'users by company' effeciently with a cluster index in the companyID column for the tables)
lets say that each session will "check" if it has to be updated every 15 seconds. How will it check? If someone submitted a change to the "highly dynamic data" in the sql database then they will also submit the "time of change" to an .xml database. Moreover, each session has a "last updated" session variable. The session that submitted the change will update his "last updated" session variable at the time of the sql update. However, all other sessions will have out dated "last updated" session variables. and every 15 seconds each session checks the xml database to see if their "last update" is current. If it is not current then it does the sql database update, else, it does nothing..is this a good mechanism for efficient updating? The goal is to keep the sql database as free as possible and reduce strain on the server?
edit: oh yeah, how would i implement the timing factor here? firstly, i assume the 15 second counter shouldnt be concurrent with all other users, otherwise the server would be a cluster-f*** every 15 seconds so how would i incorporate some randomness for each session?
I have 1 App server and 1 Db Server, now Question is where i should install the Add-in , on App server or Db Server,Cause when i try to install on the App server i am getting PS: I have only WEE 3.0 installed.
have a web application that in build has no errors and it works fine.i have precompiled it sucessfully several times before.but now after some changes when i am precompiling it, the precompiled files are not created and a warning is shown at the command prompt several times.the warning is:BC42328:The 'AddressOf' expression has no effect in this context because the method argument to 'AddressOf' requires a relaxed conversion to the delegate type of the event. Assign the 'AddressOf' expression to a variable, and use the variable to add or remove the method as the handler
why I get these warnings, wondering if it is a bug with Visual Studio.I have a navigation web user control, with links, and the links work without error, but it underlines the links and gives me warnings that the pages are not found.If I put ~/ in front of the links, the underlines go away and o warnings but then the link will not work because it will put ~/ in front of the url which does not existI have set up a page with a couple of pics if you would like to see:https://sites.google.com/site/warningofpagenotfound/It is no big deal, and the site runs fine with the warnings, just curious to why it warns that the pages are not found
Is there a way that if certain items are selected in a DropDownList to fire up a ModalPopupBox. Basically if any value except for one value is selected, I want a popup warning them, are you sure?
I have the Popup Frame, I have the Popup Extender. I just don't know how to wire the two together using the TargetControlID. I don't want the popup to just automatically come up when the dropdownlist is selected but only if its not value "X".
I figured instead of doing this in parallel, I could check it after the fact when the form is posted using the extender.show() command but my program is crashing because the targetcontrolid for my modalpopupextender is null. I don't have a targetcontrolID in that case?
I have read about Ajax Control Toolkit that should solve pop-up window requirements, but I need a solution that doesn't involve me downloading this. I have an editable FormView from where I want to pop a "warning window" whenever the user clicks a button that closes the Form. This "warning window" should have the following controls:
Label: "Do you want to save changes?" btnPopSave: "Yes" >> triggers databinding of FormView fields to datasource, then closes warning window and the FormView btnPopClose: "No" >> closes warning window, and FormView without databinding
If this is not possible (or too complicated), I think I can settle for just a warning window with:
Label: "Make sure you've saved changes." and no other controls
btnPopClose: "OK" >> closes warning window, and FormView
hen i run a Pivot query, i receive this error. It looks not harmfull, because query executed successfully and the results arepartially ok. But for some columns, i get NULL values surprisingly. Because i have carefully checked all data in the source for the null values. All NULL values converted to ZERO, so there is no reeason for such error.I do not understand why this error for?
So I have an ASP.net application, with an ActiveX Control which brings up a pop up
When I point to the application directly through IP there is no problem with the pop up eg. xxx.xxx.xxx.xxx/MyApp (under Default Website in the IIS -- IIS 7) Problem arises when I set up the IIS to point it to a domain [URL] which points to the above IP (under another "Site" i.e. not the "Default Site in IIS 7)
I then get this weird
Microsoft .net Security Warning Never enter personal information or passwords into a window unless you can verify and trust the source of the request.
The site is in the trusted list -- just like when I was using the IP only . Is there any setting in the IIS I need to tweak for IE to trust me fully.
I just finished upgrading my vista to 7 and with some problems and one of them is every time I open my file and tried to debug it or run in browser, I always get a warning saying = Unable to connect to the ASP.NET Development Server I thought some problems when I upgrade so I reinstall the software but no luck
I've got a HomePage.aspx page - user clicks "NEW PROJECT" and they get brought to the NewProject.aspx page.
While on this page they click CONTINUE buttons on the page that move you through 3 stages of CASE creation.
If they click BACK - the BROWSER BACK button - I want to pop up a warning.
Going back will return you to the client homepage, and all data entered for this project will be lost. Do you wish to proceed?
If they click NO they return to where they just were - as if they did not click BACK.
Is this possible?
If not - can I make BACK just return to the HomePage.aspx - as if all the NewProject.aspx postbacks were not new page entries in the BROWSER history.
Flickr does something like that. When you click on the "in the last minute" link and see recent photos - then click reload several times - each of those reloads does not go into BROWSER BACK history. If you click BACK you are back onto the initial [URL] home page.