473,387 Members | 1,536 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,387 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 1370
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.