Hi, Is there any tools through which we can change the format of existing code...... Regards,
KBM73
Posts
-
Formatting of existing code......... -
Code Formatting.........!!!!Hi All, Is there any way to format the existing code..........? Regards
-
Function for Converting Plural into SingularHi all, I am trying to write a function which converts plural words into singular words. Below is the function which i have created but it is not working properly for the words which ends with -se like lease, prise etc. Means when it comes to conver these words from plural to singular it is not giving proper output.It is converting "Leases" to "Leas" and "phrases" to "Phras". Please help me as soon as possible! private void _StripPlural(string strValue) { if (strValue.Length > 1) { if (strValue.EndsWith("s")) { strValue = strValue.Substring(0, strValue.Length - 1); string strPluralRule="s,z,x,ch,sh,ss"; bool blnFlag = false; char[] arrchDelimeter ={ ',' }; string[] arrstr = strPluralRule.Split(arrchDelimeter); for (int i = 0; i < arrstr.Length; i++) { string strTest = arrstr[i] + "e"; if (strValue.EndsWith(strTest) && !strValue.EndsWith("sse")) { blnFlag=true; return; } } if (blnFlag == true) { strValue = strValue.Substring(0, strValue.Length - 1); } if (strValue.EndsWith("ie")) { strValue = strValue.Substring(0, strValue.Length - 2) + "y"; } if (strValue.EndsWith("sse")) { strValue = strValue.Substring(0, strValue.Length - 1); } } } //return strValue; } Regards,
-
C# Code StandardsHi All, I need to write document for C# Code Standards.Anybody who is having idea about any article regarding the same? With Regards
-
Connection with TelephoneHow to get the user Telephone Inputs into our C# application...?? Regards
-
Interactive Voice Response SystemHi all, How to develop system for IVR..........any idea. Regards
-
IVR SystemHi, Anybody can help me to develop Integrated Voice Responce System using C#.
-
How to expire page when moved to next page....Hi, I have page in which user will fill the data by clicking submit....once he click submit button it goes to the next page and I want when user wants to go back to previous the content of previous page must be clear and he get the message "Page expire". Regards, KBM
-
How to restrict user to Fill only 15 Days back date??Thanks Rays, It is working .....now i am trying to show the error message when condition is false. Thanks again, KBM
-
How to restrict user to Fill only 15 Days back date??Hi, I have one field in which user will fill date for that I have taken One DropDown for "MONTHs" and One TextBox for "DATE" and another TextBox for "YEAR" ("Month/dd/Year"). Now I want to validate Date filled by user..that must be current date or just within 15 days back date. I tried to validate date through range validator(jDateValid) and for that I have written : int curr = DateTime.Now.Day; JDateValid.MinimumValue = Convert.ToString(curr-15); JDateValid.MaximumValue = Convert.ToString(curr); but when the date is 1,2,3,4.....15 range validator giving error message. Anybody help to solve this problem.... KBM
-
ASP.Net & C#Hi, I have a dropdwonlist in which ListItems are months from Jan to Dec. Now I want to show only Current Month & Previous Month at runtime. Anybody can help to rsolve this.