Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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
  #1 (permalink)  
Old January 18th, 2005, 01:57 PM
Authorized User
 
Join Date: Jan 2005
Location: havana, , Cuba.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default event handlers declared as private or public

i have a datagrid web control and assigned its ondelete command property to Delete_Grid private void in code-behind page. i got the error that alert me this function cannot be called because it's protected. then i change it to public directive and everything is fine. my question is: all the functions implememented code-behind that acts as event handlers for webcontrols placed in a page must be declared as public?
  #2 (permalink)  
Old January 20th, 2005, 07:54 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

No it must not be declared as Public.

  #3 (permalink)  
Old January 24th, 2005, 10:34 AM
Authorized User
 
Join Date: Jan 2005
Location: havana, , Cuba.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi, then, how can i call it so i don´t receive that message telling me the function cannot be used due to its private directive resctriction? thanks...
  #4 (permalink)  
Old January 24th, 2005, 12:28 PM
Authorized User
 
Join Date: Jan 2005
Location: havana, , Cuba.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Uh, I´d solved the problem. thanks....!!!!


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access modifiers private and public markhh Java Basics 3 February 21st, 2008 04:56 AM
X509 public/private key signing and mmc ZeeKoei General .NET 1 January 23rd, 2008 03:52 AM
Event handlers jwebb Visual Basic 2005 Basics 1 June 25th, 2007 08:44 PM
How to generate public and private keys using RSA mannuvashishta VS.NET 2002/2003 0 March 17th, 2007 10:52 AM
prob with certificate's public/private key shiby_chacko1@rediffmail. C# 0 April 5th, 2005 07:18 AM





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