title: StartIndex cannot be less than zero. Parameter name: startIndex Using HijriDatePicker?
body: <p>I am using a many instances of Hijri Gerogian Datapicker, with gridview control, when I delete from the gridview I receive the following error:</p>
  
  <pre><code>StartIndex cannot be less than zero.
  Parameter name: startIndex
  
  Line 173:                    //to manage multiple instances of user control postback, incase the postback happend due to culture changeed in current control,
  Line 174:                    //the other user contrls culture drop down list to be changed accordingly. Also year and month dropdown lists according to culture 
  Line 175:                    if (strPostBackControlName != "" &amp;&amp; strPostBackControlName.Substring(strPostBackControlName.LastIndexOf("$")) == "$ddlLocaleChoice")
  Line 176:                    {
  Line 177:                        if (ddlLocaleChoice.SelectedValue == arabicCulture.Name)
  
  
  [ArgumentOutOfRangeException: StartIndex cannot be less than zero.
  Parameter name: startIndex]
     System.String.Substring(Int32 startIndex, Int32 length) +13011515
     System.String.Substring(Int32 startIndex) +15
     Hijri_Greg_DatePicker_Sample.HijriGregDatePicker.Page_Load(Object sender, EventArgs e) in C:\Users\Mawni\Desktop\Hijri_Greg_DatePicker_Sample\HijriGregDatePicker.ascx.cs:175
     System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
     System.Web.UI.Control.OnLoad(EventArgs e) +95
     System.Web.UI.Control.LoadRecursive() +59
     System.Web.UI.Control.LoadRecursive() +131
     System.Web.UI.Control.LoadRecursive() +131
     System.Web.UI.Control.LoadRecursive() +131
     System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678
  </code></pre>
  
  <p>Any Help?</p>