Link to home
Start Free TrialLog in
Avatar of SirReadAlot
SirReadAlot

asked on

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

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
Avatar of Hamed Zaghaghi
Hamed Zaghaghi
Flag of Iran, Islamic Republic of image

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
Avatar of SirReadAlot
SirReadAlot

ASKER

will try this
tried this

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

still same error
Implement It
ASKER CERTIFIED SOLUTION
Avatar of Hamed Zaghaghi
Hamed Zaghaghi
Flag of Iran, Islamic Republic of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial