General and




What not to do in ASP.NET, and what to do instead



Installing on Windows Server 2008

How to install ASP.NET 1.1 with IIS7 on Vista and Windows 2008



Getting .NET 3.5 to run

Scott Hanselman: How to set an IIS Application or AppPool to use ASP.NET 3.5 rather than 2.0




Transferring large amounts of data

Transferring large data when using Web Services




Setting sessions vars from Javascript


No way possible without creating a PostBack or using AJAX. Here's an example using a PostBack:



aspx file:



<script type="text/javascript">
function setSessionVariable(valueToSetTo)
 __doPostBack('SetSessionVariable', valueToSetTo);
// -->


aspx.cs file:


private void Page_Load(object sender, System.EventArgs e)
 // Insure that the __doPostBack() JavaScript method is created...
 this.GetPostBackEventReference(this, string.Empty);

 if ( this.IsPostBack )
  string eventTarget = (this.Request["__EVENTTARGET"] == null) ? string.Empty : this.Request["__EVENTTARGET"];
  string eventArgument = (this.Request["__EVENTARGUMENT"] == null) ? string.Empty : this.Request["__EVENTARGUMENT"];

  if ( eventTarget == "SetSessionVariable" )
   Session["someSessionKey"] = eventArgument;



Context is everything

or, How to get Server.MapPath() in a component


Unit Testing

Overview of ASP.NET Unit Tests - VS 2005
debuging unit-tests



Emacs modes

asp-mode.el - forks and alternate hosting:

  • Google-code has asp-mode.el is part of ErgoEmacs and dates to 2009
  • Github has asp-mode.el last changed in 2010?


Savannah’s HTML Helper Mode last change was in 2004



See Also




Category tags

microsoft web