It is a web application i have login it some fields like name,email id,login name like that but i need to split the email id @ before text it will display automatically in login name text box. when i entered email id split and display another name another text box like this:
i want to display like this
eamil id: xyz@gmail.com login name: xyz
i tried this code but not working:
String str= txtemailid.Text;
String[] name=str.split('@');
txtloginname.Text=name[0].Tostring();
can any one help me out