protected void btnOrder_Click(object sender, EventArgs e)
{
int r = grd5.SelectedIndex;
int count = grd5.Rows.Count;
List<ItemInsertItems> objItemAddtionList = new List<ItemInsertItems>();
ItemInsertItems objItemData = new ItemInsertItems();------(the class where properties for input parameters to stored procedure is defined)
for (int i = 0; i < count; i++)
{
objItemData.CUSTCODE = TxtCustCode.Text;
objItemData.QTY = ((TextBox)grd5.Rows[i].Cells[6].FindControl("txtQty")).Text.Trim();
objItemData.PRICE = ((Label)grd5.Rows[i].Cells[4].FindControl("lblRPrice")).Text.Trim();
objItemData.SKU = ((Label)grd5.Rows[i].Cells[1].FindControl("lblRsku")).Text.Trim();
objItemAddtionList.Add(objItemData);
}
ServiceAccess objserviceAccess = new ServiceAccess();
// bool result = objserviceAccess.SetItemInfo();--(i need to pass the list as parameter to this particular web method)
Response.Redirect("OrderConfirmation.aspx");
}
But not able to send the list as parameter to the above method.Wat is the other way that i can do it.