sunilshishodia
New member
- Joined
- Jul 18, 2006
- Messages
- 3
- Programming Experience
- 1-3
I am having a string that contains HTML. I would like to replace some parts of the strings with some other content.For example: If my string contains
I want to change href of both to Academics.html and Case Study.html respectively. How can I change them in single string manipulation. If single is not possible then, how to do it by loop.
HTML:
<a id="_ctl4_dlUserPortfolio__ctl1_lnkBtnCategory" href="{if (typeof(Page_ClientValidate) != 'function' || Page_ClientValidate()) __doPostBack('_ctl4$dlUserPortfolio$_ctl1$lnkBtnCategory','')} " style="color:#000000">Academics</a>
<a id="_ctl4_dlUserPortfolio__ctl4_lnkBtnCategory" href="{if (typeof(Page_ClientValidate) != 'function' || Page_ClientValidate()) __doPostBack('_ctl4$dlUserPortfolio$_ctl4$lnkBtnCategory','')} " style="color:#000000">Case Study</a>
Last edited by a moderator: