Click here to Skip to main content
16,004,686 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to rotate div(text) with the use of javascript Pin
Mark J. Miller18-Mar-08 5:10
Mark J. Miller18-Mar-08 5:10 
GeneralRender the Datatable data into the Table Html Format Pin
Aavesh Agarwal18-Mar-08 1:04
Aavesh Agarwal18-Mar-08 1:04 
GeneralRe: Render the Datatable data into the Table Html Format Pin
Trishul Tandel18-Mar-08 1:17
Trishul Tandel18-Mar-08 1:17 
GeneralReading .mpp file.. (Interesting) Pin
rain raj18-Mar-08 0:55
rain raj18-Mar-08 0:55 
GeneralImage not displaying Pin
.NET- India 18-Mar-08 0:45
.NET- India 18-Mar-08 0:45 
GeneralRe: Image not displaying Pin
Chetan Patel18-Mar-08 1:06
Chetan Patel18-Mar-08 1:06 
GeneralRe: Image not displaying Pin
.NET- India 18-Mar-08 1:27
.NET- India 18-Mar-08 1:27 
QuestionIE Bug, Caching and Downloading ?? Pin
Vanamaindia18-Mar-08 0:30
Vanamaindia18-Mar-08 0:30 
In ASP.NET, we have a download handler. We use this to send files to the users that they should be prompted to either Open or Save, rather than show inline in the browser. Through a combination of a couple sets of code, we ended up doing the equivalent of:

/* anti-cache code */
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
Response.Cache.SetExpires(DateTime.MinValue);

/* download prompt code */
Response.AppendHeader("Content-Disposition", "attachment; filename=" + ff.OriginalName);

This tells the browser not to cache the results (first set of code), and to give the Open/Save prompt (second set of code). Unfortunately, because of the way IE is architected, it always downloads to its cache, and then when the download is complete, puts the end result file in the right place. Logically speaking, IE put itself into a place architecturally when it would NOT permit the file to be downloaded.


how can I handle it in asp.net

I want to do these two things..cache clearing for disabling back button and downloading
Generalstart - run sql server Pin
eyeseetee17-Mar-08 23:45
eyeseetee17-Mar-08 23:45 
GeneralRe: start - run sql server Pin
sumit703418-Mar-08 0:16
sumit703418-Mar-08 0:16 
QuestionRe: start - run sql server Pin
EvilInside18-Mar-08 1:47
EvilInside18-Mar-08 1:47 
QuestionPartialCaching, Session Variables and User Control Pin
joshc17-Mar-08 23:18
joshc17-Mar-08 23:18 
GeneralRe: PartialCaching, Session Variables and User Control Pin
eyeseetee17-Mar-08 23:34
eyeseetee17-Mar-08 23:34 
QuestionEvent in Custom web control? Pin
maryam.saboor17-Mar-08 22:03
professionalmaryam.saboor17-Mar-08 22:03 
AnswerRe: Event in Custom web control? Pin
eyeseetee17-Mar-08 23:05
eyeseetee17-Mar-08 23:05 
GeneralSending mail and an error Pin
mehrdadc4817-Mar-08 21:53
mehrdadc4817-Mar-08 21:53 
GeneralRe: Sending mail and an error Pin
eyeseetee17-Mar-08 22:41
eyeseetee17-Mar-08 22:41 
GeneralRe: Sending mail and an error Pin
Christian Graus17-Mar-08 22:43
protectorChristian Graus17-Mar-08 22:43 
AnswerRe: Sending mail and an error Pin
EvilInside17-Mar-08 22:44
EvilInside17-Mar-08 22:44 
Questionhow to find substring count occurs in a string in asp.net Pin
$unil Dhiman17-Mar-08 21:52
$unil Dhiman17-Mar-08 21:52 
GeneralRe: how to find substring count occurs in a string in asp.net Pin
eyeseetee17-Mar-08 22:45
eyeseetee17-Mar-08 22:45 
GeneralRe: how to find substring count occurs in a string in asp.net Pin
$unil Dhiman18-Mar-08 0:52
$unil Dhiman18-Mar-08 0:52 
GeneralRe: how to find substring count occurs in a string in asp.net Pin
Christian Graus17-Mar-08 22:47
protectorChristian Graus17-Mar-08 22:47 
GeneralProblem in binding Menu with sitemap Pin
Deepak Nigam17-Mar-08 20:54
Deepak Nigam17-Mar-08 20:54 
GeneralRe: Problem in binding Menu with sitemap Pin
eyeseetee17-Mar-08 22:45
eyeseetee17-Mar-08 22:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.