Filed in: ASP.Net, Visual Studio
Home » ASP.Net
If you need to go inside ASP MVC code which can be very instructive you just need to hit 3 checkboxes inside Visual Studio and you will be ready to go.
First of all, you need to go on the Debug>Options and Settings. This will open the Options of Visual Studio. From the Debug menu, you should already be in the good menu which is Debugging.
Select the...
Sometime you may need to store information for few times in the memory without having to compute the data every time a user request it. This can save time and also processor time. To do, we can use the System.Web.Cache object.
var cc = HttpRuntime.Cache.Get("Test");
DateTime t;
if (cc == null)
{
t = DateTime.Now;
HttpRuntime.Cache.Insert("Test",...
By default cookie are not secured when using Https with SSL(TSL) security.
Asp.net security with cookies
You have two choices with ASP.NET
The first one is to explicitly mark the cookie has secure.
var cookie = new HttpCookie("MyCookieName", "MyValue");
cookie.Secure = true;
Response.Cookies.Add(cookie);
The advantage is that not...
You may pass manually the information but would it be easier if the http handler could read the session information?
This can be done with .Net Framework easily. In theory, this should not be a problem because the handler is in the server. It only needs to provide the session of the current user. To do, you need to use special interface that will allow...