title: StreamReader file path error when i try to read .aspx file
body: <p>I need to send an email newsletter based on a template NewsletterTemplate.aspx file.</p>
  
  <p>I need to pass ArticleID and Language to the NewsletterTemplate.aspx file this file in under folder "_admin".</p>
  
  <p>For some reason it gives me following error
  <code>System.ArgumentException: Illegal characters in path.</code> and if i remove the QueryString part from the <code>URL</code>then it doesn't generate any error but i cant extract the Article</p>
  
  <p>Below is teh code example. I would appreciate help in this regard</p>
  
  <pre><code>String to, subject, message;
  bool isHtml;
  isHtml = true;
  to = txtEmail.Text;
  subject = txtEmailSubject.Text;
  
  ListDictionary replacements = new ListDictionary();
  string MessageBody = String.Empty;
  string filePath = System.Web.HttpContext.Current.Request.PhysicalApplicationPath;
  
  //String TemplatePath = "\_admin\NewsletterTemplate.aspx?ArticleID=" + ddArticleList.SelectedItem.Value.ToString() + "&amp;Language=1";
  
  using (StreamReader sr = new StreamReader(filePath + @"\_admin\NewsletterTemplate.aspx?ArticleID=" + ddArticleList.SelectedItem.Value.ToString() + "&amp;Language=1"))
  {
      MessageBody = sr.ReadToEnd();
  }
  MailDefinition mailDef = new MailDefinition();
  MailMessage msgHtml = mailDef.CreateMailMessage(to, replacements, MessageBody, new System.Web.UI.Control());
  message = msgHtml.Body.ToString();
  //send Email
  Helper.SendEmailNewsletter(to, subject, message, isHtml);
  </code></pre>