c# find number of occurance of substring in string
Regex.Matches(inputstring, substring).Count
Achievement provides the only real pleasure in life
Regex.Matches(inputstring, substring).Count
Posted by Unknown at 6:32 pm 0 comments
add the following code into the constructor of the method Configuration:
if (System.Diagnostics.Debugger.IsAttached == false)
{
System.Diagnostics.Debugger.Launch();
}
Posted by SF at 11:56 pm 0 comments
when setup datetime display format in javascript it displays datetime value incorrectly, the following are what I have done to ensure my datetime value is displayed correctly
in my javascript I have
@Html.TextBoxFor(model => model.PaidDateTimeLocal, new { Value = Model.PaidDateTimeLocal.ToString("yyyy/MM/dd HH:mm"), @class = "dtpicker" })
Posted by SF at 8:28 am 0 comments