title: How to pass c# value to Html Page using parameter in ASP>NET C#
body: <p>Hi i have values in c# and i want to transfer this value to Html page by using parameter. here what i did </p>
  
  <p>C#:::</p>
  
  <pre><code>protected void btnPreviewEmail_Click(object sender, EventArgs e)
  {
      string body = string.Empty;
      using (StreamReader reader = new StreamReader(Server.MapPath("~/EmailTemplate/ExportJobsEmailTemplate.html")))
      {
          body = reader.ReadToEnd();
      }
      body = body.Replace("{jobnumber}", txtJobNo.Text);
  }
  </code></pre>
  
  <p>HTML Page ::::</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;b&gt;Job Number&lt;/b&gt;
          &lt;/td&gt;
          &lt;td&gt;{jobnumber}&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>