On Page_Load, I have to run code to check a url format. The url can be of the following formats:
http://www.xyzabc.com/DisplayProduct?ID=230 or
http://www.xyzabc.com/DisplayProduct?ID=230&blahblah or
http://www.xyzabc.com/S(yya4h4rf4gjh5eo4uazix2t055)X(1))/DisplayProduct?ID=230
Whenever the url has an ID, I want to create a url in the following format:
http://www.xyzabc.com/DisplayProduct?ID=<the id picked from the url>
Since the code will be run for every page (1500+) in the site, how can i write the best optimized code?
something like this: