Solved

C# asp.net button control not working!

Posted on 2003-12-01
3
1,602 Views
Last Modified: 2007-12-19
Hi, I'm using asp.net and c# and on this particular web form I have a button control.  I added a callback function to the button by double-clicking the control and some code in the code-behind.  For some unknown reason, when I click on the button, nothing happens.  I tried debugging it by inserting a break-point inside the call-back and stepping thru but it never gets to the call-back.  Any ideas?
0
Comment
Question by:yuen_wc
[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 Comments
 
LVL 1

Accepted Solution

by:
mvannata earned 50 total points
ID: 9850482
Double-click your button in design time and see if it creates a new event procedure.  If it has then your button click callback has gotten disassocitated from you button object and will have to get re-associated in the InitializeComponent() function.  Make sure you delete any new orphaned code that is created.

0
 
LVL 7

Expert Comment

by:jj819430
ID: 9851626
post the relevant call

Is this button in a datagrid?

Post the code of the Form
Post the code behind of the function you want to run
0
 
LVL 1

Expert Comment

by:pun1sher
ID: 9907820
The event may be nulled by the postback of the webform I have had this problem for a button in a datagrid... , are you checking for the Page.IsPostback property?
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

696 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