Before split string
string input = TextBox1.Text;
int index = input.LastIndexOf("@");
or- int index = input.IndexOf("@");
if (index > 0)
input = input.Substring(0, index);
resporse.write=input;
After split strings
string input = TextBox1.Text;
response.write = input.Split('@').Last();