Click here to Skip to main content
15,913,055 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi...
I am new to silverlight.Can you please help me.

My Query is:

I want to disable browser back button for log out button in silverlight4,only for restricted page not for all pages.
Give me some suggestion.

Thanks,
swathi.
Posted

you need to fix your code. Any attempt to disable a back button is a hack that only works for people who don't want to defeat it. It is not possible to do this in a way that a determined user cannot defeat.
 
Share this answer
 
Silverlight does not enable the back button unless you are using the navigation framework.
To me it appears that you may be using ASP.Net for your logging process.

You will need to disable the back button using scripting language rather than Silverlight,
 
Share this answer
 
Comments
Christian Graus 7-Feb-12 10:50am    
Except that it is impossible to do that.
swathi from Hyderabad, Andhra Pradesh 7-Feb-12 23:32pm    
I developed silverlight application..so i have dought that, in application where can i use scripting language only for logout button.When i signout,it redirects to login page and also clear the history of recent user.
Please give some suggestions....
Thanks,
Swathi
swathi from Hyderabad, Andhra Pradesh 20-Feb-12 1:55am    
Hi,
i tried by using scripting language like,

<script type="text/javascript">
fuction back_block()
{
window.history.forward(1)
}
</script>

When i clicked more times on back button it appears. can u please tell me the solution.

thanks,
swathi.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900