Skip to main content

Posts

Showing posts from January 30, 2020

Coding Challenge - ASP.NET Program : Count number of occurrences in a given string with additional criteria - StringComparison.InvariantCultureIgnoreCase

 Write a ASP.NET with C# program to achieve the following Given a sentence, count each word for number of occurrences (Main Criteria: No repetition) Additional Criteria  Case should be ignored Comma should not be counted An extra space more than single space should be ignored CountWord.aspx.cs < div >             < table >                 < tr >                     < td > Enter the string                     </ td >                     < td >                         < asp : TextBox ID ="txtInputString" Width ="500px" runat ="server">                         </ asp : TextBox >                     </ td >                     < td >                         < asp : Button ID ="btnShowResult" runat ="server" OnClick ="btnShowResult_Click" Text ="Click for result" />                     </ td >