It's hacky and I'm not proud of it, but this is my fix and it seems to be working. If anyone knows the root cause of why the textbox submitted value is coming back as n,n.....,n, I'm all ears.
/// <summary>
/// Quantity of the specified product to add to the shopping cart.
/// </summary>
public int Quantity
{
get
{
if (ShowUnitsTextBox)
{
string units = txtUnits.Text.Trim();
units = units.Substring(units.LastIndexOf(",") + 1);
//ScriptManager.RegisterStartupScript(upnlAjax, this.GetType(), "redirectMe", "alert('" + units + "');", true);
return ValidationHelper.GetInteger(units, DefaultQuantity);
}
else
{
return DefaultQuantity;
}
}
}