Solved

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

Posted on 2006-06-29
5
5,815 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
  • 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

785 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