Skip to main content

Posts

Showing posts from November, 2018

Redirect to login screen if session is expired in Asp.net c# (Web Form)

Follow bellow code in global.asax protected void Application_AcquireRequestState( object sender, EventArgs e)         {             try             {                 string lcReqPath = Request.Path.ToLower();                 // Session is not stable in AcquireRequestState - Use Current.Session instead.                 System.Web.SessionState. HttpSessionState curSession = HttpContext .Current.Session;                  if (lcReqPath != "/root/login.aspx" && (curSession == null || curSession[ "User_Type" ] == null )...

Visual Studio 2017 Shortcut Keyboard keys

Visual Studio Important Shortcut Keys Work Key Work Key Build Solution Ctrl+Shift+B Locals Ctrl+Alt+V, L Build Cancel Ctrl+Break Process Combo Ctrl+5 Run Code Analysison Solution Alt+F11 Stack Frame Combo Ctrl+7 Class View Context Menus Properties Alt+Enter Thread Combo Ctrl+6 Commit All Edits Shift+Alt+U Toggle Current Thread Flagged State Ctrl+8 Move Left Edgetotheleft Ctrl+Shift+, Toggle Flagged Threads Ctrl+9 Move Left Edgetotheright Ctrl+Shift+. Java Script Console Ctrl+Alt+V, C Move Right Edgetotheleft Ctrl+Shift+Alt+, Intelli Trace Events Ctrl+Alt+Y, F Move Right Edgetotheright Ctrl+Shift+Alt+. Intelli Trace Calls Ctrl+Alt+Y, T TSql Editor Clone Query Ctrl+Alt+N Immediate Ctrl+Al...