Без опису
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334
  1. <%@ Application Language="VB" %>
  2. <%@ Import Namespace="System.Web.Routing" %>
  3. <%@ Import Namespace="System.Web.Http" %>
  4. <script runat="server">
  5. Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
  6. ' Code that runs on application startup
  7. RouteTable.Routes.MapHttpRoute(name:="DefaultApi",
  8. routeTemplate:="api/{controller}/{id}",
  9. defaults:=New With {.id = System.Web.Http.RouteParameter.Optional})
  10. End Sub
  11. Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
  12. ' Code that runs on application shutdown
  13. End Sub
  14. Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
  15. ' Code that runs when an unhandled error occurs
  16. End Sub
  17. Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
  18. ' Code that runs when a new session is started
  19. End Sub
  20. Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
  21. ' Code that runs when a session ends.
  22. ' Note: The Session_End event is raised only when the sessionstate mode
  23. ' is set to InProc in the Web.config file. If session mode is set to StateServer
  24. ' or SQLServer, the event is not raised.
  25. End Sub
  26. </script>