Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 14th, 2004, 09:54 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aadz5
Default 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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
deleting row in a datagrid * nightmare :-( chrismogz ADO.NET 4 October 30th, 2006 05:47 PM
deleting in datagrid derekl ASP.NET 1.0 and 1.1 Professional 2 January 26th, 2006 05:21 AM
dataGrid Error message sanjeet ADO.NET 1 September 20th, 2003 09:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.