protected void GetTitle() { DataTable dt = new DataTable(); if (Request.QueryString["Id"].ToString() != null) { dt = Downloads.SelectTitle(int.Parse(Request.QueryString["Id"].ToString())); } if (dt.Rows.Count > 0) { litMidTitle.Text = dt.Rows[0]["Catagory"].ToString(); } }