Simple .NET code update

  • Posted:
  • Proposals: 6
  • Remote
  • #669430
  • Completed
David M.DesignStudio M.Vijendra Singh S.Anand M.Ahmed T. + 1 other have already sent a proposal.
  • 0

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:

New Proposal

Create an account now and send a proposal now to get this job.

Sign up

Clarification Board Ask a Question

    There are no clarification messages.