第 20 行 `if (type.Equals("高校學生"))` 拋出 `NullReferenceException`。
代碼第 18 行僅賦值 `username = Request.QueryString["username"];`,**未見 `type` 賦值語句**,`type` 為 `null`,調用 `.Equals` 炸裂。
string type = Request.QueryString["type"]; // 补充这一行
if (string.IsNullOrEmpty(type)) { Response.Redirect("Error.aspx"); return; }
if (type.Equals("高校學生")) { ... }