title: Use Page Title Dynamically
body: <p>I want to use the Title Dynamically in my MVC application. Because I am not returning the View instead of that I am returning the PDF report as:</p>
  
  <pre><code>  public ActionResult PrintInvoice(long ID)
      {
          var data = db.Documents.Where(x =&gt; x.InvoiceNumber == ID);
          ReportDocument rd = new ReportDocument();
          rd.ParameterFields["DocumentID"].CurrentValues.IsNoValue = true;
          Stream stream = rd.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
          stream.Seek(0, SeekOrigin.Begin);
          return new FileStreamResult(stream, "application/pdf");               //For Showing PDF in Browser itself
  
      }
  </code></pre>
  
  <p>and I a getting Page Title in the Form like,</p>
  
  <p><img src="https://i.stack.imgur.com/VAQk7.png" alt="Page Title shown by Default"></p>
  
  <p>But I want to Change the Page title here. 
  What should I do for changing the page title Dynamically from the MVC's action itself?</p>