I have this code. I am trying to retrieve just the text \"first program\". Considering that i know the index say 25 and total length of string is 35.
string
Second argument to string.Substring() is the length, not the end-offset:
string.Substring()
Response.Write(text.Substring(25, 10));