I have written an ASP.Net application and has question regarding page
navigation.
Aftyer logging in to the web site by clicking on the back button user can go
back to the login ASPX page.
How to avoid this in ASP.Net ?
Thanks
Veer 5 3127
"Veeresh" <Ve******@hotma il.com> wrote in message
news:ep******** ******@TK2MSFTN GP10.phx.gbl... I have written an ASP.Net application and has question regarding page navigation. Aftyer logging in to the web site by clicking on the back button user can
go back to the login ASPX page. How to avoid this in ASP.Net ?
This cannot be avoided. The user is in control, not ASP.NET.
--
John Saunders
johnwsaundersii i at hotmail
After login, open a new window.
This window will have no history, so the back button will be disabled.
Yes, it's a bit of a hack but there is no perfect solution.
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Veeresh" <Ve******@hotma il.com> wrote in message
news:ep******** ******@TK2MSFTN GP10.phx.gbl... I have written an ASP.Net application and has question regarding page navigation. Aftyer logging in to the web site by clicking on the back button user can
go back to the login ASPX page. How to avoid this in ASP.Net ? Thanks Veer
Launching a new window is really good idea.
Currently I have used Response.Redire ct("nextPage.as px") page. How to lunch
the new page from server side?
Thanks,
Veer
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:OF******** ******@TK2MSFTN GP12.phx.gbl... After login, open a new window. This window will have no history, so the back button will be disabled. Yes, it's a bit of a hack but there is no perfect solution.
-- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Veeresh" <Ve******@hotma il.com> wrote in message news:ep******** ******@TK2MSFTN GP10.phx.gbl... I have written an ASP.Net application and has question regarding page navigation. Aftyer logging in to the web site by clicking on the back button user
can go back to the login ASPX page. How to avoid this in ASP.Net ? Thanks Veer
You can open a new window using client side javascript such as this:
window.open('My Page.aspx','_ne w')
There are all kinds of options for setting window properties such as window
size and toolbar visibility.
Here's more info: http://msdn.microsoft.com/workshop/a...ods/open_0.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Veeresh" <Ve******@hotma il.com> wrote in message
news:ey******** ******@TK2MSFTN GP09.phx.gbl... Launching a new window is really good idea. Currently I have used Response.Redire ct("nextPage.as px") page. How to
lunch the new page from server side? Thanks, Veer "Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:OF******** ******@TK2MSFTN GP12.phx.gbl... After login, open a new window. This window will have no history, so the back button will be disabled. Yes, it's a bit of a hack but there is no perfect solution.
-- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Veeresh" <Ve******@hotma il.com> wrote in message news:ep******** ******@TK2MSFTN GP10.phx.gbl... I have written an ASP.Net application and has question regarding page navigation. Aftyer logging in to the web site by clicking on the back button user can go back to the login ASPX page. How to avoid this in ASP.Net ? Thanks Veer
I can open a new window using window.open. Again the problem was closing the
existing window(login page).
I am calling window.close() followed by window.open statements. But a
confirmation message appears before it closes and looks not feasible for
production.
Veer
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:eK******** ******@TK2MSFTN GP12.phx.gbl... You can open a new window using client side javascript such as this: window.open('My Page.aspx','_ne w') There are all kinds of options for setting window properties such as
window size and toolbar visibility. Here's more info: http://msdn.microsoft.com/workshop/a...ods/open_0.asp -- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Veeresh" <Ve******@hotma il.com> wrote in message news:ey******** ******@TK2MSFTN GP09.phx.gbl... Launching a new window is really good idea. Currently I have used Response.Redire ct("nextPage.as px") page. How to lunch the new page from server side? Thanks, Veer "Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:OF******** ******@TK2MSFTN GP12.phx.gbl... After login, open a new window. This window will have no history, so the back button will be disabled. Yes, it's a bit of a hack but there is no perfect solution.
-- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Veeresh" <Ve******@hotma il.com> wrote in message news:ep******** ******@TK2MSFTN GP10.phx.gbl... > I have written an ASP.Net application and has question regarding
page > navigation. > Aftyer logging in to the web site by clicking on the back button
user can go > back to the login ASPX page. > How to avoid this in ASP.Net ? > Thanks > Veer > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: vishal |
last post by:
i have one form on which the data is stored in database and suppose the
user clicks the back button of browser and again click on submit button
then the data will be saved in database again.
so how can i solve this problem????
thxs for help in advance
|
by: el_roachmeister |
last post by:
Is there a way to make a text link post to a form without passing all
the parameters in the url? The urls tend to get very long and messy. I
often wonder if there is a limit to how long they can get?
|
by: Bob Bedford |
last post by:
When I click on the Back button of the browser I've to reload pages. How to
avoid this ?
The code worked fine before, no need to push the refresh button of the
browser.
BoB
|
by: Carlos Andr?s |
last post by:
Hi everybody.
I've got a problem. I'd like to avoid opening a new window when you
have pressed the shift key and you click in the left button of the
mouse. I've tried the next solution, in the body of the page I put the
next code:
<BODY onkeydown='notOpenNewWindow();'>
|
by: Paul Brady |
last post by:
I have non-computer skilled users entering data into a form. There
are certain ranges of values which, if they enter them, make no sense
in the application, but I can't test them until they try to close out
the form, in which case I can look at the entire set of values and see
if they're OK. So, I have this code.
for the "Before Update" event:
if (their variables are inappropriate) then
msgbox "You've entered bad variables (or some...
| |
by: nvv via DotNetMonster.com |
last post by:
Hi,
I am working on a web site which authenticates an user using forms. And once they logout, I observed that, for any reason if they click on "BACK" button of the browser, the user is being taken back to the site instead taking them to "login" page. I used formsAuthentication signout method and also used session's abandon method in signout event. Still I don't know why I am facing that problem. Please tell me what else I need to do in order to...
|
by: loga123 |
last post by:
Hi All,
I have a web page where I would like to do certain activities when user
click's a button.
I have used button web control on my page. Each time, I click this
button....page gets posted.
I don't want my page to do "post-back" when i click on button web
control.
is there any way to accomplish this?
Can anyone help me in this regard?
|
by: Michael Nemtsev |
last post by:
Hi,
I need to stay on the current page even if user clicks "BACK" in browser.
Opera is very stubborn in attemp of turning cached page off, and using current.
Does anybody know the way how to say Opera not to show previous page when
I click "Back" button and show current page.
Which meta info should be specified?!
Currently I use the following code, which works fine with IE and FireFox
(no previously cached page is shown)
|
by: RobGMiller |
last post by:
Using ASP.NET 2.0
Need to simply process incoming postback information without sending
back a reponse.
Client sends HTML from application other than a browser to a page on a
web site. Web Server ASP generates a response page and send it back
which opens the browser on the client.
How to avoid sending back the response page.
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |