473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Separate two words

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,

Aug 9 '06 #1
1 1109
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)

--

Bruno Alexandre
"a Portuguese in Københav, Danmark"

"Eric" <eh******@gmail.comescreveu na mensagem
news:11**********************@75g2000cwc.googlegro ups.com...
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,

Aug 9 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Nathan Lamont | last post by:
I would like to make use of two separate PHP applications which happen to share some class names; trying to include both from one script results in the expected error, "cannot redefine class foo."...
5
by: anonymous | last post by:
with X Y separate dual-bus super sub , maybe reverse by freq Y is super-bus X or Y maybe set to internal base ( default ) X@ X! Y@ Y! ( top of stack X@ y@ --> TOS ) >X >X >Y Y> intelligent...
2
by: Joe | last post by:
hi, i have a search form that will only search the whole string when searching a query. i would like to have the search string split into separate words so that each word could be used as part...
4
by: marcelf3 | last post by:
Hello, I am a novice/moderate html programmer and I wonder how to tell the browser from which start point and to which end point in the text will each page be printed. In other words, I have a...
3
by: Virgo | last post by:
The code below cout's separate words from file "text.txt". int main() { vector<string> words; ifstream in("text.txt"); string word; while(in >> word) words.push_back(word); for(int i = 0; i...
0
by: marcelf3 | last post by:
Hello, I am a novice/moderate html programmer and I wonder how to tell the browser from which start point and to which end point in the text will each page be printed. In other words, I have a...
8
by: nickdu | last post by:
I'm trying to isolate "applications" into their own application domain within a single process. I've quoted applications because it's a logical representation of an application. Basically it...
6
by: Yanhao Zhu | last post by:
Hi, all, If I have an array like int m = new int { 0, 1, 2, 3 }, is there a way I can separate the array into two, like int m01 = somefunction?(m,0,2) // m01 will hold 1st and 2nd items in...
7
by: xephia | last post by:
Hey all, I am resorting to posting this question after getting absolutely nowhere in four days of searching (except for maybe negative steps, got mad at my laptop and broke my delete key :( ) ...
2
by: colleen1980 | last post by:
Hi: Can any one please tell me how do i separate city state and zip. I ask this question in previous post. But when the city name is in two words it mess up my values otherwise it works. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.