Adding new query parameter to hyperlinks dynamically
<p>I have several hyperlinks in my homepage. I would like to add a query parameter at the end of each hyperlink dynamically.</p>

<p>For example;</p>

<pre><code>&lt;a href="detail.aspx?id=2" target="_blank" &gt;xyz&lt;/a&gt;
&lt;a href="detail.aspx?cid=5" target="_blank" &gt;pqr&lt;/a&gt;
</code></pre>

<p>will be converted to</p>

<pre><code>&lt;a href="detail.aspx?id=2&amp;redirectFrom=hp" target="_blank" &gt;xyz&lt;/a&gt;
&lt;a href="detail.aspx?cid=5&amp;redirectFrom=hp" target="_blank" &gt;pqr&lt;/a&gt;
</code></pre>

<p>a new query parameter "<strong>redirectFrom</strong>" with value have been added to the converted hyperlinks.</p>

<p>How I can achieve it using ASP.net C#?</p>
