using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Programming.CharacterOccurence
{
class Test
{
static void Main() {
String input = "Web Developer";
string ChartoFind = "r";
int totallengthofinput = input.Length;
int LengthOfInputWithOutCharToFind = input.Replace(ChartoFind, "").Length;
int resultcount = totallengthofinput - LengthOfInputWithOutCharToFind;
Console.WriteLine("Number of times occured the character r occured is : {0}", resultcount);
Console.ReadLine();
}
}
}
Here I Will explain how to set default page in project or website using web config file in Asp.net(c#). <system.webServer> <defaultDocument enabled="true"> <files> <clear/> <add value="Index.aspx"/> </files> </defaultDocument> </system.webServer>
Comments
Post a Comment