0

.gif"/>

not work code. How to make ?

error: StartIndex cannot be less than zero.
Parameter name: startIndex

2 Answers 2

2

Seems like there's no "." in your string, then IndexOf() returns a negative number.

http://msdn.microsoft.com/en/library/7cct0x33.aspx

Sign up to request clarification or add additional context in comments.

Comments

1

This bit:

IndexOf(".")

whill be returning -1 because the . is not found in the string you supplied.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.