Simple .NET code update
- or -
Post a project like this3359
£25(approx. $31)
- Posted:
- Proposals: 5
- Remote
- #669430
- Completed
Description
Experience Level: Intermediate
General information for the business: Not relevant
Description of requirements/functionality: I need this c# code updating so that it cannot error. It takes a string input (sName) from a 'Name' box on a form and converts it into two separate fields - Firstname and Surname. However, it errors in certain conditions.
The output I need is:
> sFirstname - the first part of the name entered
> sSurname - the rest of the name entered (if null then 'TBA')
string sSafeName = Regex.Replace(sName, @"[& 1)
{
sSurname = NameSplit[1] + " " + NameSplit[2] + " " + NameSplit[3];
}
Specific technologies required: C#
Extra notes:
Description of requirements/functionality: I need this c# code updating so that it cannot error. It takes a string input (sName) from a 'Name' box on a form and converts it into two separate fields - Firstname and Surname. However, it errors in certain conditions.
The output I need is:
> sFirstname - the first part of the name entered
> sSurname - the rest of the name entered (if null then 'TBA')
string sSafeName = Regex.Replace(sName, @"[& 1)
{
sSurname = NameSplit[1] + " " + NameSplit[2] + " " + NameSplit[3];
}
Specific technologies required: C#
Extra notes:
Andrew R.
97% (14)Projects Completed
34
Freelancers worked with
26
Projects awarded
29%
Last project
5 Jun 2018
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies