Akansha
Akansha

Reputation: 209

Debug ASCX control

I am using a ascx control in my page and I am having a drop down in it which I am not able to load any values in it. Now I want to debug the control. Can some one suggest a way to debug the ascx control?

Thanks!

Upvotes: 2

Views: 7164

Answers (2)

user1787007
user1787007

Reputation: 11

you cannot set visually a brakepoint in that type of controls however there is a way to debug javascript in a ASXC file, Just write "debugger" in any javascript fucntion and the runtime will stop there.

for example:

function SaveEmployee(message){ debugger //rest of code

}

Upvotes: 1

Bill Martin
Bill Martin

Reputation: 4943

You can debug an ascx file like any other file in visual studio. Add a breakpoint, and start the project in visual studio.

Upvotes: 2

Related Questions