Get the time on the server: context.timestamp ----------------------------- concrete time: context.timestamp.timeofday.toString ( Annual Month: Context.TimeStamp this year: context.timestamp.year: Context.TimeStamp.Month Date: Context.TimeStamp.Date date number: context.timestamp.day Week: Context.TimeStamp.dayofweek Day a few: context.timestamp.dayofyear Hours: context.timestamp.Hour: Context.TimeStamp.MilliseCond division: context.timestamp.minute second: context.timestamp.second ------------ -------------------------
Get server system name: context.server.machinename
Get the server IIS runout milliseconds: context.server.scripttimeout
Get the handler: context.handler
-------------------------------------
Compare these two sentences: Context.Server.Transfer ("test.aspx"); response.redirect ("test.aspx"); the statement is observed when the browser address bar is turned on. Response.Redirect is address translation. Context.Server.Transfer is the internal call of the page. Cooperate with context.server.transfer and context.rewritepath ("text.aspx? A = 100"); context.server.transfer ("test.aspx"); equivalent to using response.redirect ("Test" .aspx? a = 100 "); but different is: Context.Server.Transfer is the internal call within the page. Of course, it also writes the above two sentences directly into one sentence: context.server.transfer ("test.aspx? A = 199"); the effect is the same!