username - Remove characters after the @ in and email address - ASP.NET -


i remove characters , @ symbol email address create username. somethinghere@email.com become somethinghere can shed light on how please? have googled , cant seem find on subject.

thanks in advance.

string s = "somethinghere@email.com";  string username = s.substring(0, s.indexof('@')); response.write(username); 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -