Solved

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

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

820 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