Click here to Skip to main content
15,919,879 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Is it possible to disable a page that is .aspx page in asp.net?


Can any one help me?
Posted

disable a whole page ? why you need that ?
what is the use of whole page disabled. instead you can make all controls disabled of that page. write a CSS for readonly conrols and assign that css to controls.
 
Share this answer
 
You can disable the maincontent holder through javascript. Have a look at this forum for detail.Disable the Whole page, like mask it using javascript??[^]
 
Share this answer
 
Comments
fjdiewornncalwe 13-Dec-11 18:20pm    
I think this is what the OP is looking for. +5
Wonde Tadesse 13-Dec-11 18:22pm    
Thanks
How would you mean disabled? One option would be to create a 302 (Moved Temporary) redirect in IIS or in your web.config. This way the page will guide a user to another page specified.

Good luck!
 
Share this answer
 
you can disable the controls in the page
 
Share this answer
 
If you mean about disable copy-paste in web page then you can find many scripts in web. Try this

Disable right click context menu cut, copy, paste[^]
 
Share this answer
 
You can easily disable all controls in your page. Follow the link for more detail:

Disabling all the controls in asp.net page
 
Share this answer
 
Comments
fjdiewornncalwe 13-Dec-11 18:21pm    
Reasonable, but not necessarily a good way to do it.
You can redirect to login page or default page if you want. But disabling the whole page?? no way!

Regards,
Eduard
 
Share this answer
 

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