473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Urgent debugging problem. Any help greatfully appreciated

Hi everyone

I'm having a very frustrating problem with debugging my code at the moment.
The problem concerns breakpoint working in some methods, but not others.

In an aspx codebehind I have the method page load:

private void Page_Load(object sender, System.EventArgs e){
int currentTrialID = 1;
}

I have a breakpoint defined on the first (and last) line in that method

I also have an event handler:

private void btnLogin_Click(object sender, System.Web.UI.ImageClickEventArgs
e) {
int currentTrialID = 1;
}

Again, the breakpoint is on the only line within the method.

The problem is, the breakpoint halts execution on the first method, but
totally ignores the second breakpoint.

I have registered the event as follows:

private void InitializeComponent(){
this.btnLogin.Click += new
System.Web.UI.ImageClickEventHandler(this.btnLogin _Click);
this.Load += new System.EventHandler(this.Page_Load);
}
Thus far I have tried the following:
- Deleting the button and adding a new one with a different name. Double
clicking on the button.
- Deleting the pdb file (don't even know what its for anyway)
- Restarting IIS and the machine.

Debugging works fine for the methods in other classes. In fact, if I place a
breakpoint in a method that the even handler calls - that works fine
I hope someone can help or offer some suggestions as to what to do.

Thank you everone

Simon
Jul 21 '05 #1
1 1371
Simon,

It appears as though that event isn't being triggered.

I'm looking at your registration of the event, and it doesn't look solid. Why not just make it an event handler rather than an image click event handler?

That's my first call on it. Good luck.
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Paul | last post by:
I am trying to send mail from my ASP app using CDO, my problem is this. If I use a string in the .To field ie "me@myco.com" the page works fine and the mail is sent, if I change the value to be...
2
by: Khaled Omar | last post by:
We get this error occasionaly in the IIS logs, we can't figure out the reason, we checked http://www.aspfaq.com/show.asp?id=2109 and it didn't help, when we visit the page with HTTP friendly...
1
by: Naresh Sharma | last post by:
I have Windows XP and VS.NET installed on my machine. Also the ASPNET account is made part of the Debugging usres and Administrators group. Even then when I try to run my application in debug mode it...
8
by: Chris | last post by:
Hi, All my websites and webservices are down. I get the following message Server Error in '/mywebservices' Application....
1
by: Simon | last post by:
Hi everyone I'm having a very frustrating problem with debugging my code at the moment. The problem concerns breakpoint working in some methods, but not others. In an aspx codebehind I have...
2
by: mmacrobert | last post by:
We have an MFC application mixed with a few .NET controls. I would like to be able to render the content of a .NET control to an MFC device context - specifically a printing device context. We...
0
by: jgill | last post by:
Hello, To start with here is the code: Public Function Paymentget (s12MoRate) strCompanyCode = objXML.selectSingleNode("policy/companyCode").text strState =...
0
by: Nehad9 | last post by:
Hi, I am moving an existing ASP application from Win 2k3, IIS 6.0 to a new Win2k3 IIS 6.0 but the same pice of code that works on the old machine give a "blank" page on new machine. On debugging,...
0
by: mykhan | last post by:
I have been using access database with asp.net pages. I just realized a problem with date saving in access table. I didnt give any specific format for the date when saved in tables, because I wanted...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.