Quantcast
Channel: ASPSnippets RSS Feed
Browsing all 4791 articles
Browse latest View live

ASP.Net MVC Cookies: Read, Write (Save) and Remove (Delete) Cookies in...

Here Mudassar Ahmed Khan has explained with an example, how to use Browser Cookies in ASP.Net MVC Razor. This article will also explain how to perform operations on Cookies i.e. reading values stored...

View Article


ASP.Net Core Cookies: Read, Write (Save) and Remove (Delete) Cookies in...

Here Mudassar Ahmed Khan has explained with an example, how to use Browser Cookies in ASP.Net Core MVC. This article will illustrate how to perform following operations on Cookies i.e. reading values...

View Article


Using HttpContext in ASP.Net Core Razor Pages

Here Mudassar Ahmed Khan has explained why HttpContext.Current not working in ASP.Net Core Razor Pages and what is the alternative solution for using the functionality in ASP.Net Core Razor Pages....

View Article

ASP.Net Core Razor Pages: Read, Write (Save) and Remove (Delete) Cookies

Here Mudassar Ahmed Khan has explained with an example, how to use Browser Cookies in ASP.Net Core Razor Pages. This article will also explain how to perform operations on Cookies i.e. reading values...

View Article

ASP.Net MVC: Get Session value in Controller

Here Mudassar Ahmed Khan has explained with an example, how to get Session value inside Controller in ASP.Net MVC Razor.

View Article


Pass (Send) Session value from one Controller to another Controller in...

Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Session value from one Controller to another Controller in ASP.Net MVC Razor.

View Article

Get Session value in JavaScript or jQuery in ASP.Net MVC

Here Mudassar Ahmed Khan has explained with an example, how to get Session value in JavaScript in ASP.Net MVC Razor. JavaScript is a Client Side language and hence directly it is not possible to get...

View Article

Display (Show) TextBox value in Alert using jQuery

Here Mudassar Ahmed Khan has explained with an example, how to display TextBox value in JavaScript Alert Box using jQuery. When the Button is clicked, the TextBox value is displayed in the JavaScript...

View Article


ASP.Net: Get HttpContext.Current.Session value in JavaScript or jQuery

Here Mudassar Ahmed Khan has explained with an example, how to get HttpContext.Current.Session value in JavaScript or jQuery with ASP.Net. Session object or Session variable is stored on Server and...

View Article


Using WHILE LOOP in SQL Server

Here Mudassar Ahmed Khan has explained with an example, how to use WHILE LOOP in SQL Server (Transact-SQL). The WHILE statement as used in various programming languages works in similar way in SQL...

View Article

Enable Session in ASP.Net Core

Here Mudassar Ahmed Khan has explained, how to enable Session in ASP.Net Core. By default, Session State is disabled in ASP.Net Core applications i.e. ASP.Net Core MVC and ASP.Net Core Razor Pages....

View Article

[SOLVED] Session has not been configured for this application or request

Here Mudassar Ahmed Khan has explained, how to solve the following error in ASP.Net Core. System.InvalidOperationException: Session has not been configured for this application or request. The above...

View Article

HttpContext.Current.Session in .Net Core

Here Mudassar Ahmed Khan has explained, how to access HttpContext.Current.Session in .Net Core application. Unlike previous ASP.Net applications, the Session object is not available under the...

View Article


Set Session Timeout in ASP.Net Core

Here Mudassar Ahmed Khan has explained, how to set Session Timeout value in ASP.Net Core application. Unlike previous ASP.Net applications, the Session Timeout value is set inside the Startup.cs class...

View Article

Get and Set Session object (variable) in ASP.Net Core

Here Mudassar Ahmed Khan has explained with an example, how to get and set Session object (variable) in ASP.Net Core MVC.

View Article


ASP.Net Core: Destroy / Delete / Remove Session object

Here Mudassar Ahmed Khan has explained with an example, how to destroy, delete or remove Session objects in ASP.Net Core MVC.

View Article

ASP.Net Core: Display (Access) Session object inside View

Here Mudassar Ahmed Khan has explained with an example, how to display or access Session object inside view in ASP.Net Core MVC.

View Article


Get Session ID in ASP.Net Core

Here Mudassar Ahmed Khan has explained with an example, how to get Session ID in ASP.Net Core MVC.

View Article

Using Session inside Controller in ASP.Net MVC

Here Mudassar Ahmed Khan has explained with an example, how to use Session inside Controller in ASP.Net MVC Razor. This article will illustrate how to set values in Session object and retrieve values...

View Article

Prevent (Avoid) Duplicate (Double) record insert into Database in ASP.Net

Here Mudassar Ahmed Khan has explained with an example, how to prevent (avoid) duplicate (double) record insert into SQL Server Database in ASP.Net using C# and VB.Net.

View Article
Browsing all 4791 articles
Browse latest View live


Latest Images