.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Post New Web Links

can't go back to the home page after logging out...

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :ASP.Net
 

Hello Everyone,

How can I prevent user to go back after logging out from any of the page of my website ? Even if the user press back button, redirected to the login.aspx page. Like we have seen in social or any other member ship sites.

Help me ....




View Complete Post


More Related Resource Links

Changing the graphics on the home page of a SharePoint site

  
When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Viewing your In-Box from the Home Page

  

I have a user request to access the user's Outlook In-Box from the home page in SP 2010.  The OWS In Box web part requires a hard-coded email address.  Is there any way to have the web part accept a variable?  That way I could pass the email address from AD.

Thanks,

Tom C.

  


My site link on my home page.

  

hello,

One of the user got My owa link in place of my site on the my home page ( go to my site --> my home --> top right corner shows My owa insead of my site ) and he wants to edit that my owa link now. first of all i dont know how he got that My owa link in the place of my site on my home page. When he surfs any other page than he is getting my site on all other pages. so he is just getting My owa link in place of my site only on the my home page.

At the first glanse, i think it would be master page issue but if that would be the case than it shold apply all the users but this is happening just for one user and we are not using custom master page.

Please help.

Thanks, 


Problem when I back to page

  

Hi Friends

I have page A.aspx where I show some result in listview. When I click On Some data on listview I go to page B.aspx.

Now the problem is when I click on back in page B.aspx it comes to A.aspx with out previous listview result. Ack requirement is when I come to page A.aspx result of listview has to be there. How do i do that?

Could u please help me out?

Thanx

Shekhar   


How to return back to a specific page in a gridview list?

  
Hello,  I have a gridview with paging. So for instance, I'm on say the page number 10, and I open the form details on a specific record_id (link). After I update/submit the form, it returns to page number 10. But, if I go to another page, for instance page 5, and submit the form, it returns to page 10. I've tried some things, for instance history.back(), but it returns to the first page I went to, in this case page number 10 (or whatever the first page I go to). Hopefully this code helps to understand what I'm asking: <asp:GridView DataKeyNames="Referral ID" ID="gvList" runat="server" CellPadding="4"     ForeColor="#333333" GridLines="None" OnRowCommand="gvList_RowCommand"     OnRowDataBound="gvList_RowDataBound" OnRowDeleted="gvList_RowDeleted"     OnRowDeleting="gvList_RowDeleting" AllowPaging="True" PageSize="20"     AutoGenerateColumns="False" OnPageIndexChanging="gvList_PageIndexChanging"    OnRowCreated="OnRowCreated" AllowSorting="True" OnSorting="OnSort"> protected void gvList_PageIndexChanging(object sender, GridViewPageEventArgs e)        {   &nb

Go Back to Site link missing in Error Page

  
hi,             i developed eventhandler where Properties.Cancel=true..takes to the defualt sharepoint error page. in this page i am missing go back to site link. how to set this link in the error page?   also can we set the link in the Properties.ErrorMessage="cannot update. please click here"+"<a href="+siteurl+"/>";   please help.  

Permission Errors for Users on Home Page only of SQL Server Reporting Services Report Manager

  
I have spent days now investigating this problem, so any help very much appreciated! I have a remote web server 2003 running SQL Server R2 Express Edition with Reporting Services installed. I use Report Builder 3.0 locally to build report. If I login via Internet to Report Manager Web Page as an administrator I can perform all the expected and required actions, creating new folders and assigning permissions for users etc. I have added a new user "ReportUser" as a Browser of a child folder. If ReportUser longs on to home page, he receives the all too familiar error: User 'XXXXXXXX\reportuser' does not have required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC) restrictions have been addressed. However, if the user starts at the child folder of home page, and then logs in, he sees the expected page, and can run the report!  This is not very satisfactory. How can I allow user to see home page, without an error message, but not be allowed to click on any folders to which he is not entitled? I am now aware that SQL Server R2 Express Edition has many limitations compared with full Editions (fixed roles, cannot manage Report Service from Management Studio etc) , and many of the "solutions" offered on the web just do not apply.   John Walton

logout problem(after logout when clicking on back button after logout still opens the previous page

  
I am using ASP.NET, the web page is abandoning and clear session when a user click logout link but they click the back button and it is still showing the previous page. How can it prevent the previous page after logout?on Logout.aspx load im using this code//=================//        Session.Clear();        Response.Buffer = true;        Response.ExpiresAbsolute = DateTime.Now.AddDays(-1D);        Response.Expires = -1500;        Response.CacheControl = "no-cache";        //----- Second Technique : To Stop Caching of Secure Pages.        Response.Cache.SetCacheability(HttpCacheability.NoCache);        FormsAuthentication.SignOut();        if (Session["UserName"] == null)        {            Response.Redirect("login.aspx");        }       Session.Clear();         Response.Buffer = true;         Response.ExpiresAbsolute = DateTime.Now.AddDays(-1D);         Response.Expires = -1500;         Response.CacheControl = "no-cac

Home Page Load

  
Dear Friends, I am working on the Home Page of a new client. The client wants me to show 5 images in his home page, which he does not want to part with.I am using a master page and also a user control in the home page.All this make the home page too heavy(if this is the right word).All are .jpg images. The master page contains logos and the user control is a table containing hyperlink to navigate to other web pages.  Having said that ,Is there any way to reduce the  time to load the home page. Any help would be appreciated?

Logging out and Back Button

  

I am using the ASP .Net User Memberhsip security and have noticed that if you logout you can click back button on the browser and view pages you were looking at, obviously you cannot perform any actions but this causes a slight security issue surely??  Is there anyway to stop this happening?


RSS - Is there a way to display all new content across several subsites on a top level home page ?

  

I have an Intranet site that contains several departmental intranet sites.

Is it possible to have a web part on the homepage of the top level intranet that displays all recently added content to the various sub sites ?

regards,

Counie


The Group Work Site template has the "What's New" web part on it's home page and I have the follow

  

I can't find that web part as something I can use elsewhere? As in, I can't add that web part on other pages made even on the same site. What would be ideal is to have that web part available to add as needed to other sites/pages of course. As it stands, for me it seems the only place I can use that web part is on the home page of a new "Group Work Site", i hope that I'm wrong. I've tried exporting the web part, but the importing does nothing when trying to import it to other sites, of course other 2010 sites. Please let me know how I may add that web part to my available to use web parts please.

 

:)


How to Trap a "Page Back" or "Page Close" or "Tab Close" Event

  

 VWD 2008 Express.  Visual Basic.

I have seen pages on the net that when you try to navigate away, they pop up a message asking whether you really want to navigate away.  How can I accomplish this to detect someone hitting the "page back" arrow in a browser or the "x" that closes a browser page or when someone tries to close a browser tab?  Thanks for the help.


Recover data on a Previous Page after navigating from the page and navigating back

  
How can i recover the data on Page1 after navigating to Page2, so that when i navigate to Page1 from Page 2 i want the unsaved data as is.

In report manager is it possible to prevent users from going to the "Home" page?

  
I have created my own menu system and would like to prevent casual users from ever going to the home screen as it just confuses them.  Is there a way to turn off this option?

Page does not post back when clicking any button

  
I thought the page was working fine yesterday. Today I added some code in various places and now a click on any button does not post back.

What could I check that has changed? Any suggesyions? Thank you.

Internet Explorer Go back one page and Go forward one page buttons are disabled.

  

I have a .aspx page in my web site that when I run it the internet explorer back and Fotrth Buttons are disabled. Any Idea what could be causing this functionality.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend