XMLParsing error
<p>I am getting XML parsing error when trying to implement download function in web application in C#. The same code is working in another web form.</p>

<pre><code>SqlConnection cn = new SqlConnection();

cn.ConnectionString =ConfigurationManager.ConnectionStrings["cn"].ConnectionString.ToString();
cn.Open();

String abc = null;

SqlCommand cm = new SqlCommand("select User_ID from Mgmt where S_Name='" + DropDownList1.Text + "'", cn);

SqlDataReader dr = cm.ExecuteReader();

if (dr.Read())
{
    abc = dr.GetString(0).ToString();
}

dr.Close();
cm.Dispose();

String ab = null;

SqlCommand cmd = new SqlCommand("select Result from Result where Clg_ID='" + abc + "'and Student_ID='" + TextBox1.Text + "'", cn);
SqlDataAdapter drr = new SqlDataAdapter(cmd);

DataSet ds = new DataSet();

drr.Fill(ds);

ab = ds.Tables[0].Rows[0][0].ToString();

Response.ContentType = "application/pdf";
Response.AppendHeader("Content-Disposition", "attachment; filename='"+ab+"'");
Response.TransmitFile(Server.MapPath("~/Result/"+ab));
Response.End();

cn.Close();
</code></pre>
