I have the following C #, which simply replaces the parts of the input string that look like EQUIP: 19d005 with urls, for example:
input = Regex.Replace(input, @"(EQUIP:)(\S+)", @"<a title=""View equipment item $2"" href=""/EquipmentDisplay.asp?eqnum=$2"">$1$2</a>", RegexOptions.IgnoreCase);
As a result, the HTML is as follows.
<a title="View equipment item 19d005" href="/EquipmentDisplay.asp?eqnum=19d005">EQUIP:19d005</a>
The only problem is that the landing page expects the eqnum querystring to be fully UPPERCASE so that it returns the correct hardware when eqnum = 19D005, but fails if it gets eqnum = 19d005.
I suppose I can modify and correct the incorrect EquipmentDisplay.asp requirement of the header values, if possible, I would like to make the C # code compatible with the existing classic ASP page, the top of $ 2 in the Regex.Replace expression above.
Ideally, I would like HTML to return like this:
<a title="View equipment item 19d005" href="/EquipmentDisplay.asp?eqnum=19d005">EQUIP:19d005</a>
, EQUIP: 19d005 ( ), eqnum =.
, , ?