Hi i am loading some html which has been saved in the database. On page load i want to modify the html based on the page that is open. How do i go about doing this. Here is my html;
<div class="Navigation"><div><a href="/home">Home</a><span>
</span></div><div><a href="/whyus">Why us?</a><span> </span></div>
Here is what i tried but it didnt work;
string str = Page.Request.Url.ToString();
string strContents = webPart.WebPartProperties;
if (str == "http://localhost:1824/Default.aspx?webpageID=46")
{
string strcontent = "<a href=\"/home\">Home</a>";
strContents.Replace(strcontent, "<a href=\"/home\">Home Changed Word</a>");
litPageConte ...
Go to the complete details ...