Solved

'ASP.Default_aspx' does not contain a definition for 'btnSelect_OnClick'

Posted on 2006-06-29
5
5,872 Views
Last Modified: 2008-01-09
Hi experts,

I got this error,

'ASP.Default_aspx' does not contain a definition for 'btnSelect_OnClick'

<input type="button" id="btnSelect" OnServerClick="btnSelect_OnClick" value="Select my Stores"
Line 53:                         runat="server" NAME="btnSelect">


but the definition for the btnSelect_Onclick is already defined

here
            protected System.Web.UI.HtmlControls.HtmlInputButton btnSelect;
and
here
      this.btnSelect.ServerClick += new System.EventHandler(this.btnSelect_ServerClick);

what else can i do.

thanks
0
Comment
Question by:SirReadAlot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:zaghaghi
ID: 17008614
change
this.btnSelect.ServerClick += new System.EventHandler(this.btnSelect_ServerClick);
to
this.btnSelect.ServerClick += new System.EventHandler(this.btnSelect_OnClick);

and then

implement btnSelect_OnClick
0
 

Author Comment

by:SirReadAlot
ID: 17008636
will try this
0
 

Author Comment

by:SirReadAlot
ID: 17008661
tried this

 this.btnSelect.ServerClick += new System.EventHandler(this.btnSelect_OnClick);
and

still same error
0
 
LVL 9

Expert Comment

by:zaghaghi
ID: 17008699
Implement It
0
 
LVL 9

Accepted Solution

by:
zaghaghi earned 500 total points
ID: 17008713
you must have a method that named btnSelect_OnClick
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question