Rendering string as HTML Tag

alemargo

Newcomer
Joined
Jan 2, 2004
Messages
16
My stored procedure returns me a fully qualified hyperlink string (see below).

<a href='../../Account/AccountPage.aspx?AccountID=3' targer='_self' class='cNavyLinks'>10</a>

I have to strip the "hyperlinkage" and get number 10 (in this case). Of course, this could be done by using String.split(...) functions. What I am trying to find out is if it's possible to render this fully qualified
hyperlink string as a HtmlTag, of some sort, and then use OuterHtml or OuterText functions to accomplish the same goal.
 
can u do a replace? for example, replace the "hyperstuff" and "</a>" with blank, then you'll only have 10 and then trim the result to get rid the blanks??
 
Or just reverse the string, remove the first 4 characters (">a/<"), find the next occurence of the greater-than character (">"), and just use the string up to that point (which in this case should be the "01", you'll want to reverse it again for the original value).
 
Back
Top