ASPSnippets RSS Feedhttps://www.aspsnippets.com/RSS.ashxLatest additions to the content that appears on ASPSnippets.(c) 2021, www.aspsnippets.com. All rights reserved.Contact Us Form in ASP.Net MVCHere Mudassar Ahmed Khan has explained with an example, how to send email using Contact Us Form in ASP.Net MVC Razor. The Contact Us Form contains some TextBox controls, a Rich TextBox and a FileUpload control to attach file. When the Send Button is clicked, the values from the TextBox fields are embedded into HTML string and the HTML string is send as Email along with the Attachment in ASP.Net MVC Razor.https://aspsnippets.com/Articles/Contact-Us-Form-in-ASPNet-MVC.aspxhttps://aspsnippets.com/Articles/Contact-Us-Form-in-ASPNet-MVC.aspxTue, 30 Nov 2021 06:39:16 GMTPrevent (Avoid) Duplicate (Double) record insert into Database in ASP.NetHere 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.https://aspsnippets.com/Articles/Prevent-Avoid-Duplicate-Double-record-insert-into-Database-in-ASPNet.aspxhttps://aspsnippets.com/Articles/Prevent-Avoid-Duplicate-Double-record-insert-into-Database-in-ASPNet.aspxWed, 24 Nov 2021 06:42:40 GMTUsing Session inside Controller in ASP.Net MVCHere 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 stored in Session object inside Controller in ASP.Net MVC Razor.https://aspsnippets.com/Articles/Using-Session-inside-Controller-in-ASPNet-MVC.aspxhttps://aspsnippets.com/Articles/Using-Session-inside-Controller-in-ASPNet-MVC.aspxSat, 20 Nov 2021 05:29:01 GMTGet Session ID in ASP.Net CoreHere Mudassar Ahmed Khan has explained with an example, how to get Session ID in ASP.Net Core MVC.https://aspsnippets.com/Articles/Get-Session-ID-in-ASPNet-Core.aspxhttps://aspsnippets.com/Articles/Get-Session-ID-in-ASPNet-Core.aspxSat, 20 Nov 2021 05:08:28 GMTASP.Net Core: Display (Access) Session object inside ViewHere Mudassar Ahmed Khan has explained with an example, how to display or access Session object inside view in ASP.Net Core MVC.https://aspsnippets.com/Articles/ASPNet-Core-Display-Access-Session-object-inside-View.aspxhttps://aspsnippets.com/Articles/ASPNet-Core-Display-Access-Session-object-inside-View.aspxSat, 20 Nov 2021 05:01:28 GMTASP.Net Core: Destroy / Delete / Remove Session objectHere Mudassar Ahmed Khan has explained with an example, how to destroy, delete or remove Session objects in ASP.Net Core MVC.https://aspsnippets.com/Articles/ASPNet-Core-Destroy-Delete-Remove-Session-object.aspxhttps://aspsnippets.com/Articles/ASPNet-Core-Destroy-Delete-Remove-Session-object.aspxFri, 19 Nov 2021 04:46:50 GMTGet and Set Session object (variable) in ASP.Net CoreHere Mudassar Ahmed Khan has explained with an example, how to get and set Session object (variable) in ASP.Net Core MVC.https://aspsnippets.com/Articles/Get-and-Set-Session-object-variable-in-ASPNet-Core.aspxhttps://aspsnippets.com/Articles/Get-and-Set-Session-object-variable-in-ASPNet-Core.aspxThu, 18 Nov 2021 03:30:41 GMTSet Session Timeout in ASP.Net CoreHere 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 in ASP.Net Core applications.https://aspsnippets.com/Articles/Set-Session-Timeout-in-ASPNet-Core.aspxhttps://aspsnippets.com/Articles/Set-Session-Timeout-in-ASPNet-Core.aspxThu, 18 Nov 2021 03:21:53 GMTHttpContext.Current.Session in .Net CoreHere 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 HttpContext.Current property, instead it is available in the HttpContext class in ASP.Net Core applications.https://aspsnippets.com/Articles/HttpContextCurrentSession-in-Net-Core.aspxhttps://aspsnippets.com/Articles/HttpContextCurrentSession-in-Net-Core.aspxThu, 18 Nov 2021 03:15:58 GMT[SOLVED] Session has not been configured for this application or requestHere 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 error occurs when Session state is used in ASP.Net Core application without configuring the application. This article will illustrate how to configure and enable Session state in ASP.Net Core applications.https://aspsnippets.com/Articles/SOLVED-Session-has-not-been-configured-for-this-application-or-request.aspxhttps://aspsnippets.com/Articles/SOLVED-Session-has-not-been-configured-for-this-application-or-request.aspxThu, 18 Nov 2021 03:10:20 GMT