AspDotNet

(redirected from WebDevelopment.AspDotNet)

 

 

General

http://www.asp.net/ and http://wiki.asp.net/
Wikipedia:ASP.NET

 

 

 

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

 

Session

http://www.codeproject.com/KB/aspnet/ExploringSession.aspx
http://wiki.asp.net/page.aspx/57/session/

 

Setting sessions vars from Javascript

http://forums.asp.net/t/394291.aspx/1?Access+session+variables+in+Javascript
http://stackoverflow.com/questions/1104733/how-can-i-get-an-asp-net-session-variable-into-a-javascript-file

 

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);
}
// -->
</script>

 

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

Study?

 

 

Category tags

microsoft web