Since programming way back in the Classic ASP days, at some point a client always wants to export an html grid into an Excel grid. In c#, that need didn’t disappear, but got a lot easier with GridView and the HtmlTextWriter. Finally reached that point in my ASP.NET MVC programming world, and quite frankly, am […]
Here is a line of code to remove all occurrences of – or any other string for that matter – in a single shot. Ready for this complex feat of engineering?? Ok, here it is: string theResult = someString.Replace(“ ”,””); That’s it!