selectedRow.Update() Exception

Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hi

I am attempting to set some default values on the client side when a new row is added to a bound WebGrid. However, when I update the row I get an error message. The cell and DB column behind, that I am writing to, is a string. If I type in the very same string, rather than setting it in the script, it works. The exception occurs during selectedRow.Update().

Hope you can help:

Client script:
function OnBeforeAdd(controlId, tblName, rowIndex, rowEl) {

var WebGrid1 = ISGetObject(controlId);
var selectedRow = WebGrid1.GetSelectedObject().ToRowObject();
var cells = selectedRow.GetCells();
cells.GetNamedItem("Description").SetValue("jubii");
selectedRow.Update();

return true;
}

Error message: (see also attached screendump)

Server Error '/' Application

Input String was not in a correct format

Peter


1 attachment
All times are GMT -5. The time now is 7:47 PM.
Previous Next