Click here to Skip to main content
15,880,967 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPage can't be displayed! Pin
Jassim Rahma9-Dec-10 2:46
Jassim Rahma9-Dec-10 2:46 
AnswerRe: Page can't be displayed! Pin
Hiren solanki9-Dec-10 2:49
Hiren solanki9-Dec-10 2:49 
GeneralRe: Page can't be displayed! Pin
Jassim Rahma9-Dec-10 2:55
Jassim Rahma9-Dec-10 2:55 
AnswerRe: Page can't be displayed! Pin
Hiren solanki9-Dec-10 3:09
Hiren solanki9-Dec-10 3:09 
AnswerRe: Page can't be displayed! Pin
Vimalsoft(Pty) Ltd9-Dec-10 3:30
professionalVimalsoft(Pty) Ltd9-Dec-10 3:30 
GeneralRe: Page can't be displayed! Pin
Jassim Rahma9-Dec-10 3:39
Jassim Rahma9-Dec-10 3:39 
GeneralRe: Page can't be displayed! Pin
Vimalsoft(Pty) Ltd9-Dec-10 3:49
professionalVimalsoft(Pty) Ltd9-Dec-10 3:49 
AnswerRe: Page can't be displayed! Pin
Abhijit Jana9-Dec-10 5:04
professionalAbhijit Jana9-Dec-10 5:04 
jrahma wrote:
If I want to destroy a page from my website and display (Page Can't be displayed)! if user trued to browse after he sign out my web site using my sign out button.


Your question is not worded properly. But, as per your question, what I understood it, If user sign out from your application, you don't to revisit the page again and insted of that you want to show "Page Can't be displayed"

Use Session.Abandon() when user sign out from your application.

and check the Session Variable for null on the page_load in your page, if it's null, redirect to "can't displayed page"

as,
If(Session["UserName"] == null)
{
  Response.Redirect("PageNotDisplayed.aspx"); 
}
else
{
  // Do your staff.
}

Cheers !
Abhijit Jana | My Blog | @Twitter | Disclaimer

AnswerRe: Page can't be displayed! Pin
Sandeep Mewara9-Dec-10 5:43
mveSandeep Mewara9-Dec-10 5:43 
GeneralRe: Page can't be displayed! Pin
Abhijit Jana9-Dec-10 5:52
professionalAbhijit Jana9-Dec-10 5:52 
GeneralRe: Page can't be displayed! Pin
Sandeep Mewara9-Dec-10 5:55
mveSandeep Mewara9-Dec-10 5:55 
GeneralRe: Page can't be displayed! Pin
Abhijit Jana9-Dec-10 5:58
professionalAbhijit Jana9-Dec-10 5:58 
GeneralRe: Page can't be displayed! Pin
Sandeep Mewara9-Dec-10 6:03
mveSandeep Mewara9-Dec-10 6:03 
GeneralRe: Page can't be displayed! Pin
Abhijit Jana9-Dec-10 6:10
professionalAbhijit Jana9-Dec-10 6:10 
GeneralRe: Page can't be displayed! Pin
Sandeep Mewara9-Dec-10 6:27
mveSandeep Mewara9-Dec-10 6:27 
GeneralRe: Page can't be displayed! Pin
Abhijit Jana9-Dec-10 8:49
professionalAbhijit Jana9-Dec-10 8:49 
QuestionWorking with tabcontrol in windows application Pin
sarang_k8-Dec-10 16:46
sarang_k8-Dec-10 16:46 
AnswerRe: Working with tabcontrol in windows application Pin
Brij8-Dec-10 19:29
mentorBrij8-Dec-10 19:29 
Questionpass variable between ASP.NET pages Pin
Jassim Rahma8-Dec-10 4:02
Jassim Rahma8-Dec-10 4:02 
AnswerRe: pass variable between ASP.NET pages Pin
NeverHeardOfMe8-Dec-10 4:08
NeverHeardOfMe8-Dec-10 4:08 
AnswerRe: pass variable between ASP.NET pages Pin
David Mujica8-Dec-10 4:14
David Mujica8-Dec-10 4:14 
GeneralRe: pass variable between ASP.NET pages Pin
NeverHeardOfMe8-Dec-10 4:18
NeverHeardOfMe8-Dec-10 4:18 
AnswerRe: pass variable between ASP.NET pages Pin
Hiren solanki9-Dec-10 2:47
Hiren solanki9-Dec-10 2:47 
Questiondetermine the back page Pin
Jassim Rahma8-Dec-10 3:41
Jassim Rahma8-Dec-10 3:41 
AnswerRe: determine the back page Pin
fjdiewornncalwe8-Dec-10 3:54
professionalfjdiewornncalwe8-Dec-10 3:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.