Too Challenging?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Was my question too challenging for everyone? I thought I would get a much quicker response, complete with witty and (sometimes) condescending remarks

Here's my question again, in case you missed it

How do I reload a page

Notice I did not ask "How do I *refresh* a page". I have no interest in the header meta refresh as this clears out the data I need to show. Also, Response.Redirect does me no good. It completely bypasses the data as well

What I need is something like when you click on the refresh button in IE. It reloads the page, but the data remains.
 
George,

I don't think that it was too challenging, but I don't think you were
perfectly clear. What do you mean by "reloading the page, but the data
remains" When you click refresh, it sends the request back to the server to
be processed.

Some pages will have javascript which makes requests to HTTP (through
the MSXML parser, I believe, I forget exactly) and then updates page
elements based on the results, but that's all client side, you can't do much
about that on the server.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

George said:
Was my question too challenging for everyone? I thought I would get a much
quicker response, complete with witty and (sometimes) condescending remarks.
Here's my question again, in case you missed it:

How do I reload a page?

Notice I did not ask "How do I *refresh* a page". I have no interest in
the header meta refresh as this clears out the data I need to show. Also,
Response.Redirect does me no good. It completely bypasses the data as well.
What I need is something like when you click on the refresh button in IE.
It reloads the page, but the data remains.
 
George said:
Was my question too challenging for everyone? I thought I would get a much
quicker response, complete with witty and (sometimes) condescending remarks.
Here's my question again, in case you missed it:

How do I reload a page?

Notice I did not ask "How do I *refresh* a page". I have no interest in
the header meta refresh as this clears out the data I need to show. Also,
Response.Redirect does me no good. It completely bypasses the data as well.
What I need is something like when you click on the refresh button in IE.
It reloads the page, but the data remains.

What is a page with respect to csharp? Forgive my ignorance.
 
George said:
Was my question too challenging for everyone? I thought I would get a
much quicker response, complete with witty and (sometimes)
condescending remarks.

Well, you only waited for an hour and a half. Not exactly a long time,
particularly given that this is a C# group rather than either an
ASP.NET group or a JavaScript group.
Here's my question again, in case you missed it:

How do I reload a page?

Notice I did not ask "How do I *refresh* a page". I have no interest
in the header meta refresh as this clears out the data I need to
show. Also, Response.Redirect does me no good. It completely bypasses
the data as well.

What I need is something like when you click on the refresh button in
IE. It reloads the page, but the data remains.

I'm still not entirely sure what you're after - do you want the browser
to contact the server or not? If you do, then the way to make your data
remain is simply to post it to the server and make sure the server
returns it when it serves the page again. If you don't, what change do
you want to be visible?

Could you give a small example page which shows what you're trying to
do?
 
Well,
a. this isn't a C# question
and
b. the IE Refresh resends the previous HTTP Request(be it a POST or GET),
so the way to simulate this depends greatly on how your page was originally
constructed. If it was the result of a post your best option is probably
using a Javascript timer to auto-submit a hidden form which has the original
data. If its a get you need to redirect to the same page submitting the
correct querystring values.

HTH
Chris Torgerson
George said:
Was my question too challenging for everyone? I thought I would get a much
quicker response, complete with witty and (sometimes) condescending remarks.
Here's my question again, in case you missed it:

How do I reload a page?

Notice I did not ask "How do I *refresh* a page". I have no interest in
the header meta refresh as this clears out the data I need to show. Also,
Response.Redirect does me no good. It completely bypasses the data as well.
What I need is something like when you click on the refresh button in IE.
It reloads the page, but the data remains.
 
Bravo Tom. That was witty remark #1. :-

Maybe I should have phrased it like so

How do you...using the C# programming language...reload a page

----- TT (Tom Tempelaere) wrote: ----

George said:
Was my question too challenging for everyone? I thought I would get a muc
quicker response, complete with witty and (sometimes) condescending remarksthe header meta refresh as this clears out the data I need to show. Also
Response.Redirect does me no good. It completely bypasses the data as wellIt reloads the page, but the data remains

What is a page with respect to csharp? Forgive my ignorance
 
George said:
Bravo Tom. That was witty remark #1. :-)

Maybe I should have phrased it like so:

How do you...using the C# programming language...reload a page?

The question _still_ would've been directed at the wrong group. This
group is about the C# programming language.
 
George said:
For example, I have a label control which has some text associated
with it. The text "goes away" with a regular refresh because there's
a lot of behind the scenes DB access and things of that sort. If I
just do an IE reload it's perfect because the label control text
remains *and* the DB stuff is kosher. I need a way to do a minor
reload as opposed to a complete elimination of data (i.e. a refresh).

Either do the whole thing on the client side with JavaScript, or make
the client submit the data to the server, and make the server return
the new version of the page including all the submitted data.
 
In all fairness, if this group is ^strictly^ about the C# programming
language, then probably 95% (if not higher) of the questions shouldn't be
asked here, as they are framework questions, not directly related to the C#
programming language.
 
Nicholas said:
In all fairness, if this group is ^strictly^ about the C# programming
language, then probably 95% (if not higher) of the questions shouldn't be
asked here, as they are framework questions, not directly related to the C#
programming language.

Yeah, and it's not strictly about the C# programming language now simply
because people are posting off-topic posts here. :-)
 
George said:
Was my question too challenging for everyone? I thought I would get a
much quicker response, complete with witty and (sometimes)
condescending remarks.

You probably chose the wrong group to post this question. How does it relate
to C#?
 
George said:
Was my question too challenging for everyone? I thought I would get a much
quicker response, complete with witty and (sometimes) condescending remarks.
Here's my question again, in case you missed it:

How do I reload a page?

Notice I did not ask "How do I *refresh* a page". I have no interest in
the header meta refresh as this clears out the data I need to show. Also,
Response.Redirect does me no good. It completely bypasses the data as well.
What I need is something like when you click on the refresh button in IE.
It reloads the page, but the data remains.

HttpResponse and use ClearHeader then AddHeader or AppendHeader to always
reconstruct the headers to suit your tastes?
 
Back
Top