protected void Login_Click(object sender, EventArgs e) { string baseUrl = ConfigurationManager.AppSettings["baseAPIUrl"]; string loginApiUrl = ConfigurationManager.AppSettings["loginAPI"]; string allOpenIssueUrl = ConfigurationManager.AppSettings["AllOpenIssueUrl"]; loginUserName = txtUserName.Value; loginPassword = txtUserPwd.Value; JiraRequest jiraReq = new JiraRequest(baseUrl, loginApiUrl, allOpenIssueUrl, loginUserName, loginPassword); loginResponse = jiraReq.LoginToJiraServer(baseUrl, loginApiUrl); if (loginResponse != "Error Occurred") { Session["UserSessionId"] = loginResponse; Response.Redirect("~/OpenIssueDashboard.aspx"); } else { LabelWarningErrorMessage.Text = loginResponse + " , Please try again"; } }