Separate two words

E

Eric

Hi: I have data where first and last name are in one field. I need help
how to i separate first and last name in ASP

Thanks,
 
B

Bruno Alexandre

ASP or ASP.NET?

VB.NET or C# ?


ASP:

dim str = "Bruno Alexandre"
dim aArray

aArray = split(str, " ")

response.Write("First Name: " & aArray(0) & "<br/>Last Name: " & aArray(1) )


ASP.NET:

dim str as string = "Bruno Alexandre"
dim aArray as array

aArray = split(str, " ")

Label1.Text = "First Name: " & aArray(0)
Label2.Text = "Last Name: " & aArray(1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top