473,396 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Handling Backs etc.

H

I was wondering if anyone knew what the recommended way is to handle Back clicks, as well as Refresh clicks by users for advanced ASP.NET sites
I have a site that has a set of information that can be edited on one page, but when a certain action is taken, the user mustn't be able to go back and change details etc!
Basically, this is an advanced Timesheet application...when someone enters some hours and clicks Submit, then they are allowed to View the timesheet, but cant Add or Edit items. I've effectively blocked all Back requests, but this makes the site very un-user friendly!! I want the site to evaluate certain things, and allow the user to click back, and to redirect to another page or change the State of the page (to View Only from Edit if the person was on Edit mode previously for example)
I don't mind if the site isn't lightening-quick with the Back requests, as I understand that the page needs to go back to the srever if I want things to be evaluated.
I'm sure there must be an Accepted Recommended procedure with handling this, but I haven't found it!

Can anyone help me
As it stands, I have the following code included in the Form of each page, and it Blocks the back fine, but isn't optimal!

<
Response.ExpiresAbsolute = Now(
Response.Expires =
Response.CacheControl = "no-cache
Response.Buffer = Tru
Response.Cache.SetCacheability(HttpCacheability.No Cache
Response.Cache.SetExpires (DateTime.UtcNow
Response.Cache.SetNoStore(
Response.Cache.SetRevalidation(HttpCacheRevalidati on.AllCaches
%

Any advice will be greatly appreciated!

Thanks in advanc
David Crone
Nov 18 '05 #1
13 1432
I would just put something in either a cookie or the session saying that it
was there, and if that exists, redirect before the page is displayed....

James Hancock

"David Crone" <da*********@currieb.ie> wrote in message
news:24**********************************@microsof t.com...
Hi

I was wondering if anyone knew what the recommended way is to handle Back
clicks, as well as Refresh clicks by users for advanced ASP.NET sites?
I have a site that has a set of information that can be edited on one
page, but when a certain action is taken, the user mustn't be able to go
back and change details etc!!
Basically, this is an advanced Timesheet application...when someone enters
some hours and clicks Submit, then they are allowed to View the timesheet,
but cant Add or Edit items. I've effectively blocked all Back requests,
but this makes the site very un-user friendly!! I want the site to
evaluate certain things, and allow the user to click back, and to redirect
to another page or change the State of the page (to View Only from Edit if
the person was on Edit mode previously for example).
I don't mind if the site isn't lightening-quick with the Back requests, as
I understand that the page needs to go back to the srever if I want things
to be evaluated.
I'm sure there must be an Accepted Recommended procedure with handling
this, but I haven't found it!!

Can anyone help me?
As it stands, I have the following code included in the Form of each page,
and it Blocks the back fine, but isn't optimal!!

<%
Response.ExpiresAbsolute = Now()
Response.Expires = 0
Response.CacheControl = "no-cache"
Response.Buffer = True
Response.Cache.SetCacheability(HttpCacheability.No Cache)
Response.Cache.SetExpires (DateTime.UtcNow)
Response.Cache.SetNoStore()
Response.Cache.SetRevalidation(HttpCacheRevalidati on.AllCaches)
%>
Any advice will be greatly appreciated!!

Thanks in advance
David Crone

Nov 18 '05 #2

Hi James

The only problem is that if you just click Back, the user doesnt get
taken back to the server!!
Also, tracking if the user has Been there before or not isnt reliable,
as if the user browses back to that page properly, we dont want them to
be blocked!!

I have a page that has many different States (Adding, Editing,
SubmittingForApproval etc).
Once the user has Approved his timesheet for example, we dont want him
to be able to edit details in it, but we want him to be able to click
Back after clicking Approve, and to be able to see the page in View
mode, and not in Edit mode as he was before. But clicking Back just
shows the Previous HTML cached!!

Do you follow what I mean?

Thanks in advance
David Crone
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

Hi David,

Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you have anything unclear or if
there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #4

Hi David,

Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you have anything unclear or if
there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #5
Hi Stephe

Thanks for your response...could you check the links you included though please, as they dont seem to work, even though I've appended the wrapped text!

Thanks in advanc
David Crone
Nov 18 '05 #6
Hi Stephe

Thanks for your response...could you check the links you included though please, as they dont seem to work, even though I've appended the wrapped text!

Thanks in advanc
David Crone
Nov 18 '05 #7
Hi David,

Thanks for the followup.
The web link in the mail such as
http://msdn.microsoft.com/newsgroups...icrosoft.publi
c.dotnet.framework.aspnet

can redirect you to the certain newsgroup but new the exact thread.
Also, are you using OE to view the post? When there is attachment in
message, we need to use OE to check the message rather than web interface
so as to ge the attachement. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #8
Hi David,

Thanks for the followup.
The web link in the mail such as
http://msdn.microsoft.com/newsgroups...icrosoft.publi
c.dotnet.framework.aspnet

can redirect you to the certain newsgroup but new the exact thread.
Also, are you using OE to view the post? When there is attachment in
message, we need to use OE to check the message rather than web interface
so as to ge the attachement. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #9
Hi Stephen

I have OE, but was using my browser for forums etc so far.

Should I use those links in OE, or how would it work?

Thanks for your patience; I havent used OE for newsgroups b4!!
David Crone

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #10
Hi Stephen

I have OE, but was using my browser for forums etc so far.

Should I use those links in OE, or how would it work?

Thanks for your patience; I havent used OE for newsgroups b4!!
David Crone

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #11
Hi David,

The
"http://msdn.microsoft.com/newsgroups/managed/default.aspx?dg=microsoft.publ
ic.dotnet.framework.aspnet "
address is the weblink to the newsgroup board.

And the
"news:microsoft.public.dotnet.framework.aspnet " link
is for OutLook Express.

You can view through either as you like. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Nov 18 '05 #12
Hi David,

The
"http://msdn.microsoft.com/newsgroups/managed/default.aspx?dg=microsoft.publ
ic.dotnet.framework.aspnet "
address is the weblink to the newsgroup board.

And the
"news:microsoft.public.dotnet.framework.aspnet " link
is for OutLook Express.

You can view through either as you like. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Nov 18 '05 #13
Hei,

Are there any changes to the smartnavigation functionality in the Whidbey Visual studio edition.
To make complex web pages that do not do blinking responses we have to use XML posts or hidden Iframes
with parent.docum... to set values, because Smartnavigation doesn't work properly (still lots of visible rendering going on).
For Internet Explorer smartnavigation could be built with xml posts instead and made rendering much more smooth.
Jo Arild
Nov 18 '05 #14

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

Similar topics

7
by: VK | last post by:
Hello: Since our application uses ASP, I am posting this in this group. Pardon if wrong group. Our product/application replies a lot on bounced back emails, that way we correct this and let...
111
by: Retlak | last post by:
The recommended (on dozens of websites) and effective (works in Netscape, MSIE, Mozilla, probably others) way to detect if a browser has Javascript turned off is to put this in the <head>: ...
2
by: deko | last post by:
I want to turn error handling off, then back on in a sub routine that backs up a select set of documents. For some reason, I can't seem to get this to work - Private Sub BackupDocs() On Error...
7
by: David Crone | last post by:
H I was wondering if anyone knew what the recommended way is to handle Back clicks, as well as Refresh clicks by users for advanced ASP.NET sites I have a site that has a set of information that...
0
by: Rosanne | last post by:
I have an aspx page that contains a custom built component. Thi component contains a panel. At runtime text boxes are built and adde to the controls collection of the panel on an as needed basis....
7
by: Robert Latest | last post by:
Hello folks, I'm finding myself in a situation where I write plenty of code where "stacks" of function calls appear quite frequently, as shown below. Of course it would be tedious to check the...
3
by: Tony | last post by:
I have a WebApp with 3 text boxes and 1 button, as described below. Can someone please explain why the bad scenarios are occurring and better still if they can be prevented or worked-around?...
0
by: orianavim | last post by:
Hi, I'm using my IIS 6.0 built in SMTP service to send email from my application (C#). However, I need to figure out a way to find which emails are getting bounced. I there any way to intercept...
0
by: dotnet_nut | last post by:
I need to populate a combo-box based upon the selection from another combo-box without postbacks. I know its possible using asp.net 2.0 client call backs. Any samples in Vb.Net will be helpful. ...
0
by: culubalo | last post by:
Ok so this has been annoying me since yesterday but should be simple enough to do. If I create, say a picture box in an array, in code in Form1.h as follows: System::Windows::Forms::PictureBox^...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.