May 23, 2007 #1 Jcarr38 Programmer Feb 16, 2007 27 US I've gotta field in a label that looks like this: <%# Eval("Name") %> The output looks like this: "Sam From San Francisco, CA" . How can i trim everything except the word name so it'll read just "Sam". Thanks for any help.
I've gotta field in a label that looks like this: <%# Eval("Name") %> The output looks like this: "Sam From San Francisco, CA" . How can i trim everything except the word name so it'll read just "Sam". Thanks for any help.
May 23, 2007 #2 jbenson001 Programmer Jan 7, 2004 8,172 US Dim s as string = "Sam From San Francisco, CA" YourLabel = s.Substring(0, s.IndexOf(" ", 0)) Upvote 0 Downvote
May 23, 2007 Thread starter #3 Jcarr38 Programmer Feb 16, 2007 27 US Thanks i appreciate it Upvote 0 Downvote