There is a string which is innerHTML of an HTML page. In that, there are contents ...which I need to replace part by parts...I have replaced a few by the following formula.
string formatted = str.replace("*", "")
This will replace all * in that HTML page with blank. But I need to replace following contents to blank as well.
[Issue /]
[-Select- /]
[ ]
[Upload]
[Issue /]
So I used code as below:
str.replace("[Issue \/]", "")
str.replace("[-Select- \/]", "")
str.replace("[ ]", "")
str.replace("[Upload]", "")
str.replace("[Issue \/]", "")
But I couldn't see any replaces for the contents in the HTML content for the above string.
And there is an image button in the HTML. That image button also I need to replace.
The HTML code of the image button is below:
<asp:ImageButton ID="btnAddHotel" runat="server" ImageUrl="/Style Library/images/icon-add.gif" OnClick="btnAddHotel_Click" OnClientClick="return HideAllTicketValidations();" />
How to replace all these strings?