Re: Cache

From: Kevin Spencer (kspencer_at_takempis.com)
Date: 08/24/04


Date: Tue, 24 Aug 2004 09:09:53 -0400

Note what I said:

> > The only way for any HTML object or script on the client to know
anything
> > about what is on the server is if it is present in the HTML document on
> > the
> > client.

Note what you said:

> Using <% ServerVariable%> can get values from the server then the java can
> access this value.

What you described is exactly (but badly demonstrated) what I was talking
about - writing data into the client HTML document. And BTW, JavaScript is
NOT Java.

Note what I said:

 IOW, you can write out values into hidden HTML form fields, etc.,
> > if
> > you want to access that data on the client.

Note what you said:

> Also, posting or html control values can be captured on the aspnet
> codebehind side.

Am I missing something, or is your "correction" in agreement with what I
said?

If you don't understand the technology that well, keeping silent will make
people think you do.

-- 
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
news:uSAXeeViEHA.2340@TK2MSFTNGP11.phx.gbl...
> Not entirely true there:
>
> Using <% ServerVariable%> can get values from the server then the java can
> access this value.
>
> Also, posting or html control values can be captured on the aspnet
> codebehind side.
>
> Harry
>
> "Kevin Spencer" <kspencer@takempis.com> wrote in message
> news:OdENQWViEHA.2764@TK2MSFTNGP11.phx.gbl...
> > Okay, first, it is important to note that there is no "THE Cache" -
There
> > are many caching mechanisms in ASP.Net, including, but not limited to
the
> > Application Cache, SessionState, ViewState, and Page Output Cache. I can
> > see
> > from your message context that in this case, you're referring to the
> > Application Cache, but I wanted you to know that you have plenty of
> > options
> > for caching data. Each of these options has different characteristics
that
> > make it more or less appropriate for the specific kind of aching you
want
> > to
> > do. ViewState, for example, has Page scope, which means that it is
> > accessible to a given user (client browser instance) and a given page,
> > and
> > passes away whenever the user navigates away from a page. SessionState
is
> > global to a user across pages, but not available to any other user
(client
> > browser). Application Cache is visible to all user Sessions and for the
> > lifetime of the Application, or the timeout you set for it.
> >
> > ASP.Net has both server-side and client-side components, and never the
> > twain
> > shall meet. The server-side objects generate client-side HTML, which is
> > then
> > posted back to the server, etc. As HTTP is stateless, there is no
> > communication between client and server, other than a Request (POST or
> > GET),
> > and the HTML document that is received by the client browser. Therefore,
> > as
> > these caching mechanisms are all on the server, there is no way to
access
> > anything on the server via the client (a bit oversimplified, but useful
in
> > this context).
> >
> > The only way for any HTML object or script on the client to know
anything
> > about what is on the server is if it is present in the HTML document on
> > the
> > client. IOW, you can write out values into hidden HTML form fields,
etc.,
> > if
> > you want to access that data on the client.
> >
> > -- 
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> >
> > "Angel" <Angel@discussions.microsoft.com> wrote in message
> > news:387A49E4-9BFB-42BB-8627-51C5D20D43CC@microsoft.com...
> >> I am saving items in the cache in my code behind. By setting these
items
> > with
> >> an expiration are these items only available for the page its being set
> >> or
> >> throughout the application? My next question is can these cache items
be
> >> accessed on the client side code(Javascript), If so, how? do you have
any
> >> javascript code out there that accesses these cached items from the
code
> >> behind?
> >>
> >> thank you in advance...
> >
> >
>
>


Relevant Pages

  • Re: How to do a post back when user press enter.
    ... It is hosted on a web server, ... the client browser, which is designed to read and interpret HTML. ... UI, via the event handler. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to do a post back when user press enter.
    ... > requested by a client browser, ... > by an ISAPI (Internet Server Application Programming Interface) ... > and interpret HTML. ... > to its process and UI, via the event handler. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Unable to post multipart/form-data
    ... scripting at all and "some" folks are unable to post any file till ... I've installed a packet sniffer software on the server and looked ... It appears that, for some reasons i realy dont know of, the client ... Here is the WHOLE (HTML 4.01 transit) code of the non working page. ...
    (microsoft.public.inetserver.iis)
  • some" folks are unable to post any file till "some" are able
    ... scripting at all and "some" folks are unable to post any file till ... I've installed a packet sniffer software on the server and looked ... It appears that, for some reasons i realy dont know of, the client ... Here is the WHOLE (HTML 4.01 transit) code of the non working page. ...
    (microsoft.public.inetserver.asp.general)
  • Re: HTML document in Word ignores changes
    ... should just edit the HTML file in Notepad. ... > desginated directory on the server. ... > I create the document in Word and then save it as a html document. ...
    (microsoft.public.word.vba.general)