Hello all,
I have to write a javascript function that let me Copy&Paste values from the Clipboard to
several textboxex that I have in ASP.NET Datagrid.

In ITemDataBound event I have this code:

private void grdData_ItemDataBound(object sender, DataGridItemEventArgs e)

if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
TextBox txtProposta1 = (TextBox)e.Item.FindControl("txtProposta1");
TextBox txtProposta2 = (TextBox)e.Item.FindControl("txtProposta2");

TextBox txtProposta3 = (TextBox)e.Item.FindControl("txtProposta3");
TextBox txtProposta4 = (TextBox)e.Item.FindControl("txtProposta4");
TextBox txtProposta5 = (TextBox)e.Item.FindControl("txtProposta5");
TextBox txtProposta6 = (TextBox)e.Item.FindControl("txtProposta6");
TextBox txtProposta7 = (TextBox)e.Item.FindControl("txtProposta7");
// ...etc ....

// Eventi
txtProposta1.Attributes.Add("onpaste", "return onPaste(this)");
txtProposta2.Attributes.Add("onpaste", "return onPaste(this)");
// ...etc ....


so I have to write to this function - onpaste - that copy the values in these textboxes.

This task is row by row, not in group (so it could be more easy to write).

Anyone can help me in this task?

Thanks a lot.