strEmailBody = string.Format(emailBody, position, NoOfPostion, Convert.ToDateTime(HireByDate).ToString("dd'/'MM'/'yyyy")); ---- this is the code in C#
Hi,
Following requisition is pending for your approval.
To Submit your feedback {0}
Position : {1}
No.of Positions : {2}
Hire by Date : {3}
Following requisition is pending for your approval.
To Submit your feedback {0}
Position : {1}
No.of Positions : {2}
Hire by Date : {3}
I am getting the error as "
Index (zero based) must be greater than or equal to zero and less than the size of the argument list
Kindly resolve as early as possible.

Amit Kumar SinghRank #562 · 4.3K reputationPosted Feb 13, 2016, 1:15 AM EST
Your second
String.Formatuses{2}as a placeholder but you're only passing in one argument, so you should use{0}instead.Change this:
To this: