Click here to Skip to main content
16,011,849 members
Home / Discussions / C#
   

C#

 
GeneralRe: Icon Pin
Rajasekharan Vengalil9-Nov-07 20:27
Rajasekharan Vengalil9-Nov-07 20:27 
GeneralRe: Icon Pin
MasterSharp10-Nov-07 3:58
MasterSharp10-Nov-07 3:58 
GeneralRe: Icon Pin
Rajasekharan Vengalil10-Nov-07 6:16
Rajasekharan Vengalil10-Nov-07 6:16 
Questionuser control Pin
nhathoang9-Nov-07 13:27
nhathoang9-Nov-07 13:27 
AnswerRe: user control Pin
mav.northwind9-Nov-07 20:30
mav.northwind9-Nov-07 20:30 
AnswerDouble post Pin
pmarfleet9-Nov-07 21:43
pmarfleet9-Nov-07 21:43 
QuestionIE7 Clearing cache before using a WebRequest to get data ? Pin
BillWoodruff9-Nov-07 12:59
professionalBillWoodruff9-Nov-07 12:59 
AnswerRe: IE7 Clearing cache before using a WebRequest to get data ? Pin
Rajasekharan Vengalil9-Nov-07 20:37
Rajasekharan Vengalil9-Nov-07 20:37 
You might want to take a look at WebRequest.CachePolicy. Here's a sample snippet from MSDN[^] that does absolutely no caching.
// The following method demonstrates overriding the
// caching policy for a request.
public static WebResponse GetResponseNoCache(Uri uri)
{
    // Set a default policy level for the "http:" and "https" schemes.
    HttpRequestCachePolicy policy = new HttpRequestCachePolicy(HttpRequestCacheLevel.Default);
    HttpWebRequest.DefaultCachePolicy = policy;
    // Create the request.
    WebRequest request = WebRequest.Create(uri);
    // Define a cache policy for this request only. 
    HttpRequestCachePolicy noCachePolicy = new HttpRequestCachePolicy(HttpRequestCacheLevel.NoCacheNoStore);
    request.CachePolicy = noCachePolicy;
    WebResponse response = request.GetResponse();
    Console.WriteLine("IsFromCache? {0}", response.IsFromCache);            
    return response;
}



GeneralRe: IE7 Clearing cache before using a WebRequest to get data ? Pin
BillWoodruff11-Nov-07 14:47
professionalBillWoodruff11-Nov-07 14:47 
QuestionSomething SImple Pin
MasterSharp9-Nov-07 10:48
MasterSharp9-Nov-07 10:48 
AnswerRe: Something SImple Pin
Judah Gabriel Himango9-Nov-07 10:58
sponsorJudah Gabriel Himango9-Nov-07 10:58 
GeneralRe: Something SImple Pin
MasterSharp9-Nov-07 11:04
MasterSharp9-Nov-07 11:04 
GeneralRe: Something SImple Pin
Judah Gabriel Himango9-Nov-07 11:12
sponsorJudah Gabriel Himango9-Nov-07 11:12 
AnswerRe: Something SImple Pin
Judah Gabriel Himango9-Nov-07 11:15
sponsorJudah Gabriel Himango9-Nov-07 11:15 
GeneralRe: Something SImple Pin
MasterSharp9-Nov-07 11:17
MasterSharp9-Nov-07 11:17 
GeneralRe: Something SImple Pin
Judah Gabriel Himango9-Nov-07 11:24
sponsorJudah Gabriel Himango9-Nov-07 11:24 
GeneralRe: Something SImple Pin
MasterSharp9-Nov-07 11:27
MasterSharp9-Nov-07 11:27 
GeneralRe: Something SImple Pin
Judah Gabriel Himango9-Nov-07 12:04
sponsorJudah Gabriel Himango9-Nov-07 12:04 
GeneralRe: Something SImple Pin
MasterSharp9-Nov-07 12:05
MasterSharp9-Nov-07 12:05 
GeneralRe: Something SImple Pin
Malcolm Smart9-Nov-07 12:18
Malcolm Smart9-Nov-07 12:18 
GeneralRe: Something SImple Pin
MasterSharp9-Nov-07 12:21
MasterSharp9-Nov-07 12:21 
GeneralRe: Something SImple Pin
Malcolm Smart9-Nov-07 12:30
Malcolm Smart9-Nov-07 12:30 
GeneralRe: Something SImple Pin
MasterSharp9-Nov-07 12:39
MasterSharp9-Nov-07 12:39 
GeneralRe: Something SImple Pin
Malcolm Smart9-Nov-07 12:45
Malcolm Smart9-Nov-07 12:45 
GeneralRe: Something SImple Pin
MasterSharp9-Nov-07 12:51
MasterSharp9-Nov-07 12:51 

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.