473,657 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(objec t sender, System.EventArg s 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.I mageClickEventA rgs
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 InitializeCompo nent(){
this.btnLogin.C lick += new
System.Web.UI.I mageClickEventH andler(this.btn Login_Click);
this.Load += new System.EventHan dler(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 1394
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
6408
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 the result of a recordset the page fails. I have used a response.write to check the recorset contains a valid email address, this appears to be fine.
2
3548
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 error messages unchecked we get page can't be diisplayed error. Any help is greatly appreciated.
1
1058
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 says : "Unable to start debugging on Web Server. You do not have permissions to debug the server. Any help in this will be appreciate Naresh
8
1702
by: Chris | last post by:
Hi, All my websites and webservices are down. I get the following message Server Error in '/mywebservices' Application. -------------------------------------------------------------------------------- Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
1
269
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 the method page load: private void Page_Load(object sender, System.EventArgs e){ int currentTrialID = 1; }
2
1897
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 wrote the MFC app and the .NET control, so we can add hook functions into either module if necessary. The .NET control is hosted in the MFC app using the CWinFormsControl template.
0
1146
by: jgill | last post by:
Hello, To start with here is the code: Public Function Paymentget (s12MoRate) strCompanyCode = objXML.selectSingleNode("policy/companyCode").text strState = objXML.selectSingleNode("policy/insured/state").text set rsDownPayment = getCache("down_payment")
0
1014
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, I found out that none of the request values are being passed. The whole application works on request values and changing the code would not be possible. any help would be highly appreciated since this is an urgent request. Thanks Neha
0
1026
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 to control the date formats from another page, what ever type selected, the date should be displayed in that format, US, UK, short date etc etc. Now I realized that if the day is less then 12, the date is saved in dd/mm/yyyy while it is saved in...
0
8310
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8826
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7330
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6166
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.