how to get first three character from string in asp.net?
for Example, From Hardik i want only Har from this
How to get first three character from string in asp.net?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 30, 2013, 4:17 AM EDT
try this:
string s = "Hardik";
string result = s.Substring(0, 3);//get three character
Response.Write(result);// write the result in page
Prasenjit DeyRank #6,279 · 271 reputationPosted Aug 30, 2013, 4:19 AM EDT
string str = "Hardik";
str = str.Substring(0,3); //For filter 3 characters
Response.Write(str); // print that output
Use this code
Hope it will work
Nitesh KejriwalRank #253 · 9.9K reputationPosted Aug 30, 2013, 4:22 AM EDT