Link to home
Create AccountLog in
Avatar of BOEING39
BOEING39

asked on

Submit Error

I am getting the following error with the attached code.  

Compiler Error Message: CS0117: 'ASP.train757_default_aspx' does not contain a definition for 'btnSubmit_Click'

Source Error:

 Line 45:                   
Line 46:                   
Line 47:                   <asp:Button runat="server" Text="Submit" id="btnSubmit" Width="85px"
Line 48:                     onclick="btnSubmit_Click" Height="26px" />
Line 49:                 </td>
 

Default.aspx.cs
Default.aspx
Avatar of himanshut
himanshut
Flag of Australia image

Go to the designer Mode (View Designer) Select the Button -- > Go to Properties --> you'll see Event Icon on top (Yellow/Orange Lightening Icon) Click it --> then Next to "Click Event" Double Click and it will generate Client Event In Code Behind --> Copy paste your Submite Button code in there


Cheers!
remove and add button again
Nope,

Just use the same button, (Only Click it once" to select that button and then in properties, double click against the click event

Avatar of BOEING39
BOEING39

ASKER

Tried the properties button and redoing the event.   The event is there.   Removed and replaced the button with the event still the same problem with  the code:

CS0117: 'ASP.train757_default_aspx' does not contain a definition for 'btnSubmit_Click'
ASKER CERTIFIED SOLUTION
Avatar of himanshut
himanshut
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
That worked thx
I've requested that this question be closed as follows:

Accepted answer: 0 points for BOEING39's comment http:/Q_27249886.html#36347820
Assisted answer: 500 points for himanshut's comment http:/Q_27249886.html#36347350

for the following reason:

Most accurate answer.
What solution did work?
Anything different from the comments provided above!?
If yes, please specify
Avatar of South Mod
All,
 
Following an 'Objection' by himanshut (at https://www.experts-exchange.com/questions/27250095/Automated-Request-for-Review-Objection-to-Split-Q-27249886.html) to the intended closure of this question, it has been reviewed by at least one Moderator and is being closed as recommended by the Expert.
 
At this point I am going to re-start the auto-close procedure.
 
Thank you,
 
SouthMod
Community Support Moderator
My apologies.   I meant for you to get the points.   I closed in error without assigning points.  I sent the following ....



Assisted answer: 500 points for himanshut's comment http:/Q_27249886.html#36347350

for the following reason:

Most accurate answer.