use the substring method of the string objectex:string s ="Hello!";Response.write(s.Substring(0,2));outputs: He