Try to give string for
this.ddlDepartments.SelectedValue as above the code, string ddlDepts = this.ddlDepartments.SelectedValue; then use this string "ddlDepts" in querystring.