MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / Page_Load

Method Page_Load

common/src/web/Page.aspx.cs:6–21  ·  view source on GitHub ↗
(object sender, EventArgs e)

Source from the content-addressed store, hash-verified

4public partial class Page : System.Web.UI.Page
5{
6 protected void Page_Load(object sender, EventArgs e)
7 {
8 Response.ContentType = "text/html";
9
10 int lastIndex = Request.PathInfo.LastIndexOf("/");
11 string pageNumber = (lastIndex == -1 ? "Unknown" : Request.PathInfo.Substring(lastIndex + 1));
12 if (!string.IsNullOrEmpty(Request.QueryString["pageNumber"]))
13 {
14 pageNumber = Request.QueryString["pageNumber"];
15 }
16 Response.Output.Write("<html><head><title>Page" + pageNumber + "</title></head>");
17 Response.Output.Write("<body>Page number <span id=\"pageNumber\">");
18 Response.Output.Write(pageNumber);
19 //Response.Output.Write("<script>var s=''; for (var i in window) {s += i + ' -> ' + window[i] + '<p>';} document.write(s);</script>")'
20 Response.Output.Write("</span></body></html>");
21 }
22}

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected