Read ID from URL and create a new one
<p>On Page_Load, I have to run code to check a url format. The url can be of the following formats:</p>

<pre><code>http://www.xyzabc.com/DisplayProduct?ID=230  or

http://www.xyzabc.com/DisplayProduct?ID=230&amp;blahblah or

http://www.xyzabc.com/S(yya4h4rf4gjh5eo4uazix2t055)X(1))/DisplayProduct?ID=230
</code></pre>

<p>Whenever the url has an ID, I want to create a url in the following format:</p>

<pre><code>http://www.xyzabc.com/DisplayProduct?ID=&lt;the id picked from the url&gt;
</code></pre>

<p>Since the code will be run for every page (1500+) in the site, how can i write the best optimized code?</p>
