Skip to main content

Posts

Showing posts with the label ASP.NET WEB FORMS

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 >      

Coding Challenge - ASP.NET Program : Given a string S, shift each character to its immediate right character (note: preserve the cases)

Write a ASP.NET with C# program to achieve the following  "Given a string Str, shift each character to its immediate right character (Main Criteria: preserve the cases)" Sample input : HeLlo Sample output :  IfMmp ShiftNext.aspx < div >             < table >                 < tr >                     < td > Enter the string                     </ td >                     < td >                         < asp : TextBox ID ="txtInputString" runat ="server">                         </ asp : TextBox >                     </ td >                     < td >                         < asp : Button ID ="btnShowResult" runat ="server" OnClick ="btnShowResult_Click" Text ="Click for result" />                     </ td >                 </ tr >                 < tr >                     &l

ASP.NET MVC Learning 3 : Global.asax File

The Global.asax file is called as the ASP.NET application file, which contains the events related to Application and Session level The file will be positioned in the root level of the Web Application. Adding this file to the application is not mandatory, if you want to handle the Application events or session events then you can use the file The following are the events available in the file,         protected void Application_Start( object sender, EventArgs e)         {            // Triggered when the application starts, the logs to the event handler, initializing singleton objects may be written here         }         protected void Session_Start( object sender, EventArgs e)         {         }         protected void Application_BeginRequest( object sender, EventArgs e)         {         }         protected void Application_AuthenticateRequest( object sender, EventArgs e)         {         }         protected void A