Use split()
string name= "LUKE CARROLL";
string[] tmp = name.Split(' ');
string FirstName = tmp [0];
string LastName = tmp [1];
More Related Contents:
- How to get File Path from another project in one solution in ASP.NET MVC 3?
- Days between two dates in asp.net
- how to get date difference between two dates using DateDiff Excluding the weekends [duplicate]
- Auto Hide/Show DIV in asp.net [closed]
- Making a Simple Ajax call to controller in asp.net mvc
- Understanding WCF Windows Authentication
- Classes residing in App_Code is not accessible
- Asp Net Web API 2.1 get client IP address
- Difference between MVC 5 Project and Web Api Project
- How do I dispose my filestream when implementing a file download in ASP.NET?
- How to get rendered html (processed by Javascript) in WebBrowser control?
- How do I forcefully propagate role changes to users with ASP.NET Identity 2.0.1?
- Why does GetManifestResourceStream returns null while the resource name exists when calling GetManifestResourceNames?
- How to increase executionTimeout for a long-running query?
- C# mvc 3 using selectlist with selected value in view
- What is the meaning of thread-agility in ASP.Net?
- Creating a proxy to another web api with Asp.net core
- Get user location by IP address [closed]
- Font awesome inside asp button
- Error handling (Sending ex.Message to the client)
- How to pass parameters to a custom ActionFilter in ASP.NET MVC 2?
- Configure Unity DI for ASP.NET Identity
- Filehandler in asp.net
- When to use Request.Cookies over Response.Cookies?
- ASP .NET Button event handlers do not fire on the first click, but on the second click after a PostBack
- How to create Select List for Country and States/province in MVC
- SignalR – Checking if a user is still connected
- splitting a string based on multiple char delimiters
- Is there a way in Json.NET serialization to distinguish between “null because not present” and “null because null”?
- How do I get a directory size (files in the directory) in C#?