ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.How to replace multiple characters from string using C# in ASP.Net<p>Hi&nbsp;<a class="username" rel="firoz1986">firoz1986,</a></p> <p>Please explain with example with some more details</p>https://www.aspforums.net:443/Threads/145344/How-to-replace-multiple-characters-from-string-using-C-in-ASPNet/https://www.aspforums.net:443/Threads/145344/How-to-replace-multiple-characters-from-string-using-C-in-ASPNet/Mon, 03 Jul 2017 02:35:44 GMTHow to replace multiple characters from string using C# in ASP.Net<p>Hi&nbsp;<a class="username" rel="firoz1986">firoz1986,</a></p> <p>As per &nbsp;you query i have created one sample.Please refer the below sample.If you have any doubt please revert me back.</p> <p><span style="text-decoration: underline;">Code:</span></p> <pre class="brush: csharp">protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { char[] options = new char[] { &#39; &#39;, &#39;+&#39;, &#39;*&#39;, &#39;/&#39;, &#39;?&#39;, &#39;|&#39; }; string outputstring = GetTitle(&#34;This is test+example of*replace/of?multiple|string.&#34;, options); Response.Write(outputstring); } } protected string GetTitle(object obj, char[] options) { foreach (char o in options) { obj = obj.ToString().Replace(o, &#39;-&#39;); } return obj.ToString(); }</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/145344/How-to-replace-multiple-characters-from-string-using-C-in-ASPNet/https://www.aspforums.net:443/Threads/145344/How-to-replace-multiple-characters-from-string-using-C-in-ASPNet/Mon, 03 Jul 2017 03:22:06 GMT