Error Message Deleting From Datagrid
Hi Guys,
I get this error message: -
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0122: 'System.Web.UI.WebControls.DataGridCommandEventArg s.item' is inaccessible due to its protection level
Source Error:
Line 53: {
Line 54: OleDbConnection objConnection = new OleDbConnection(strConnection);
Line 55: int HouseID = Convert.ToInt32(e.item.Cells[1].Text);
Line 56: Response.Write(HouseID);
Line 57: string strSQL = "DELETE FROM HousesSearched WHERE HouseID = " + HouseID;
Source File: \\premfs3\sites\premium8\adnanarab66\webroot\accom odation\HousesSearched.aspx Line: 55
Does any ine know why??
Thanks
Adz - The World is not enough
__________________
Adz - Learning The J2EE Ways.
|