473,569 Members | 2,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CacheDuration

Hi,
I was implementing a simple example of a web service that uses caching:
[WebMethod(Cache Duration = 60, Description="Me thod to demonstrate caching")]
public String CachedString(in t input)
{
return "The time is " + DateTime.Now.To LongTimeString( );
}

When I use Internet Explorer to test the web service (either by running web
service from Visual Studio or starting IE outside of VS), the caching does
not work. When I create a Windows Forms app to test the web service, caching
works.

Does anyone know why this is so? I am using IE 6, Visual Studio 2003, 1.1
..NET Framwork, and Windows XP Professional.

Thanks

Nov 21 '05 #1
0 1472

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1013
by: usamedb208 | last post by:
Hello. I have a web method that make a call to database. I set cacheDuration attribute to 0, -1,1, anything but it caches results every time when I make a call to this web method with the same params. How do I turn off caching?
1
1245
by: André Schubert | last post by:
Morning, how can i change the cache duration of a webservice methode dynamically ? THX André
1
3121
by: jonel | last post by:
I have the CacheDuration attribute set for 60 seconds as show below: <WebMethod(CacheDuration:=60, Description:="Method to demonstrate caching")> _ Public Function CachedString(ByVal inputInt As Integer) As String Return "The time is " & DateTime.Now.ToLongTimeString End Function When I invoke this page from IE using the same parametr in...
3
1646
by: A | last post by:
Hello I have a caching problem : my WebService is using a DB. I'm doing changes in the DB and they are not reflected in the result of the Web method. After like 30min, restarting IIS many times .... without touching the code, the changes appear in the result of the Web method. I try to add but it keeps the same data...
0
1120
by: thehitman | last post by:
I used an article "Creating a Flexible Configuration Section Handler "(http://www.15seconds.com/issue/040504.htm). The Console application works with app.config but with the web.config. The Namespace change and inserting into a class library are the only differences in the code. In the web config <!-- Config section Group and Sections...
3
4075
by: archana | last post by:
hi all. I am having one web service in c#.net where in i am using cacheduration. I have one property as below: get {
2
2017
by: dba56 | last post by:
In an ASP.Net 2.0 page using SQL Server 2K, I have a editable gridview that is bound to a SQLDataSource using stored procedures for its select and update queries. The grid works fine but is slow due to rebinding on postbacks when the edit, save or cancel buttons are clicked. So I set "enablecache = True" for the SQLDataSource and it is...
0
1008
by: Arpan | last post by:
I successfully created a DLL named "DBServices.dll" using the following code in a class file: Imports System Imports System.Data Imports System.Data.SqlClient Imports System.Web.Services Namespace DBServices Public Class DBServiceSettings : Inherits WebService
0
945
by: archana | last post by:
Hi all, I am developing one web service and i want to use caching in that. I set cacheduration as 60 seconds. So what i am expecting is withint 60 second if i recalled method it should give me cached result and not new one. But its not happening even if i am passing same parameter to web method. Can anyone tell me do i need to change...
0
7700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7974
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.