Re: Creating a "Back" button in VB.Net/ASP.Net

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Is this not supported by .Net?

Why would it be? .Net runs on the server, and you are trying to perform a
client action.

Why is it that things that should be very simple are so convoluted in
..Net?

What makes you think it's simple? Is because you think simply?

Or is it because you are trying so hard to *make* it not simple?

Why do you want to go back to the server to perform an action that is
handled more simply, and natively on the client?

What is convoluted about it?

Of course, if you insist on going back to the server, I guess you could
store the previous page in a session variable, post back to the server, read
the variable, and redirect to that page.

But, that would be not simple, and also very convoluted. Oh, yeah - and
stupid.

Bob Lehmann

"Coleen" <coleenholley@xxxxxxxxx> wrote in message
news:%23Lxi0QsfGHA.2172@xxxxxxxxxxxxxxxxxxxxxxx
Yes, I know I can use JavaScript, thanks. I was trying to find out if
there
is a way to do this using VB.Net? I have been reading all the help files
and searching on-line but can't find anything to accomplish this in VB
..Net.
Is this not supported by .Net? Why is it that things that should be very
simple are so convoluted in .Net?

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx> wrote in message
news:Oupxe%23rfGHA.764@xxxxxxxxxxxxxxxxxxxxxxx
"Coleen" <coleenholley@xxxxxxxxx> schrieb:
Yes, I know why would I want to create a back button when there is one
on
the browser? Because that's what the users want! they want a
"Previous"
button that they can click from any web page in our application that
will
do
the exact same thing as the Back button in the browser. Can anyone
give
me
any suggestions on how to do this using VB .Net? I have Googled for
"Create
Back Button" and found stuff in JavaScript and HTML but nothing in VB
.Net.
Can this be done as simply as doing a response.redirect? Any help
would
be
appreciated.

As the action takes place on the client (as does pressing the browser's
"Back" button) you may want to use client-side JavaScript. Solutions
can
be
found on the Web.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>





.


Quantcast