- What characters are allowed before ".aspx" and before "/[a-z].aspx"? If invalid ones are included, HTTP 400 Bad Request is returned when the URL is accessed. See TIME Item Names, which has some experimental results from testing various characters.
- Is there a better way to clear cookies than the following?
if (Response.Cookies[HistoryCookieName] != null)
Response.Cookies.Remove(HistoryCookieName);
HttpCookie cookie = new HttpCookie(HistoryCookieName);
cookie.Expires = DateTime.Now.AddDays(-100);
Response.Cookies.Add(cookie);
- How does ASP.NET process "~/"? See TIME Item Names for how "%23" ("#" when url encoded) confuses the processing of "~/", as well as ASP.NET Gotchas for an instance when it is not processed at all.
- ASP.NET only allows one <form> element on a page (at least with runat="server"); sometimes it would otherwise be convenient to have multiple <form> elements on a page. What is ASP.NET's pattern for dealing with this, where other platforms would simply have multiple <form> elements?